[patch] - zfs mount -a *MUST* run before /etc/fstab is processed
Philip M. Gollucci
pgollucci at p6m7g8.com
Sat Jan 9 21:23:10 UTC 2010
example -
$ zpool create zroot ....
$ zfs set mountpoint=legacy zroot
[basically follow the wiki for GPTZFS boot]
$ zfs create zroot/software
$ zfs create -p zroot/jails/x
$ zfs set mountpoint=/software zroot/software
$ zfs set mountpoint=/jails zroot/jails
$ mkdir -p /jails/x/software
$ cat /etc/fstab
/software /jails/x/software nullfs ro 0 0
reboot
boom mountcritlocal bombs b/c neither path is available yet only the
root (zroot) is mounted b/c zfs mount -a hasn't been run yet
The below patch changes the /etc/rc.d rcorder so that happens in the
correct order. I've tested it on 2 machines here successfully.
http://people.freebsd.org/~pgollucci/FreeBSD/diffs/zfs.diff
Sponsored by: RideCharge Inc.
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Sr. System Admin, Ridecharge Inc.
>>
Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
>>
>
>
--
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Sr. System Admin, Ridecharge Inc.
Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
More information about the freebsd-rc
mailing list