Friendly BE names in OpenSolaris

One of the nice things about OpenSolaris and ZFS is the ability to create multiple boot environments (BE) on the same system.

Unfortunately, the pkg command does not by default create a particularly friendly BE name when it updates your current image. As it increments the name, who really wants to have opensolaris-1349 as a BE name?

However, running pkg with the —be-name option allows you to specify a more meaningful BE name:

pfexec pkg image-update --be-name=snv_133

This in turn makes the output of beadm much more helpful:

pfexec beadm list
BE      Active Mountpoint Space  Policy Created          
--      ------ ---------- -----  ------ -------          
snv_132 -      -          59.02M static 2010-02-05 20:12 
snv_133 NR     /          83.00G static 2010-02-21 12:13 

Posted February 21, 2010 at 2:28pm

Tags:


Notes: 1
  1. unixben posted this