OpenSolaris

Printable Version Enter a New Search
Bug ID 6462803
Synopsis zfs snapshot -r failed because filesystem was busy
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zfs
Keywords find_byauto
Responsible Engineer Neil Perrin
Reported Against snv_43 , snv_100 , snv_101 , snv_102 , snv_106 , snv_107 , osol_2008.11
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_111
Fixed In snv_111
Release Fixed solaris_nevada(snv_111) , solaris_10u8(s10u8_01) (Bug ID:2173773)
Related Bugs 6338653 , 6482985 , 6727872 , 6749498 , 6757469 , 6764596 , 6802749 , 6808530 , 6825126
Submit Date 22-August-2006
Last Update Date 25-March-2009
Description
bustos 2006-08-22

I tried to snapshot a pool with zfs snapshot -r.  It failed because it said a
contained filesystem was busy.  The filesystem in question was unmounted, a
clone, and had a legacy mountpoint.

DTrace indicated that zil_suspend() was failing with EBUSY, which according to
the code means that the filesystem had an unplayed log.  zdb -ivvvv confirmed
this.  I cleared the log by mounting and unmounting the filesystem, and the
snapshot command succeeded.

The unplayed log is probably from when I had the filesystem mounted in a zone
and took a crash dump.

Either this scenario should be eliminated (if we can automatically play logs),
or the error message should be improved (by indicating that the log is not
clear, and possibly how to clear it).
I've hit this too.  On OpenSolaris, this is particularly a problem
because you wind up with lots of BEs in this state.

I had to manually mount and umount 20 different filesystems to
make this work.  Marking NEW.  This needs attention, because we're
planning to recommend using 'zfs snapshot -r' on opensolaris as
part of P2V (physical to virtual) conversion of systems into
containers.  If we can't rely on zfs snapshot, this will be a
major customer dissatisfier.

This bug has racked up 13 SRs.  I am marking NEW as a result of the
fact that this bug is going to make implementing higher level
functionality (the opensolaris zones P2V project).  According
to bug 6808530, this is also problematic for auto-snapshot
functionality.

I think it therefore qualifies as something which needs to be
evaluated by the release teams.  I urge the ZFS team to prioritize
a fix for this problem.
Work Around
bustos 2006-08-22

Mount and unmount the problematic filesystem.
Comments
N/A