*SOLVED* how to create a mount script [message #26900] |
Tue, 05 February 2008 03:57 |
|
Alright, ive read the PDF but it doesnt go into detail how to make a mount script... do i just create 300.mount in /etc/vz/conf and put
mount --bind /vz/private/200/home/xxx /vz2/private/root/300/home/xxx
and it will run that script on boot? if thats the case please let me know or if not let me know how i can have it mount /vz/private/200/home/xxx to /vz2/private/root/300/home/xxx
[Updated on: Thu, 07 February 2008 05:55] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
Re: how to create a mount script [message #30069 is a reply to message #27053] |
Wed, 07 May 2008 19:08 |
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.
|
|
|
|