ZVOL Device Nodes Disappear

Richard Laager rlaager at wiktel.com
Tue May 24 12:44:46 EDT 2011


On Sat, 2011-05-21 at 10:03 +0700, Fajar A. Nugraha wrote:
> What version of zfs do you use? Also what distro/version?

0.6.0.15-0ubuntu1~natty1 on Ubuntu Natty.

> There was a problem like that around rc2, but it's fixed before rc3
> was out. Latest version is 0.6.0-rc4.

I'm not sure if this Ubuntu version is rc4 or older.

Below is a script that you can use to reproduce the issue. It must be
run as root, of course.

Richard

dd if=/dev/zero of=zvol_test.img bs=100M count=1
zpool create zvol_test `pwd`/zvol_test.img
zfs create -V 50M zvol_test/zvol
mke2fs /dev/zvol/zvol_test/zvol
if [ -e /dev/zvol/zvol_test/zvol ] ; then
    echo SUCCESS
else
    echo FAILURE
fi
zpool export zvol_test
rm zvol_test.img
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20110524/c330488c/attachment.sig>


More information about the zfs-discuss mailing list