Date: Sat, 18 Jul 2009 20:27:00 +0300 From: McLone <mclone@gmail.com> To: freebsd-current@freebsd.org Subject: [bug] ZFS zvol dev entry disappearing upon reboot Message-ID: <451cb3010907181027q13d5c345w8962a648c7682ed8@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hell Low. As downloading torrent files from many peers to ZFS imposes fragmentation (and there's no way to defragment ZFS volume - what a pity! How come now-a-days FS can go like this?), i created zvol with UFS2 on it last time i wanted to watch some old sci-fi. I had plans to move sci-fi from UFS2/zvol to ZFS when it'll be complete, but forgot it, and rebooted machine. After reboot rtorrent said sci-fi is marked as complete, but it can not find files. I wasn't surprised, as i haven't modified my /etc/fstab, so i entered "mount /dev/zvol" and pressed Tab in hope of tcsh (eek) autocomplete. It just beeped on me. I've done "ls /dev" and there was no directory there named zvol. Then i've done "zfs list" and my zvol was there. Puzzled, i've done "zfs snapshot" and then a little dance of "zfs send | zfs recv" to a new volume. Now dev entries appeared (both for newly created snapshot of an old zvol and for new zvol). I rebooted, and there was no /dev/zvol again. I looked at my uname -v output (it was HEAD/amd64 from Jul 1) and decided to update. Updating didn't solved this problem. Strangely, simple "zfs rename zpool/zvol zpool/newzvol" cures this woe, but i think this is a bug. Steps to reproduce: zfs create -V 1g zpool/zvol [newfs /dev/zvol/zpool/zvol] reboot ls /dev Workaround: zfs rename zpool/zvol zpool/newzvol mount /dev/zvol/zpool/zvol /mnt -- wbr, |\ _,,,---,,_ dog bless ya! ` Zzz /,`.-'`' -. ;-;;,_ McLone at GMail dot com |,4- ) )-,_. ,\ ( `'-' net- and *BSD admin '---''(_/--' `-'\_) ...translit rawx!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?451cb3010907181027q13d5c345w8962a648c7682ed8>