Date: Thu, 25 Jul 2013 20:45:07 +0200 From: =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= <lukasz@wasikowski.net> To: =?UTF-8?B?VHJvbmQgRW5kcmVzdMO4bA==?= <Trond.Endrestol@fagskolen.gjovik.no> Cc: FreeBSD stable <freebsd-stable@freebsd.org> Subject: Re: ZFS: can't read MOS of pool Message-ID: <51F17233.4080903@wasikowski.net> In-Reply-To: <alpine.BSF.2.00.1307251813170.35028@mail.fig.ol.no> References: <51ED5B69.8050200@wasikowski.net> <alpine.BSF.2.00.1307251813170.35028@mail.fig.ol.no>
next in thread | previous in thread | raw e-mail | index | archive | help
W dniu 2013-07-25 18:40, Trond Endrestøl pisze: >> Any hints how to go from here? > > I'm only subscribed to freebsd-stable@, but as far as I can tell, no > one from freebsd-fs@ nor freebsd-stable@ has yet replied. I'm only > replying to freebsd-stable@. > > First, just some quick questions: > > Have you by chance upgraded the pool format without upgrading the boot > blocks? Or was the pool already at 5000? > > You didn't mention if you have made any attempt at updating the boot > blocks after playing with ezjail-admin. > > Perhaps you should consider updating the boot blocks once more: > > 1. Boot from the live CD. > > 2. Import the pool read-only without mounting any fs: > > zpool import -f -N -o readonly=on klawisz > > 3. Mount the root fs read-only: > > mount -r -t zfs klawisz/ROOTFS /tmp/zroot > > 4. Update the boot blocks from the files stored in the root fs: > > gpart bootcode -b /tmp/zroot/boot/pmbr -p /tmp/zroot/boot/gptzfsboot -i 1 ada0 > > 5. Unmount the root fs: > > umount /tmp/zroot > > 6. Reboot the system, do NOT export the pool. > > Hopefully, the updated gptzfsboot stored in ada0p1 will be able to > read the MOS. > > That's all I can think of at the moment. > > Best of luck. Thank you for your reply. The pool was created with version 5000. I have updated the boot blocks before (but with exporting pool after). I don't think that ezjail-admin has anything to do with booting. I did as you suggested and it didn't help, still MOS can't be read. I'm pretty sure I can reproduce this problem. I will try to do detailed guide and post it here. -- best regards, Lukasz Wasikowski
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51F17233.4080903>