View Single Post
Old 8th May 2009, 15:45
swap-as swap-as is offline
Junior Member
Join Date: Nov 2007
Posts: 14
Thanks: 2
Thanked 1 Time in 1 Post

Originally Posted by falko View Post
You cannot access the hardware from inside the virtual machine.
Thank you for your answer.
I found the way to solve this problem. I forgot to write those commands:

SERVER:~#vzctl set 204 --devnodes sda4:rw --save
SERVER:~#vzctl set 204 --devnodes sdb4:rw --save
SERVER:~#vzctl restart 204

Then I started VPS and wrote this command:

root@vps4:~# ls -l /dev/sda4
brw-r----- 1 root root 8, 4 May 8 09:14 /dev/sda4
root@vps4:~# ls -l /dev/sdb4
brw-r----- 1 root root 8, 20 May 8 00:46 /dev/sdb4

root@vps4:~# mount /dev/sda4 /home
root@vps4:~# mount /dev/sdb4 /backup
root@vps4:~#nano /etc/fstab

/dev/sda4 /home ext3 defaults 0 2
/dev/sdb4 /backup ext3 defaults 0 2

after VPS restarting

SERVER:~#vzctl restart 204

It works OK.

Thank you for your answer to my message anyway.
Reply With Quote