Re: "au_new_inode: broken ino"
> "Jrgen_P._Tjern": > > Branch 0 would be the first branch on the /proc/mounts-line? If so, > > that's /vault/disk3, which is xfs. How do I find largest inode number? Sorry, please add one line. > #!/bin/sh > > path=/tmp > tmp=/tmp/$$ > > set -x > df -i $path > for i in 1 2 > do sudo mount -o remount $path > sudo find $path \ > \( \( -name 3.Lbs \ ::: Junjiro Okajima - 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/
Re: umount busy aufs
Hi, Tomas M: > My goal is to properly save all filesystem modifications in the writable > branch. So first I tried to cleanly unmount the union, but it's busy and > can't be unmounted. Your aufs is the root filesystem, isn't it? 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? mount -no remount,ro /aufs for i in $writable_branches do mount -no remount,ro $i done exit If your xino files were on a hard drive, it is better to specify 'noxino' too. > 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? 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. Junjiro Okajima - 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/
Re: "au_new_inode: broken ino"
"Jrgen_P._Tjern": > Branch 0 would be the first branch on the /proc/mounts-line? If so, > that's /vault/disk3, which is xfs. How do I find largest inode number? Please send me the output of this script. Set $path correctly before you execute it. Junjiro Okajima -- #!/bin/sh path=/tmp tmp=/tmp/$$ set -x df -i $path for i in 1 2 do sudo find $path \ \( \( -name 3.Lbs \ -o -name libxtst6_1.0.1-3build1_i386.deb \ -o -name samba-common_3.0.22-1ubuntu4.2_i386.deb \) \ -fls $tmp.${i}a \) \ -o -printf '%i\n' | sort -n > $tmp.$i done diff -u $tmp.[12]a diff -u $tmp.[12] cat $tmp.1a tail $tmp.1 egrep -w '(805306524|134217865|134217862)' $tmp.[12] rm -f $tmp.* - 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/
aufs Monday release
o bugfix - bugfix: declare 'signed char', a portability problem reported by Bertrand D. - bugfix: strict branch index check at the first adding, reported by Bertrand D. - bugfix: unlink a whiteout under a dir who has a sticky bit, reported by Igor Karasynskyi. o misc - warn about overlapped branches when the top-dir is moved. - remove unnecessary dget_parent(), restoring a part of last ci. - testing 'imod' mount option. - add a note about an empty file in cramfs. - add a note about swapfile. Junjiro Okajima -- Index: fs/aufs/branch.c - bugfix: strict branch index check at the first adding time, reported by Bertrand D. Index: fs/aufs/hinotify.c - warn about overlapped branches when the top-dir is moved. Index: fs/aufs/i_op.c Index: fs/aufs/i_op_add.c Index: fs/aufs/i_op_del.c - remove unnecessary dget_parent(), restoring a part of last ci. Index: fs/aufs/opts.c - testing 'imod' mount option. Index: fs/aufs/vfsub.c - bugfix: unlink a whiteout under a dir who has a sticky bit, reported by Igor Karasynskyi. Index: fs/aufs/whout.c - remove unnecessary dget_parent(), restoring a part of last ci. - bugfix: unlink a whiteout under a dir who has a sticky bit, reported by Igor Karasynskyi. Index: include/linux/aufs_type.h - bugfix: declare 'signed char', a portability problem reported by Bertrand D. Index: util/aufs.in.5 - add a note about an empty file in cramfs. - add a note about swapfile. Index: fs/aufs/aufs.h Index: fs/aufs/branch.h Index: fs/aufs/cpup.c Index: fs/aufs/cpup.h Index: fs/aufs/debug.c Index: fs/aufs/debug.h Index: fs/aufs/dentry.c Index: fs/aufs/dentry.h Index: fs/aufs/dinfo.c Index: fs/aufs/dir.c Index: fs/aufs/dir.h Index: fs/aufs/export.c Index: fs/aufs/f_op.c Index: fs/aufs/file.c Index: fs/aufs/file.h Index: fs/aufs/i_op_ren.c Index: fs/aufs/iinfo.c Index: fs/aufs/inode.c Index: fs/aufs/inode.h Index: fs/aufs/misc.h Index: fs/aufs/module.c Index: fs/aufs/opts.h Index: fs/aufs/plink.c Index: fs/aufs/super.c Index: fs/aufs/super.h Index: fs/aufs/sysaufs.c Index: fs/aufs/sysaufs.h Index: fs/aufs/vdir.c Index: fs/aufs/vfsub.h Index: fs/aufs/wkq.c Index: fs/aufs/wkq.h Index: fs/aufs/xino.c Index: sample/watchguard/probe/probe.c Index: sample/watchguard/probe/probe.h - less important changes. - 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/
umount busy aufs
Hello, In linux-live scripts, I'm using aufs to join read-only branches with one writable branch at the top, so my setup is like the following: /union := /mnt/changes (a rw branch) /mnt/images/br1 (a ro branch) /mnt/images/br2 (a ro branch) /mnt/images/br3 (a ro branch) /mnt/images/br4 (a ro branch) :: (xino path is somewhere else, in /mnt/xino/, not in the rw branch) During reboot, some processes which can't be killed (eg. init) are running from the union, (/union/sbin/init for example). My goal is to properly save all filesystem modifications in the writable branch. So first I tried to cleanly unmount the union, but it's busy and can't be unmounted. 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. I think aufs thinks the branch is busy. But I believe there are no more open files from the writable branch, so it shouldn't fail. Using lsof shows that only /union/dev/initctl is open, but /union/dev is overmounted by tmpfs, so the file is not in fact in the union, but somewhere else. Is there a possible way to find out what's wrong? How to debug why aufs doesn't want to delete the branch? Some kind of 'lsof' for aufs, which would show me what files are open on the given branch, or why the branch is busy. Thank you very much for any help. 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/