> I get this error after having gotten zfs boot to > work. Maybe because I turned on compression.
What version of OpenSolaris? This could be bug 6541114, which is supposed to be fixed in snv_71: Bug ID 6541114 Synopsis GRUB/ZFS fails to load files from a default compressed (lzjb) root http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6541114 If you're using zfs root with a Xen Solaris dom0, it could also be Bug ID 6584697 Synopsis Can't boot Xen / Solaris dom0 if root is using ZFS http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6584697 Note that gzip compressed zfs root filesystems are currently *not* supported at all. Grub would reset the machine or crash when trying to load files from zfs filesystem using gzip compression. snv_71 is supposed to at least print an error message, when you try to boot from a zfs with gzip compression. > But tried to mount the pool in failsafe and set > compression=off, but that didn't solve it. What else > can I try? Yep, because simply changing the compression attribute doesn't change the files that have already been written to the zfs filesystem. To fix it, you have to re-write those files that are needed for booting, after having set compression=off. I think something like this should fix it (to workround bug 6541114): zfs set compression=off tank/rootfs mount -F zfs tank/rootfs /mnt cd /mnt/platform/i86pc cp boot_archive boot_archive-new mv boot_archive-new boot_archive cd /mnt/platform/i86pc/amd64 cp boot_archive boot_archive-new mv boot_archive-new boot_archive Btw. the root cause for 6541114 is that the grub zfs boot code is missing support for zfs files with holes. On an uncompressed zfs filesystem, the ufs ramdisk boot_archive file doesn't have holes, but when compression is turned on the (ufs) boot_archive file has holes. AFAIK, the bug doesn't happen when /bin/mkisofs is installed: when mkisofs is installed, the boot_archive file is created as an iso9660 filesystem (instead of ufs) and that iso9660 fs image file shouldn't have holes. That is, installing the SUNWmkcd package (= /usr/bin/mkisofs ) would be a workaround for the zfs boot / grub / compression=on problem. This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list [email protected]
