2 Harddisks [message #34732] |
Thu, 29 January 2009 11:40 |
dragon001
Messages: 16 Registered: February 2007
|
Junior Member |
|
|
Hi,
Here is my System Setup
Pentium III 900 MHZ
512 MB Ram
HDD1: 160GB
HDD2: 10GB
HDD3: 80GB
Partitions:
HDD1: 150GB /srv ext3 10GB Swap
HDD2: 10GB / ext3
HDD3: 80 GB /mount xfs
I've got all vServers Running in the 150Gig Partition.
I want to add the 80Gig Drive too an VPS 250 which shall be an fileserver containing samba etc.
The Problem is, how do i add it?
Thanks for your help.
Chris
|
|
|
Re: 2 Harddisks [message #34733 is a reply to message #34732] |
Thu, 29 January 2009 12:14 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hi Chris,
please, correct me if i understood your idea wrong: you want to add an additional drive and create a Container that will reside on this drive, right?
If yes, then just mount additional drive to some directory on the Hardware Node, for example /mnt/driveX, then create a Container using additional options to vzctl: "--private" and "--root".
Check "man vzctl" for details.
Hope this helps.
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
Re: 2 Harddisks [message #34735 is a reply to message #34734] |
Thu, 29 January 2009 12:49 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Well,
the simplest way is to mount that disk on Hardware node to a directory (e.g. /data/tmp) and then bindmount /mnt to the Container.
You can automate this by per-container "mount" script:
# cat /etc/vz/conf/101.mount
#!/bin/bash
. /etc/vz/vz.conf
mount -n -o bind /data/tmp $VE_ROOT/data/tmp
You can also read about --devices / --devnodes vzctl options, they allow you to get access to /dev/XXX device from inside a Container, and then just mount the device inside a Container as usual. But in this case please, first play with ext3 partitions, for xfs partition you might face some additional issues.
--
Konstantin
> (By the way, hope my english isn't to bad, I am German Wink )
i'm also not native so i bet your english is better than mine.
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
Re: 2 Harddisks [message #34952 is a reply to message #34736] |
Fri, 13 February 2009 12:21 |
pmc2000
Messages: 1 Registered: September 2008
|
Junior Member |
|
|
I've just added a new disk and wanted to make it available to a container to use as additional storage. This worked for me on ext3.
vzctl set 1000 --devnodes sdb1:rw -save
|
|
|