Tomas M:
> - a filesystem (any filesystem, including your /cow) can be remounted
> readonly ONLY if there are no files open from it

Right, but I'd like to add one more note.
There exists a case that you can remounte the filesystem as readonly
even if files are opened on it.
If all files are opened for reading (not writing), you can do it.


> 1) when you mount your aufs, set XINO path somewhere in tmpfs in
> memory, instead of on your /cow filesystem

Or you can use the "noxino" aufs mount option in your shutdown script.


> 2) If you have problems remounting /cow readonly, eg. your mountpoint
> still remains rw even after remount, then you may use lsof to see
> which files are open on your mountpoint, disallowing it to go
> read-only. This will give you information why your mountpoint can't be
> remounted ro.

For such purpose, the "aubusy" script in aufs-util.git may help you.


J. R. Okajima

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Reply via email to