> Your aufs is the root filesystem, isn't it?

no, at the time I'm unmounting it, some shutdown script already changed 
the root back to initrd, so aufs is now mounted on /union, not root.

> Generally speaking, the root filesystem cannot be unmounted. It is
> remounted as readonly at shutdown/reboot time.
> 
> How about this procedure instead of unmounting aufs?
 > ::

Thank you for your suggestion. This will work and will remount 
everything read only. Nevertheless currently I need to unmount the union 
entirely (in order to cleanup deleted loop devices, etc.).

> If your xino files were on a hard drive, it is better to specify
> 'noxino' too.

xino is in tmpfs mounted directory outside of the rw branch.
I can't use noxino because many applications will not work correctly.

>> So, if the union can't be unmounted, I thought to remove the writable 
>> branch from it, using 'mount -o remount,del:/mnt/changes aufs /union'. 
>> Unfortunately this doesn't work either and there is no info in dmesg why 
>> that failed.
> 
> That is strange.
> When you executed remount, was your syslogd up and running?

No, syslog is not running, no more processes are running, only the init 
process from /union/sbin/init is running.

> The major reasons to reject deleting a branch are,
> - there is only one branch left in aufs.
> - a file or something is in use on the branch.
> - a directory is in use (which lsof may not show), and the directory
>   doesn't exist on any other branch.

I understand there may be million reasons why the aufs is busy. I 
believe the init process causes that in my case so I'll have to deal 
with it. I got a suggestion from Joey to try something, so I'll try it.

I was just wondering if there is a way to see what resources 
(files/directories/etc) are used by aufs (perhaps through /proc or 
/sys). This would help very much. So please consider this as a feature 
request for aufs sometime in the future :)


Thank you

Tomas M

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Reply via email to