OpenVZ Forum


Home » General » Support » Need help with mount bind
Re: Need help with mount bind [message #39021 is a reply to message #38901] Thu, 04 March 2010 09:04 Go to previous message
TheStig is currently offline  TheStig
Messages: 94
Registered: December 2008
Member
On my more recent OpenVZ kernels (2.6.24 or .26) df (or mount for that matter) lists devices bound in via "mount --bind" inside a VPS correctly, even displaying the correct path on the HNs /dev/. On my 'custom' 2.6.22 it doesn't work unless I run df on the bound in device directly (eg. 'df /var/www').

I'm not quite sure if that also works if you bind just a subdirectory instead of an device, as I always create LVMs or DRBDs for my VPS.

If you just want to backup your VPS I wouldn't make the backup accessible inside a VPS but rather (r)sync the contents of /vz/private/#/whatever-you-need/ via a cronjob to the backup disk. This way your backup is still save, even if your VPS is cracked.
 
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: Thu Aug 21 14:20:26 GMT 2025

Total time taken to generate the page: 0.06444 seconds