OpenVZ Forum


Home » General » Support » Multiple Disks Bind Help
Multiple Disks Bind Help [message #43011] Fri, 01 July 2011 13:48 Go to next message
domz is currently offline  domz
Messages: 9
Registered: April 2011
Junior Member
So I got 4 HDD, and I want don't want LVM or Raid them (I want each one separate). I am also using Solusvm. This is for 1 user per HDD

So far, I think I have an idea, but I am not sure if it will work:
1. I make 4 different directories. /home1 /home2/ /home3/ /home4

2. I mount each directory:
mount /dev/sda /home1
mount /dev/sdb /home2
etc..

3. I bind them:
mount --bind /home1 /vz/root/100
mount --bind /home2 /vz/root/101

etc..

4. I make a bind script:
cat /etc/vz/conf/100.mount

#!/bin/bash
source /etc/vz/vz.conf
source ${VE_CONFFILE}
mount -n --bind /home1 ${VE_ROOT}/mnt/disk


Am I on the right track?



Re: Multiple Disks Bind Help [message #43021 is a reply to message #43011] Sat, 02 July 2011 12:05 Go to previous messageGo to next message
domz is currently offline  domz
Messages: 9
Registered: April 2011
Junior Member
Sorry, but really need a hand with this Smile
Re: Multiple Disks Bind Help [message #43031 is a reply to message #43011] Wed, 06 July 2011 10:03 Go to previous message
TheStig is currently offline  TheStig
Messages: 94
Registered: December 2008
Member
What exactly are u trying to archive?

You're VPS resides in /vz/private/#ID and /vz/root/#ID is only created for a running VPS. So binding something to /vz/root doesn't make any sense.

Why don't just put smthg in your fstab like

/dev/sdc1 /vz/private/1001 ext3 defaults 0 0


haven't tried that yet, but i don't see why it shouldn't work....

greetings, j
Previous Topic: VE not reachable via ipsec-Tunnel using openswan and bridge-devices
Next Topic: incremental backup on OpenVZ containers ?
Goto Forum:
  


Current Time: Tue Aug 13 10:17:29 GMT 2024

Total time taken to generate the page: 0.02843 seconds