From owner-freebsd-current@FreeBSD.ORG Sat Jul 18 17:56:25 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 784FE1065686 for ; Sat, 18 Jul 2009 17:56:25 +0000 (UTC) (envelope-from mclone@gmail.com) Received: from mail-fx0-f216.google.com (mail-fx0-f216.google.com [209.85.220.216]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0518FC1D for ; Sat, 18 Jul 2009 17:56:24 +0000 (UTC) (envelope-from mclone@gmail.com) Received: by fxm12 with SMTP id 12so172534fxm.43 for ; Sat, 18 Jul 2009 10:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=cwQMIdv+xChFe47aEDWDP4fX/o1QJ/8VQdlI7zLA0wI=; b=iI5+/7eys/NfOSJylPGYlj070LACv1J5PxMXxa5CvcZzavSKpUey20BXZ+ViWwkNsw 6gAkpDi32ib8ZG3PqU0hcEqYA/YdwKVCteu75Q0wBVJ7oT/0hO3Y4U7oBZBTQDQus0mZ LJK167hpaZKBQZKP6KShJ0kq9qJFjyuI6b3XA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=cq4+BL/kQH3+Fz8mMiwbY32NLhBgeZcIDQWQMFVWgp4LvNSI33Dt7g0AApf87yxaaX TWZI5L516+6diBubjDEHZ/DY9qE5ZTfI2AAoZGMFpES3Sf7RfMwAM0dJB9lLVn8qb69R L6IP/E11uSWZtCavOEY5xFlNH+byT8x5NdxP8= MIME-Version: 1.0 Received: by 10.204.53.136 with SMTP id m8mr2236631bkg.109.1247938020827; Sat, 18 Jul 2009 10:27:00 -0700 (PDT) Date: Sat, 18 Jul 2009 20:27:00 +0300 Message-ID: <451cb3010907181027q13d5c345w8962a648c7682ed8@mail.gmail.com> From: McLone To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [bug] ZFS zvol dev entry disappearing upon reboot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2009 17:56:25 -0000 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!