From owner-freebsd-fs@FreeBSD.ORG Sat Jun 4 19:12:27 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74FB5106566C for ; Sat, 4 Jun 2011 19:12:27 +0000 (UTC) (envelope-from bartosz.stec@it4pro.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id CB4068FC15 for ; Sat, 4 Jun 2011 19:12:26 +0000 (UTC) Received: from static-78-8-144-74.ssp.dialog.net.pl ([78.8.144.74]) by mainframe.kkip.pl with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1QSwGe-000Hba-QE; Sat, 04 Jun 2011 21:12:25 +0200 Message-ID: <4DEA838B.3060404@it4pro.pl> Date: Sat, 04 Jun 2011 21:12:11 +0200 From: Bartosz Stec Organization: IT4Pro User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: "Vladislav V. Prodan" References: <4DE7C122.2040004@it4pro.pl> <4DEA7E50.3090507@ukr.net> In-Reply-To: <4DEA7E50.3090507@ukr.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: bartosz.stec@it4pro.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.2 X-Spam-Score-Int: -81 X-Exim-Version: 4.76 (build at 12-May-2011 10:41:54) X-Date: 2011-06-04 21:12:25 X-Connected-IP: 78.8.144.74:49418 X-Message-Linecount: 642 X-Body-Linecount: 628 X-Message-Size: 17937 X-Body-Size: 17306 X-Received-Count: 1 X-Recipient-Count: 2 X-Local-Recipient-Count: 2 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Cc: freebsd-fs@freebsd.org Subject: Re: [ZFSv28] Loader hangs, import failes, zfs filesystem unavailable. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2011 19:12:27 -0000 W dniu 2011-06-04 20:49, Vladislav V. Prodan pisze: > 02.06.2011 19:58, Bartosz Stec wrote: >> Hi list, >> Today I needed to shut down my home server (FreeSBD9-CURRENT, 3 x 40GB >> ATA HDD in RADZ1, ZFS only, GPT, i386) for a moment. After power up, >> loader started to spin cursor indifinitely, and didn't load the kernel. >> No error messages, no hints, just spinning cursor. >> I tried booting from other HDDs in case that bootstrap area errors on >> single hdd but no luck. >> I wanted to play with latest current LiveFS snapshot (with ZFSv28 >> support), but apparently latest one is from february?? >> Finally I ended with mfsBSD from http://mfsbsd.vx.sk/ >> I've downloaded "8.2-RELEASE-i386 with ZFSv28 special edition >> " iso, burned it >> and booted machine. Here's what happened when i was trying to import >> zpool: >> >> mfsbsd# zpool status >> no pools available >> mfsbsd# zpool import >> pool: zroot >> id: 16074929158756467860 >> state: ONLINE >> status: The pool was last accessed by another system. >> action: The pool can be imported using its name or numeric >> identifier and >> the '-f' flag. >> see: http://www.sun.com/msg/ZFS-8000-EY >> config: >> >> zroot ONLINE >> raidz1-0 ONLINE >> gptid/2ea57c66-bc69-11df-8955-0050dad823cd ONLINE >> gptid/5bc92016-6852-11df-a16c-0050dad823cd ONLINE >> gptid/87d467cc-bc3b-11df-8066-0050dad823cd ONLINE > > Please run and show the output of these commands: > zpool status -x > zdb -l /dev/ad0 > zdb -l /dev/ad1 > zdb -l /dev/ad2 > zdb zroot > 'Zpool status' and 'zdb root' won't work until pool is imported (I think), and I guess you wanted zdb output from ZFS partitions, not whole HDD's, so here you go: mfsbsd# zpool status -x no pools available mfsbsd# zdb zroot zdb: can't open 'zroot': No such file or directory mfsbsd# zdb -l /dev/ad0p3 -------------------------------------------- LABEL 0 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 2774520698453861827 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 1 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 2774520698453861827 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 2 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 2774520698453861827 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 3 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 2774520698453861827 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 mfsbsd# zdb -l /dev/ad1p3 -------------------------------------------- LABEL 0 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8243099701788087797 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 1 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8243099701788087797 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 2 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8243099701788087797 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 3 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8243099701788087797 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 mfsbsd# zdb -l /dev/ad1p3 -------------------------------------------- LABEL 0 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8179308819206918822 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 1 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8179308819206918822 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 2 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8179308819206918822 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -------------------------------------------- LABEL 3 -------------------------------------------- version: 28 name: 'zroot' state: 0 txg: 2686596 pool_guid: 16074929158756467860 hostid: 1256456247 hostname: 'serwer.obsysa.net' top_guid: 16978903338095502658 guid: 8179308819206918822 vdev_children: 1 vdev_tree: type: 'raidz' id: 0 guid: 16978903338095502658 nparity: 1 metaslab_array: 23 metaslab_shift: 30 ashift: 9 asize: 116826046464 is_log: 0 children[0]: type: 'disk' id: 0 guid: 2774520698453861827 path: '/dev/gpt/disk0' phys_path: '/dev/gpt/disk0' whole_disk: 0 DTL: 264 children[1]: type: 'disk' id: 1 guid: 8243099701788087797 path: '/dev/gpt/disk1' phys_path: '/dev/gpt/disk1' whole_disk: 0 DTL: 779 children[2]: type: 'disk' id: 2 guid: 8179308819206918822 path: '/dev/gpt/disk2' phys_path: '/dev/gpt/disk2' whole_disk: 0 DTL: 263 -- Bartosz Stec