On Wed, Dec 08, 2010 at 10:14:13AM +0100, Martin Matuska wrote: > Here are some arguments: > > a) it was removed in OpenSolaris rev. 12865:08987220809a > b) a root pool does not not have to be a boot pool > > So if we need a warning here, it should print only some general > suggestion because > user may attach any vdev (e.g. a file or a memory disk) to make a mirror > from a root pool. > And as this was removed upstream the warning should be put into perforce > as well.
Hmm, I think I saw this warning on more recent ZFS.
All in all we currently print this when we upgrade root pool we print
the following:
If you boot from pool 'foo', don't forget to update boot code.
Assuming you use GPT partitioning and da0 is your boot disk
the following command will do it:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
(Note, that bootfs property doesn't have to be set to boot from a pool.)
We should print similar information when:
- We set bootfs property.
- Add new vdev(s) to root pool.
- Attach new vdev(s) to root pool.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
[email protected] http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
pgp3rcHTmPgbz.pgp
Description: PGP signature
