OpenVZ Forum


Home » General » Support » *SOLVED* multiple filesystems in one VE
icon7.gif  *SOLVED* multiple filesystems in one VE [message #5779] Wed, 30 August 2006 14:05 Go to next message
HubertD is currently offline  HubertD
Messages: 22
Registered: August 2006
Junior Member
Just wondering...

is it possible to mount different filesystems into one VE?
The simple approach of mounting filesystems into the VE private directory doesn't seem to work.

I configured two raids (as two LVM VGs) on my server, using different sets of disks to distribute IO load, e.g. having a mysql daemon working on one raid and storing maildirs on the other one.

Maybe such a configuration is just not the "OpenVZ way" and I should configure different VEs on different volumes for different jobs.

What surprised me is that I found no documentation concerning multiple filesystems in one VE. I guess it would be possible to export LVM devices to the VE, creating the corresponding device files in there and mounting them from inside the VE?
But would it then be possible to access the files from the host system?

I'm just curious ;)

[Updated on: Thu, 31 August 2006 10:01] by Moderator

Report message to a moderator

Re: multiple filesystems in one VE [message #5780 is a reply to message #5779] Wed, 30 August 2006 14:16 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
mounting in /vz/root/<VEID> after VPS start works fine.
Re: multiple filesystems in one VE [message #5800 is a reply to message #5780] Wed, 30 August 2006 23:30 Go to previous messageGo to next message
HubertD is currently offline  HubertD
Messages: 22
Registered: August 2006
Junior Member
Hrmm. Doesn't seem to work for me...

nibbler:~# uname -a
Linux nibbler.little-isp.de 2.6.16-026test017 #2 SMP Tue Aug 29 18:24:23 CEST 2006 i686 GNU/Linux

nibbler:~# vzctl start 1002
Starting VPS ...
VPS is mounted
Setting CPU units: 1000
Setting devices
Set hostname: etch
VPS start in progress...

nibbler:~# mount /dev/backup/src /var/lib/vz/private/1002/usr/src/
nibbler:~# ls /var/lib/vz/private/1002/usr/src/
[... lots of directories ...]

nibbler:~# vzctl enter 1002
entered into VPS 1002
etch:/# ls /usr/src/
etch:/#


Mounting before starting the VE won't work at all.
nibbler:~# mount /dev/backup/src /var/lib/vz/private/1002/usr/src/
nibbler:~# vzctl start 1002
Starting VPS ...
vzquota : (error) Quota on syscall for 1002: Device or resource busy
vzquota on failed [3]


Am I doing something wrong?
Re: multiple filesystems in one VE [message #5805 is a reply to message #5800] Thu, 31 August 2006 05:40 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Yeap, you are doing wrong!
Instead
nibbler:~# mount /dev/backup/src /var/lib/vz/private/1002/usr/src/

do
nibbler:~# mount /dev/backup/src /var/lib/vz/root/1002/usr/src/

after VE start.
Re: *solved* multiple filesystems in one VE [message #5809 is a reply to message #5779] Thu, 31 August 2006 09:54 Go to previous message
HubertD is currently offline  HubertD
Messages: 22
Registered: August 2006
Junior Member
Okay, it works that way.
Now I also found the section about mount/umount scripts in the docs Wink

Thanks!
Previous Topic: Plesk 8.0.1 in a VPS or not?
Next Topic: Cpanel install problems
Goto Forum:
  


Current Time: Sat May 04 09:14:34 GMT 2024

Total time taken to generate the page: 0.01717 seconds