Difference between --devnodes and --devices? [message #10638] |
Sun, 25 February 2007 13:21 |
mcarreira
Messages: 30 Registered: February 2007
|
Member |
|
|
I'm new to openvz and I'm stil testing and learning.
The goal is to change my office system from three servers to only one machine with several virtual servers in it, including the router (with a adsl connection) and a samba server.
Maybe I would do some more questions while I'm learning to do it.
This is the first question:
When using:
[hn]# vzctl set 120 --devices b:8:18:rw --devices b:8:19:rw --save
then I ssh to the VPS and when I do:
[vps]# ls -l /dev/sdb*
I don't see any devices created.
But if I try a:
[hn] vzctl set 120 --devnodes sdb:rw --devnodes sdb1:rw --save
everything works well.
Is devnodes the right way to grant a VPS read/write access to a hard disk? Is --devices not working?
Another question:
If I want to revert the above situation, I don't find a command to do it.
The only way I found to do it was deleting the line:
DEVNODES="sdb:rw sdb1:rw "
in the file /etc/vz/conf/120.conf
and inside VPS delete /dev/sdb and /dev/sdb1.
Is there a cleanest way to do it?
Thanks.
M.C.
|
|
|