Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2012 17:13:47 +0800
From:      suken woo <sukenwoo@gmail.com>
To:        Peter Maloney <peter.maloney@brockmann-consult.de>
Cc:        "fs@freebsd.org" <fs@freebsd.org>
Subject:   Re: urgent system suddenly boot failed due to ZFS:i/o error on FreeBSD 8.2
Message-ID:  <CAOrwyN2JgD8uTMVT-Xsn7gy6qzEBNAmUM2%2Bxw_qEU9kBG5FhKw@mail.gmail.com>
In-Reply-To: <4FA37E55.7060708@brockmann-consult.de>
References:  <CAOrwyN3C4N0=_%2B0j2SpPmH7jmJ4=H9EFv6euKL_PrY1sTzTy_Q@mail.gmail.com> <4fa128a8.9089e50a.12cb.ffff8b5eSMTPIN_ADDED@mx.google.com> <CAOrwyN0eb5vLJHzWE8FcsnhR_HG4Jgv%2Bt-8yXdaWvtpbjinKYw@mail.gmail.com> <CAOrwyN0vAOzfT2DXnagdY_dF2HUGi2LPWgm7O2VNTdSei-5pxg@mail.gmail.com> <4FA37E55.7060708@brockmann-consult.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you very much,Peter.
I would like to have a try later and post any
results
=E5=9C=A8 2012=E5=B9=B45=E6=9C=884=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=94=EF=
=BC=8CPeter Maloney =E5=86=99=E9=81=93=EF=BC=9A

>  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=3D/z -o cachefile=3D/tmp/zpool.cache zroot
>
> If you don't use altroot above, the pool will be mounted on top of what i=
s
> 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=3D/z -o cachefile=3D/tmp/zpool.cac=
he
> 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 gues=
s
> 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 slic=
e:
>         # 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 control=
ler mfid0 and without spare disk settings. Is't the disk fault issue?and ho=
w 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=3D167065
>
> >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 t=
oday.
> > 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 <javascript:_e({}, 'cvml', 'freebsd-fs@freebsd.o=
rg');> mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org <j=
avascript:_e({}, 'cvml', '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 <javascript:_e({}, 'cvml', 'pe=
ter.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 <javascript:_e({}, 'cvml', 'pe=
ter.maloney@brockmann-consult.de');>
> Internet: http://www.brockmann-consult.de
> --------------------------------------------
>
>

--=20
--wsk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOrwyN2JgD8uTMVT-Xsn7gy6qzEBNAmUM2%2Bxw_qEU9kBG5FhKw>