From owner-freebsd-current@FreeBSD.ORG Thu Jun 2 17:39:30 2011 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 2B8EB1065670 for ; Thu, 2 Jun 2011 17:39:30 +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 4D31D8FC0A for ; Thu, 2 Jun 2011 17:39:29 +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 1QSBZ7-0000eF-0P for freebsd-current@freebsd.org; Thu, 02 Jun 2011 19:20:25 +0200 Message-ID: <4DE7C63C.7010705@it4pro.pl> Date: Thu, 02 Jun 2011 19:19:56 +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: freebsd-current@freebsd.org X-Authenticated-User: bartosz.stec@it4pro.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.0 X-Spam-Score-Int: -79 X-Exim-Version: 4.76 (build at 12-May-2011 10:41:54) X-Date: 2011-06-02 19:20:25 X-Connected-IP: 78.8.144.74:50192 X-Message-Linecount: 657 X-Body-Linecount: 646 X-Message-Size: 30814 X-Body-Size: 30338 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [ZFSv28] Loader hangs, import failes, zfs filesystem unavailable. 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: Thu, 02 Jun 2011 17:39:30 -0000 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 mfsbsd# zpool import -f zroot cannot import 'zroot': one or more devices is currently unavailable There was also some kernel messages while running zpool commands, they are visible at the end of dmesg output: mfsbsd# dmesg Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-RELEASE #2 r219081M: Wed Mar 2 10:29:25 CET 2011 root@www4:/usr/obj/i386/usr/src_v28/sys/GENERIC i386 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: mobile AMD Athlon(tm) XP 2200+ (1800.08-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x681 Family = 6 Model = 8 Stepping = 1 Features=0x383fbff AMD Features=0xc0480800 real memory = 2147483648 (2048 MB) avail memory = 2053263360 (1958 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 agp0: aperture size is 128M pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xdfe80000-0xdfefffff,0xd0000000-0xd7ffffff irq 16 at device 0.0 on pci1 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xec00-0xec7f mem 0xdfffff80-0xdfffffff irq 17 at device 6.0 on pci0 miibus0: on xl0 xlphy0: <3Com internal media interface> PHY 24 on miibus0 xlphy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, auto, auto-flow xl0: Ethernet address: 00:50:da:d8:23:cd xl0: [ITHREAD] rl0: port 0xe800-0xe8ff mem 0xdffffe00-0xdffffeff irq 18 at device 7.0 on pci0 miibus1: on rl0 rlphy0: PHY 0 on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:40:f4:b4:e9:3c rl0: [ITHREAD] uhci0: port 0xdc00-0xdc1f irq 21 at device 16.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0xe000-0xe01f irq 21 at device 16.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 uhci2: port 0xe400-0xe41f irq 21 at device 16.2 on pci0 uhci2: [ITHREAD] usbus2: on uhci2 ehci0: mem 0xdffffd00-0xdffffdff irq 21 at device 16.3 on pci0 ehci0: [ITHREAD] usbus3: EHCI version 1.0 usbus3: on ehci0 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 17.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 17.6 (no driver attached) acpi_button1: on acpi0 fdc0: port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart1: [FILTER] ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: [ITHREAD] lpt0: on ppbus0 lpt0: [ITHREAD] lpt0: Interrupt-driven port ppi0: on ppbus0 atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc9fff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 acpi_throttle0: on cpu0 powernow0: on cpu0 device_attach: powernow0 attach returned 6 Timecounter "TSC" frequency 1800078810 Hz quality 800 Timecounters tick every 1.000 msec md0: Preloaded image 33923072 bytes at 0xc0fd9834 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ad0: 39205MB at ata0-master UDMA133 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ad1: 38166MB at ata0-slave UDMA100 ad2: 39205MB at ata1-master UDMA133 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered acd0: DVDROM at ata1-slave UDMA33 uhub3: 6 ports with 6 removable, self powered acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 acd0: FAILURE - READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 Trying to mount root from ufs:/dev/md0 ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior. Consider tuning vm.kmem_size and vm.kmem_size_max in /boot/loader.conf. ZFS filesystem version 5 ZFS storage pool version 28 log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented log_sysevent: type 19 is not implemented And here is gpart output: mfsbsd# gpart show => 34 80293181 ad0 GPT (38G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-swap (1.0G) 2097314 76068013 3 freebsd-zfs (36G) 78165327 2127888 - free - (1.0G) => 34 78165293 ad1 GPT (37G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-swap (1.0G) 2097314 76068013 3 freebsd-zfs (36G) => 34 80293181 ad2 GPT (38G) 34 128 1 freebsd-boot (64K) 162 2097152 2 freebsd-swap (1.0G) 2097314 76068013 3 freebsd-zfs (36G) 78165327 2127888 - free - (1.0G) Any idea what happened to the pool, why I am unable to boot and import it, and what can I do to investigate or fix this issue? -- Bartosz Stec