|
|
>
> Using build 70, I followed the zfsboot instructions
> at http://www.opensolaris.org/os/community/zfs/boot/zfsboot-manual/
> to the letter.
>
> I tried first with a mirror zfsroot, when I try to boot to zfsboot
> the screen is flooded with "init(1M) exited on fatal signal 9"
Could be this problem:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6423745
> This is everything I did:
> zpool create -f rootpool c1t0d0s0
> zfs create rootpool/rootfs
>
> zfs set mountpoint=legacy rootpool/rootfs
> mkdir /zfsroot
> mount -F zfs rootpool/rootfs /zfsroot
Ok.
> cd /zfsroot ; mkdir -p usr opt var home export/home
>
> mount -F zfs datapool/usr /zfsroot/usr
> mount -F zfs datapool/opt /zfsroot/opt
> mount -F zfs datapool/var /zfsroot/var
> mount -F zfs datapool/home /zfsroot/export/home
>
> Added the following to /etc/vfstab
> rootpool/rootfs - /zfsroot zfs - yes -
> datapool/usr - /zfsroot/usr zfs - yes -
> datapool/var - /zfsroot/var zfs - yes -
> datapool/opt - /zfsroot/opt zfs - yes -
> datapool/home - /zfsroot/export/home zfs - yes
> -
> /zvol/dsk/datapool/swap - - swap -
>
> -
> cd / ; find . -xdev -depth -print | cpio -pvdm /zfsroot
> cd / ; find usr -xdev -depth -print | cpio -pvdm /zfsroot
> cd / ; find var -xdev -depth -print | cpio -pvdm /zfsroot
> cd / ; find opt -xdev -depth -print | cpio -pvdm /zfsroot
> cd / ; find export/home -xdev -depth -print | cpio -pvdm /zfsroot
>
> # ran this script:
> http://www.opensolaris.org/os/community/zfs/boot/zfsboot-manual/create_dirs/
>
> mount -F lofs -o nosub / /mnt
> (cd /mnt; tar cvf - devices dev ) | (cd /zfsroot; tar xvf -)
> umount /mnt
Your source root filesystem is on UFS?
I think much of the above steps could be simplified by populating
the zfs root filesystem like this:
mount -F zfs rootpool/rootfs /zfsroot
ufsdump 0f - / | (cd /zfsroot; ufsrestore xf -)
umount /zfsroot
That way, you don't have to use the "create_dirs" script,
or mess with the /devices and /dev device tree and the
lofs mount.
Using ufsdump/ufsrestore also gets the lib/libc.so.1 file correct
in the rootfs zfs, which typically has some lofs file mounted on
top of it.
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@xxxxxxxxxxxxxxx
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
|
|