How to share an additional HD with OpenVZ VM

raid

Member
Jul 25, 2010
102
0
16
Italy
Scenario:
2 HD 500 Raid1 hW
1HD 1Tb ext3 backup, mounted on /BACKUP and added to storage with shared option checked
--------------------------
It's all right into the node server but into the VM I don't found the /BACKUP dir and fstabs is empty.
--------------------------
How can I share the 1TB HD having the same /BACKUP dir on the VM, so I can store the mysql dump on it using /BACKUP/101/ dir ?

I have to use mkdir /BACKUP/101, mount dev/sda1 /BACKUP/101 and add it to fstab in the virtual machine too?
thx
 
Thank, very usefull.

Another question,
Following what reported on the above link, browsing the folders, I noticed that the root admin has full control over the file stored in the virtual machine even if the password is different, isn't it?
 
yes, the root user of the host has always full access. that's the intention.

you can also enter a OpenVZ container with:
Code:
vzctl enter VMID

without providing any password.