From owner-freebsd-fs@FreeBSD.ORG Fri May 4 06:59:38 2012 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 024581065672 for ; Fri, 4 May 2012 06:59:38 +0000 (UTC) (envelope-from peter.maloney@brockmann-consult.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9DDDA8FC14 for ; Fri, 4 May 2012 06:59:37 +0000 (UTC) Received: from [10.3.0.26] ([141.4.215.32]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0Lc2Qz-1Rj82l3gbV-00jzrO; Fri, 04 May 2012 08:59:35 +0200 Message-ID: <4FA37E55.7060708@brockmann-consult.de> Date: Fri, 04 May 2012 08:59:33 +0200 From: Peter Maloney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: suken woo References: <4fa128a8.9089e50a.12cb.ffff8b5eSMTPIN_ADDED@mx.google.com> In-Reply-To: X-Provags-ID: V02:K0:3vwGtql/faRFYpxd+NjFau7tU/GalYtLtfBFIc+u4t7 ULvLVsvWLzBTih/49vijaZb9uhQJYFOt0uXkv5fnm0ZowOaRHj M1x5dJ2D7H/dHFE282uLTJnCUyxwGH5HbxPsjIG03pCFLQ4Vke 6jq0VzSn1HRLSRV1SiXcq7xR4wg3vYmQyTes3byHstBVZwQaHR uBsp9R4Y4T37yZfpVPqi5myFEXF/gqfD3IiaER/sFU2QfvtZcR P1AEyMt87zMXivYhJgzSXjn4YjXZx3qc5DJML5voVBEM7dl63y OXRW+i1AgJR8Kq26bmyzOEXI4D+f6A+fkg7h+NDpVInFgUK0MU Xu76Ieo9R/rRyylXnOR5kuT6OdDj+Q7OO8etqrBqt Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "fs@freebsd.org" Subject: Re: urgent system suddenly boot failed due to ZFS:i/o error on FreeBSD 8.2 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: Fri, 04 May 2012 06:59:38 -0000 Boot off of the FreeBSD DVD and do the following: select FixIt (option 4 I think) select CD/DVD (brings you to a shell) (option 2 I think) type: # kldload /mnt2/boot/kernel/opensolaris.ko # kldload /mnt2/boot/kernel/zfs.ko warning: this will make any gpt/ labels in your zpool status turn into ugliness that looks like this: gptid/44b52f4d-5d75-11e1-b476-080027e5bb66) # import -f -o altroot=/z -o cachefile=/tmp/zpool.cache zroot If you don't use altroot above, the pool will be mounted on top of what is mounted from the cd, and everything will stop working. in another thread, using -d was suggested to prevent the gptid problem, but I have not tested it: # import -f -d /dev/gpt -o altroot=/z -o cachefile=/tmp/zpool.cache zroot Copy the cache file (this fixes many boots that say "ZFS: i/o error - all block copies unavailable", but I have not seen the "ZFS:unexcepted object set type 0" error except with my hot spare, so might not work) # cp /tmp/zpool.cache /z/boot/zfs/zpool.cache Then type: # zpool status and take a camera shot, or send it on the network, etc. to paste it into an email, so we can see it. eg. you could try sending it to another server: # zpool status > /tmp/status.txt # scp /tmp/status.txt user@server:~/ Then install the bootloader again... if you don't remember how, this guess might be wrong, but here is what I do on my system: figure out what index the boot slice is: # gpart show da0 then in the following, replace the 1 with the index of your boot slice: # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1 (... for each boot disk) Then reboot WITHOUT exporting the pool, and see if it is fixed. If not, send your email with the status.txt. On 05/04/2012 04:32 AM, suken woo wrote: > Peter, in my situation, my zpool created under a RAID5 disk array controller mfid0 and without spare disk settings. Is't the disk fault issue?and how to resolve? > thanks > >This happened to me when my root pool had an active hot spare. I later > >tested it on a virtual machine, and even with non-spare disks added, the > >system did the same thing. > > >Here is my PR: > >http://www.freebsd.org/cgi/query-pr.cgi?pr=167065 > > >kern/167065 > > >My solution was to boot on a DVD, and then "zpool detach" the bad disk > >(which converted the spare to a normal mirror). > > > >On 05/02/2012 02:03 PM, suken woo wrote: > > hi,lists > > for some reasons I need restart system but it suddenly boot failed today. > > here is the error: > > ZFS: i/o error - all block copies unavailable > > ZFS: can't read object set for dataset 16 > > Can't find root filesystem - giving up > > ZFS:unexcepted object set type 0 > > ZFS:unexcepted object set type 0 > > > > FreeBSD/i386 boot > > Default: zroot:/boot/kernel/kernel > > boot: > > ZFS:unexcepted object set type0 > > > > FreeBSD/i386 boot > > Default: zroot:/boot/kernel/kernel > > boot: _ > > > > any ideas to resolved it? > > thanks in advance > > _______________________________________________ > > freebsd-fs@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org " > > > -- > > -------------------------------------------- > Peter Maloney > Brockmann Consult > Max-Planck-Str. 2 > 21502 Geesthacht > Germany > Tel: +49 4152 889 300 > Fax: +49 4152 889 333 > E-mail:peter.maloney@brockmann-consult.de > Internet:http://www.brockmann-consult.de > -------------------------------------------- -- -------------------------------------------- Peter Maloney Brockmann Consult Max-Planck-Str. 2 21502 Geesthacht Germany Tel: +49 4152 889 300 Fax: +49 4152 889 333 E-mail: peter.maloney@brockmann-consult.de Internet: http://www.brockmann-consult.de --------------------------------------------