*SOLVED* vps's directory on different hard disk [message #14313] |
Fri, 22 June 2007 07:46  |
onyx
Messages: 7 Registered: May 2007
|
Junior Member |
|
|
Hi!
Is it possible, to have a VPS's directory on a different device, than /vz? For example I have two 140G hard drives, in raid1, and on top of that I have LVM, for the ability to have snapshots, and this is mounted az /vz. I'd like to have /vz/private/101/var to be on another device. Can I do that?
Thanks in advance!
Balint
[Updated on: Mon, 25 June 2007 08:29] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: vps's directory on different hard disk [message #14331 is a reply to message #14325] |
Fri, 22 June 2007 12:20   |
onyx
Messages: 7 Registered: May 2007
|
Junior Member |
|
|
Vasily Tarasov wrote on Fri, 22 June 2007 08:01 | Sorry, don't get you.
Assume, you have /vz on /dev/hda1. It means, that VEs private files are located in /vz/private/<veid>. Then you have one more hard disk: hdb. After `vzctl mount` command you can give the following command:
mount /dev/hdb1 /vz/root/<veid>/var After `vzctl start` your VE will be able to write in /var as much information, as big is hdb1 (but not /vz)
HTH,
Vasily.
|
But if I stop the VPS, every data will be - as in your example - on /dev/hda1, including /vz/private/<veid>/var. Or this is not as I think, and /vz/private/<veid>/var will be empty this time, because all the data it contains is on /dev/hdb1?
|
|
|
|
|