Hello vserver experts,
I'm trying to run vcmd to get_cflags and set_cflags. I was expecting that if
I do a get, then do a set to a new value, then get again, I should get the
newest values. I'm only getting the old values. This is what i did.
1) Created a new vserver running cpu_hog. vtop shows that cpuhog is running
vcmd -i 100 -BC ctx_create .flagword=^34^33^32^8 -- cpuhog
2) Run get_cflags
bash-2.05b# vcmd -i 100 -AC get_cflags
vserver: ret = 0x00000000 (0)
VCMD_52_1[0] {
[0] .flagword 0x0000000700000100 (30064771328)
[1] .mask 0x00000003FFFFFFFF (17179869183)
}
3) Run set_cflags - set flagword to something new
bash-2.05b# vcmd -i 100 -AC set_cflags .flagword=5555
vserver: ret = 0x00000000 (0)
VCMD_52_2[0] {
[0] .flagword 0x00000000000015B3 (5555)
[1] .mask 0x0000000000000000 (0)
}
4) Run get_cflags again
bash-2.05b# vcmd -i 100 -AC get_cflags
vserver: ret = 0x00000000 (0)
VCMD_52_1[0] {
[0] .flagword 0x0000000700000100 (30064771328)
[1] .mask 0x00000003FFFFFFFF (17179869183)
}
Is the set functionality supported with vcmd ? If it is, can you spot what
did I do wrong above?
Now what I really wanted to do is to be able to dynamically set the ip
address (net_add) of a vserver without having to restart the vserver. I was
told that this is supported in util-vserver-0.30.213 with the "naddress"
command. As we are still using 0.30.210, I'm wondering if it's possible to
use vcmd to set the ip address of a vserver interface without having to
reset the vserver. If yes, could you pls let me know how? (we're using
2.6.14 kernel with vserver patch 2.0).
Thanks,
Jesse
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Aug 3 09:11:40 2007