Date: Wed, 10 Aug 2011 15:16:53 +0200 From: joris dedieu <joris.dedieu@gmail.com> To: Ian Downes <ian@ndwns.net> Cc: freebsd-jail@freebsd.org Subject: Re: umounting md backed jail filesystems - busy Message-ID: <CAPd55qAZ70OORvqe7RrKGKMaKworgoZsEa38-d=OwVbnvgC9zA@mail.gmail.com> In-Reply-To: <20110810021750.GA83262@weta.stanford.edu> References: <20110810021750.GA83262@weta.stanford.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/8/10 Ian Downes <ian@ndwns.net>: > Hi everyone, > > I'm trying to cleanup after shutting down some jails but I'm getting devi= ce > busy errors when trying to umount some of the filesystems. > > More specifically, I've got an ephemeral zfs filesystem that serves as th= e root > of the jail. On '/etc/rc.d/jail stop' the jail stops cleanly but when I t= ry to > destroy the zfs filesystem the initial umount fails, claiming it's busy. = This > happens everytime. > > I can't for the life of me work out who's tying it up. I've tried fstat, = lsof > and fuser but nothing is reported as active! No processes, no active file= s. What gives top -S -n 10000 |grep -i zfs while system is not unmountable (could you see some processes in zfs state) ? What gives jls during this time (does it report anythink still alive) ? Regards Joris > > Details: > > $ uname -a > FreeBSD XXX.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue May 31 19:05:32 U= TC 2011 =A0 =A0 root@XXX.com:/usr/obj/usr/src/sys/XENHVM =A0amd64 > > 'data' is a md backed zpool > > $ mount | grep > data/path/to/jail/root on /path/to/jail/root (zfs, local) > > $ fstat -f /path/to/jail/root > USER =A0 =A0 CMD =A0 =A0 =A0 =A0 =A0PID =A0 FD MOUNT =A0 =A0 =A0INUM MODE= =A0 =A0 =A0 =A0 SZ|DV R/W > > $ unmount /path/to/jail/root > cannot unmount '/path/to/jail/root': Device busy > > Some time later, measured in minutes, something frees up and I can > umount/destroy the filesystem ok. > > Can anyone offer some suggestions on what it could be or other ways to > determine what's going on? > > Thanks, > > Ian > > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPd55qAZ70OORvqe7RrKGKMaKworgoZsEa38-d=OwVbnvgC9zA>