OpenVZ Forum


Home » General » Support » 2 Harddisks
Re: 2 Harddisks [message #34735 is a reply to message #34734] Thu, 29 January 2009 12:49 Go to previous messageGo to previous message
khorenko is currently offline  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. Smile


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vlans on HN, how to disable routing between them
Next Topic: OpenVZ, vzrpm, vzyum?
Goto Forum:
  


Current Time: Thu Sep 12 08:09:23 GMT 2024

Total time taken to generate the page: 0.05354 seconds