OpenVZ Forum


Home » General » Support » Need help with mount bind
Re: Need help with mount bind [message #38922 is a reply to message #38901] Sat, 20 February 2010 10:06 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello jonathan,

I'd like to start from the end of your post.
Quote:

Ideally I would like to break it down to x amount of GB on the /backup per container. So say I have a VPS which has 35GB of HDD they can only use 35GB on the /backup.


I'm not sure that this is the best idea and I hope that you will be able to find an optimal variant but consider this as a starting point to proceed further: don't you want to allocate the whole 750Gb disk to a single volume group and then create just logical volumes that are corresponded to VEs backup directories e.g. /backup/101, /backup/102, /backup/103 etc. Each of them you can mount --bind inside appropriate VE.
For further information please turn to:
http://tldp.org/HOWTO/LVM-HOWTO/

That's a flexible way to solve your problem from my point of view as you can easily create an additional logical volume as well as set a well-defined size to it when a particular VE is being created.


Quote:

but when going to the container and doing a DF the /backup is not listed there.


But isn't this a normal "df" utility behavior? If I do "mount --bind" on a pure Linux machine, I don't expect to view information in "df" output. Am I wrong?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Installation & Setup
Next Topic: /proc not mounted erorr in containers
Goto Forum:
  


Current Time: Mon Sep 16 16:06:55 GMT 2024

Total time taken to generate the page: 0.04680 seconds