From owner-freebsd-fs@FreeBSD.ORG Fri May 4 09:13:49 2012 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20ACA1065673 for ; Fri, 4 May 2012 09:13:49 +0000 (UTC) (envelope-from sukenwoo@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 685198FC17 for ; Fri, 4 May 2012 09:13:48 +0000 (UTC) Received: by obcni5 with SMTP id ni5so4781112obc.13 for ; Fri, 04 May 2012 02:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EWAUzJdT/GLc6JjsOR7ToC9uYJcghIV+4cbYnsnp9O4=; b=I0AU/eYdrlfC2KexbVNi218iWXcJpigJ+rmw/bqk4ggk7+ZmFSANElATVRoWp8DsO0 uULqVIdQFlsi6EF476VM1hG0XaV/1ovH9f1NasgdOCgc/tHCRWjlEXFI5NsREezvD2Jp ardvWDVYyvnDgVaaZ+86Us7p7DYmNCrUzK1tuqzr70ALkpFGLUKNjbHV6Xt23lZ9X5zB JHsqE/awYNKbO3VoYO2B1TmkNaIa42E7k7I4WZRpZNGPPaYqzgu42gxUj5fAY9kcbubK pOpeSdukRtPWKIPuHrp1HA/WuLcUPb6GpxXv9pTr11EeIITL8RPRqeHz7aKFndhtNb4d 5hhA== MIME-Version: 1.0 Received: by 10.60.171.176 with SMTP id av16mr1140880oec.62.1336122827748; Fri, 04 May 2012 02:13:47 -0700 (PDT) Received: by 10.182.49.71 with HTTP; Fri, 4 May 2012 02:13:47 -0700 (PDT) In-Reply-To: <4FA37E55.7060708@brockmann-consult.de> References: <4fa128a8.9089e50a.12cb.ffff8b5eSMTPIN_ADDED@mx.google.com> <4FA37E55.7060708@brockmann-consult.de> Date: Fri, 4 May 2012 17:13:47 +0800 Message-ID: From: suken woo To: Peter Maloney Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 09:13:49 -0000 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 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 > -------------------------------------------- > > --=20 --wsk