OpenVZ Forum


Home » General » Support » *SOLVED* how to create a mount script
Re: how to create a mount script [message #30069 is a reply to message #27053] Wed, 07 May 2008 19:08 Go to previous messageGo to previous message
ArsDangor is currently offline  ArsDangor
Messages: 6
Registered: March 2008
Junior Member
Hi.

I'm trying what you suggest here, but I don't make it to work.

My mount script:
#!/bin/bash
mount --bind '/vz/mounts/gridlog/psql' /vz/root/3000'/var/lib/pgsql'


All directories exist:
$ ls -lhd /vz/mounts/gridlog/psql /vz/root/var/lib/pgsql

drwxr-x--- 2 root root 4.0K May  7 19:40 /vz/mounts/gridlog/psql/
drwxr-x--- 2 root root 4.0K May  7 20:45 /vz/root/3000/var/lib/pgsql/


But I get the following error if I try to start VE 3000:
Quote:

Starting VE ...
mount: mount point /vz/root/3000/var/lib/pgsql does not exist
It doesn't work if I replace /vz/root with /vz/private, or I change the permissions or I add '-n' to the mount invocation.

I'm using vzctl-3.0.22-1 . Any ideas?

Thanks a lot.


If all the world is a stage, I want better ligthting.
 
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: Mon Jul 21 00:15:29 GMT 2025

Total time taken to generate the page: 0.07101 seconds