Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 16:30:44 -0500
From:      Craig Boston <craig@xfoil.gank.org>
To:        current@freebsd.org
Subject:   Fun with ZFS
Message-ID:  <20070410213044.GB19591@nowhere>

next in thread | raw e-mail | index | archive | help
Just playing around, doing some stress testing and see what I could
break.  Since zvols are exposed as GEOM providers I decided to see if it
would accept them in a pool.  Slightly surprising, it works without
incident:

# zfs create -V 4G tank/testvol
# zpool create test zvol/tank/testvol

The resulting /test seems full functional.  Though why anyone would want
to do such a thing I have no idea.

More in the realm of intentional foot-shooting, you can get a nice
deadlock by doing that recursively:

# zfs create -V 1G test/panicme
# zpool add test zvol/test/panicme

;)

Though as far as deadlocks go it's not a particularly bad one.  zpool
and zfs commands all hang in zfs:(& or zfs:&s states, but the
filesystems can still be accessed -- even the ones in the test pool
above.

Of course there can be no sane behavior to the above sequence of
commands, except perhaps a panic or a stern warning message if it's
really nice.

Next up: interactions with ggate and other GEOM classes.

Craig



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