OpenVZ Forum


Home » General » Support » Directories read-only in one VPS, read-write in another?
Directories read-only in one VPS, read-write in another? [message #3024] Mon, 08 May 2006 17:01 Go to previous message
Griffon26 is currently offline  Griffon26
Messages: 4
Registered: April 2006
Location: Eindhoven, The Netherland...
Junior Member
I'm looking for a way to have a certain directory read-only in
one VPS and read-write in another.

So far I have thought of four solutions, but none of them are
really appealing:

1) Put each directory for which I want to do this on a separate
partition and then give different VPS's different permissions
on these devices using vzctl set --devices.

2) Use unionfs to provide a read-only instance of each directory
to certain VPS's and a read-write instance to others.
I'm not sure how well this will work, because this is what
unionfs' INSTALL file says:

* Unionfs does not provide cache coherency.  What this means 
to you is that if you directly modify the lower-level
branches, then Unionfs will get confused.  You can tell 
Unionfs to throw out its cache and recreate all of its 
objects (lazily), by running "uniondbg -g UNION".


3) Export the directories to localhost and mount them read-only.
This can be done with SMB, NFS, ...

4) Adapt Herbert Poetzl's bind mount extensions to apply to
the openvz kernel that I'm using. Currently the latest
version of the BME are for kernel 2.6.11-rc4, so they
require some work.

Can anyone think of another way?

I'm inclined to go with 4 or with 3 if 4 turns out to be a lot
of trouble.
 
Read Message
Read Message
Read Message
Previous Topic: binutils >= 2.15.94.0.2.2-2.2.swsoft
Next Topic: Network Hanging
Goto Forum:
  


Current Time: Tue Oct 15 00:42:05 GMT 2024

Total time taken to generate the page: 0.05190 seconds