cd /.zfs/snapshot hangs (tmux put to uninterruptible sleep)

Niklaas Baudet von Gersdorff niklaas at kulturflatrate.net
Mon Oct 26 14:57:54 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 26/10/15 12:44, Matthew Seaman wrote:
> Actually, here is the problem:
> 
> stingray:/:# zfs destroy -r tank/.......1 cannot unmount
> '/.......1': Device busy
> 
> But that is easily fixed by:
> 
> stingray:/:# zfs umount -f /.......1 stingray:/:# zfs destroy -r
> tank/.......1
> 
> I wonder if that's worth a PR?  I recall now this is exactly what I
> ran into before, but it seems rather different to what you're
> seeing.

Aha!

I am not sure but it could be that it is related. (Sorry, unlike you I
haven't further investigated on what caused the error i.e., I am not
100% sure.)

What I realised yesterday was that I had several more processes stuck
in D. All of these were caused by a script [1] hat I use to create
snapshots of my ZFS filesystems regulary. It creates snapshots and
*deletes* old ones.

1: https://bitbucket.org/mmichele/zfssnap

My guess is now that the script caused the uninterruptible sleep of a
process (several times because I run it quite regularly) when it tried
to destroy an old snapshot. Then I came in and (because I wanted to
restore an accidentally deleted file) `cd /.zfs./snapshot` and
couldn't get access (the process hang) because the script already
messed up everything.

Does this make sense?

- -- 
Niklaas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWLkADAAoJEG2fODeJrIU/HHAP+gJNz2NFwkMd19niUqIHiivl
OoY6HVQssNIX4fB3jxhBz0BmJiNa2tokkOpeHFlrHcF/b0KuACvt54f9rsRQVqYT
KT5zkbuHPXyYFxFV1OGbDQ9d+fGnwf3iieHpHiUsmEAdmObswmB4kHEziyF1zsJg
rswYDPy4BOp/nHIuiCLgtmtj6SuLF2qk5V0Fcu7d9kygJuvAk9H2tF+HKvWV13Hf
CI6G9btZSvHMFCGj4STA7m6UxsphhWhIn3vic5OSa5HZPtpTGo8waoohzqeQWGSf
FphJf2lWFSR0gN8bfJVCszl86BiQmW1GCKbsL+StDc7a2k7zOgmcC75pY313EY8L
EVTN02oH0k2bt3MTlR+QUBFExvKSYauQl8ZFdCDMKAtRTJgK5AXEx03m3RNNcFlu
mHfz8wL2ly0ZJo3CR18E/zCtHSfgazHhc+vsQ3fegOLDIv23JvjMXESt9Ws9kc8z
ftjilHmduC8Xq8NcQv9EmCKrpsfr2258+S6DyDDKWNIZuQusWVTZiDDKQ/R5Lky7
1+SkDdnJ0z0uPX8YwhLHze+xth/4UxWnPr2lKlXFUjJGdTuMNGq8YYw9xp7CPAdA
k67ihURldhZzDJW48jYEAmHNxsnNpVoKDui/77lfdVRSEa1AH8CFCVTvb6T60XBp
kkNxnCtzWWp1GbS/X9rc
=6NuN
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list