ZFS: can't read MOS of pool
Łukasz Wąsikowski
lukasz at wasikowski.net
Thu Jul 25 18:45:11 UTC 2013
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 at .
>
> 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
More information about the freebsd-stable
mailing list