From owner-freebsd-current@FreeBSD.ORG Tue Aug 18 16:47:54 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C30E106568B for ; Tue, 18 Aug 2009 16:47:54 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 8C14C8FC65 for ; Tue, 18 Aug 2009 16:47:53 +0000 (UTC) Received: from c83-253-252-234.bredband.comhem.se ([83.253.252.234]:59902 helo=mx.exscape.org) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1MdRq1-0004xK-3t; Tue, 18 Aug 2009 18:47:11 +0200 Received: from [192.168.1.5] (macbookpro [192.168.1.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.exscape.org (Postfix) with ESMTPSA id 3D644199B6; Tue, 18 Aug 2009 18:46:57 +0200 (CEST) Message-Id: From: Thomas Backman To: Danny Braniss In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Tue, 18 Aug 2009 18:46:54 +0200 References: X-Mailer: Apple Mail (2.936) X-Originating-IP: 83.253.252.234 X-Scan-Result: No virus found in message 1MdRq1-0004xK-3t. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1MdRq1-0004xK-3t 4f61eae8d7047f6d6b28a9f2d47fc7df Cc: current@freebsd.org Subject: Re: latest 8.0-BETA2 lost my zfs 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: Tue, 18 Aug 2009 16:47:54 -0000 On Aug 18, 2009, at 16:42, Danny Braniss wrote: >> it seems that the latest changes to zfs prevents zpool to see/find >> the pool in /dev/ad0p4 (BTW, the pool was created under 8.0) >> >> # gpart show >> => 34 1953525101 ad0 GPT (932G) >> 34 128 1 freebsd-boot (64K) >> 162 4194304 2 freebsd-ufs (2.0G) >> 4194466 8388608 3 freebsd-swap (4.0G) >> 12583074 1940942061 4 freebsd-zfs (926G) >> >> # zpool list >> no pools available >> # zpool import -a >> # >> >> under 7.2, the pool is still there: >> >> pundit-2> zfs list >> NAME USED AVAIL REFER MOUNTPOINT >> z 5.27G 900G 18K /z >> z/home 5.21G 900G 5.21G /home >> z/var 59.7M 900G 59.7M /var >> pundit-2> zpool list >> NAME SIZE USED AVAIL CAP HEALTH ALTROOT >> z 920G 5.27G 915G 0% ONLINE - > > running 'truss zpool import -a' reveals the problem: > > open("ad0p4",O_RDONLY,00) ERR#2 'No such file > or directory' > open("/dev/ad0p4",O_RDONLY,05003312752) = 5 (0x5) > ioctl(5,DIOCGSECTORSIZE,0xbfbfa1f4) = 0 (0x0) > fstat(5,{ mode=crw-r----- ,inode=75,size=0,blksize=4096 }) = 0 (0x0) > pread(0x5,0x2834a000,0x40000,0x0,0x0,0x805ab64) = 262144 (0x40000) > pread(0x5,0x2834a000,0x40000,0x40000,0x0,0x1bfd8) = 262144 (0x40000) > pread(0x5,0x2834a000,0x40000,0xfff80000,0xffffffff,0x1bfd8) ERR#5 > 'Input/output error' > ********** offset is a bit too big :-) > pread(0x5,0x2834a000,0x40000,0xfffc0000,0xffffffff,0x1bfd8) ERR#5 > 'Input/output error' Glad I'm not the only one. I reported the same issue yesterday, in a thread originally about something else zfs related (zfs send sends a broken stream, or recv considers it broken despite it being fine; I don't know which one it is): http://lists.freebsd.org/pipermail/freebsd-current/2009-August/010709.html FWIW, my truss output (ggate142 is the ZFS pool device I *just* created and then exported, and ad2s1b is my swap/dump device): (from "truss -o outfile zpool import") [...] open("ad2s1b",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/ad2s1b",O_RDONLY,00) = 7 (0x7) ioctl(7,DIOCGSECTORSIZE,0xffff9fc4) = 0 (0x0) fstat(7,{ mode=crw-r----- ,inode=79,size=0,blksize=4096 }) = 0 (0x0) pread(0x7,0x80128c000,0x40000,0x0,0x34004,0x801201340) = 262144 (0x40000) pread(0x7,0x80128c000,0x40000,0x40000,0x1,0x801201340) = 262144 (0x40000) pread(0x7,0x80128c000,0x40000,0xfffffffffff80000,0x1,0x801201340) ERR#5 'Input/output error' pread(0x7,0x80128c000,0x40000,0xfffffffffffc0000,0x1,0x801201340) ERR#5 'Input/output error' close(7) = 0 (0x0) open("ggate142",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/ggate142",O_RDONLY,00) = 7 (0x7) ioctl(7,DIOCGSECTORSIZE,0xffff9fc4) = 0 (0x0) fstat(7,{ mode=crw-r----- ,inode=93,size=0,blksize=4096 }) = 0 (0x0) pread(0x7,0x80128c000,0x40000,0x0,0x34004,0x801201340) = 262144 (0x40000) pread(0x7,0x80128c000,0x40000,0x40000,0x1,0x801201340) = 262144 (0x40000) pread(0x7,0x80128c000,0x40000,0xfffffffffff80000,0x1,0x801201340) ERR#5 'Input/output error' pread(0x7,0x80128c000,0x40000,0xfffffffffffc0000,0x1,0x801201340) ERR#5 'Input/output error' close(7) = 0 (0x0) close(4) = 0 (0x0) close(5) = 0 (0x0) close(6) = 0 (0x0) ... sigprocmask(...) process exit, rval = 1 Regards, Thomas