urgent system suddenly boot failed due to ZFS:i/o error on FreeBSD 8.2

suken woo sukenwoo at gmail.com
Fri May 4 09:13:49 UTC 2012


Thank you very much,Peter.
I would like to have a try later and post any
results
在 2012年5月4日星期五,Peter Maloney 写道:

>  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 at 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 at freebsd.org <javascript:_e({}, 'cvml', 'freebsd-fs at freebsd.org');> mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> > To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org <javascript:_e({}, 'cvml', 'freebsd-fs-unsubscribe at 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 at brockmann-consult.de <javascript:_e({}, 'cvml', 'peter.maloney at 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 at brockmann-consult.de <javascript:_e({}, 'cvml', 'peter.maloney at brockmann-consult.de');>
> Internet: http://www.brockmann-consult.de
> --------------------------------------------
>
>

-- 
--wsk


More information about the freebsd-fs mailing list