Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2014 13:00:21 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   ZFS: ZFS command can block the whole ZFS subsystem!
Message-ID:  <20140103130021.30569db4@thor.walstatt.dyndns.org>

next in thread | raw e-mail | index | archive | help
--Sig_/JJwKVcwTUAF.YNmgdLEYR6M
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable


For some security reasons, I dumped via "dd" a large file onto a 3TB
disk. The systems is 11.0-CURRENT #1 r259667: Fri Dec 20 22:43:56 CET
2013 amd64. Filesystem in question is a single ZFS pool.

Issuing the command

"rm dumpfile.txt"

and then hitting Ctrl-Z to bring the rm command into background via
fg" (I use FreeBSD's csh in that console) locks up the entire command
and even worse - it seems to wind up the pool in question for being
exported!

I expect to get the command into the background as every other UNIX
command does when sending Ctrl-Z in the console. Obviously, ZFS
related stuff in FreeBSD doesn't comply.=20

The file has been removed from the pool but the console is still stuck
with "^Z fg" (as I typed this in). Process list tells me:

top
17790 root             1  20    0  8228K  1788K STOP   10   0:05
0.00% rm

for the particular "rm" command issued.

Now, having the file deleted, I'd like to export the pool for further
maintainance, but that doesn't work with

zpool export -f poolname

This command is now also stuck blocking the terminal and the pool from
further actions.

This is painful. Last time I faced the problem, I had to reboot prior
to take any action regarding any pool in the system, since one single
ZFS command could obviously block the whole subsystem (I tried to
export and import).

What is up here?

--Sig_/JJwKVcwTUAF.YNmgdLEYR6M
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQEcBAEBAgAGBQJSxqZZAAoJEOgBcD7A/5N8fk0H/2It5tSIAayzGv6KBOdZaVrd
0bk78fz9P2caL5+5YUfPiTzynK+/CbTZTU9lWcXWkj9zdrNbyrE7pvagEi26YufC
/okYrjJbW4sqexhphjolN6WhSVVwpIRglH6WBtPq6EN8OoGeQquVhMkhubFM3hIt
jHqH2vlR+WwLFnH83w/Imo49fQv4BIj3gZoa2AR4mR6Hsmtzm+/D87Fdd/a8spYC
qy0VRUMmziK/ieGkyGopW42E9idESgtcIDQatPqEoMu47N1QgQ5bye8V5EcG9k7K
MU/CQ5N0v6loxMFMOqX5+kIBuxhbh1b7I7ZHpK4Bkx6iW929WeZdBo9quz8QUs0=
=D3Qi
-----END PGP SIGNATURE-----

--Sig_/JJwKVcwTUAF.YNmgdLEYR6M--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140103130021.30569db4>