Re: 2 Harddisks [message #34735 is a reply to message #34734] |
Thu, 29 January 2009 12:49 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
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...
|
|
|