OpenVZ Forum


Home » General » Support » Difference between --devnodes and --devices?
Re: Difference between --devnodes and --devices? [message #10709 is a reply to message #10657] Mon, 26 February 2007 20:41 Go to previous messageGo to previous message
mcarreira is currently offline  mcarreira
Messages: 30
Registered: February 2007
Member
Thank's for the answer. Now I understand the difference!
But after using "--devices", when I try:

# vzctl set <VEID> --devices b:8:18:q --save
# vzctl enter <VEID>

it gives this message:

# vzctl enter 120
Invalid value for DEVICES=b:8:18:, skipped
entered into VE 120

Like you said, I have no access with "fdisk /dev/sdb", but i can "ls /dev/sdb".
If I do:
# vzctl exec 120 rm -f /dev/sdb

it answers the same message:
invalid value for DEVICES=b:8:18:, skipped

but it deletes the devnode. So it reverts to the initial situation.
Is this message (...invalid value...) ok? Is this the right way to do it?

The other example (--devnodes) has also some problems:

# vzctl set <VEID> --devnodes sdb:none --save

the argument "none" doesn't delete the devnode in /dev/sdb (or is it supposed to only disable grant access?)

The only way I can revert to the original situation (without a devnode) is changing the file:
/etc/vz/conf/VEID.conf
and deleting the devnode manually.

My vzctl version is 3.0.14-1.

The question boils down to this:

After creating and granting access to a devnode, what is the most correct way to revert to the prior situation?
It seems the examples you gave, don't work the way I expected.


Thanks

M.C.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* veth problem - unable to create
Next Topic: *SOLVED* /dev destroyed upon gnome install
Goto Forum:
  


Current Time: Wed Aug 14 07:22:59 GMT 2024

Total time taken to generate the page: 0.02833 seconds