OpenVZ Forum


Home » General » Support » *SOLVED* how to create a mount script
Re: how to create a mount script [message #27003 is a reply to message #26921] Wed, 06 February 2008 17:05 Go to previous messageGo to previous message
jonwatson is currently offline  jonwatson
Messages: 21
Registered: March 2007
Junior Member
Hello,

I am attempting to do a bind mount on my test VE 1040. For testing purposes, I just want to mount /home/jdw on the host node into /home in VE 1040. I know this isn't a proper setup, but I'm just trying to get the format of the mount script correct.

It seems to me that all I would have to put into /etc/sysconfig/vz-script/1040.mount is:

mount -n --bind /home/jdw /vz/private/1040/home

however, when I attempt to start VE 1040 with this mount script in place I get the following error:

Starting VE ...
Error exec /etc/vz/conf/1040.mount: Exec format error
Error executing mount script /etc/vz/conf/1040.mount

The mount -n --bind /home/jdw /vz/private/1040/home works on the host node at the command line so the format appears to be correct. I have also tried mounting to the VZ root instead of private area as I am not clear where I should be mounting to.

The HN is openvz 2.6.18-53.1.4.el5.028stab053.4 and VE 1040 was built with the centos-4-i386-default template.

Any ideas what I'm doing wrong?

Thanks

Jon
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HN and VE IPs on different subnets
Next Topic: DRBD+Heartbeat clustering question!
Goto Forum:
  


Current Time: Sat Jul 19 11:30:37 GMT 2025

Total time taken to generate the page: 0.05936 seconds