If you want to create a backup of an existing boot environment,
for example, prior to modifying the original boot environment, you can use the
beadm command to create and mount a new boot environment that is a
clone of your active boot environment.
Create the boot environment.
root@solaris:/etc/security# beadm create mybe
List the available boot environments
root@solaris:/etc/security# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
mybe - - 86.0K static 2013-07-22 19:04
solaris NR / 8.36G static 2013-07-18 12:08
solaris-backup-1 - - 251.0K static 2013-07-19 19:19
solaris-backup-2 - - 248.0K static 2013-07-19 19:25
Activate the boot environment.
root@solaris:/etc/security# beadm activate mybe
root@solaris:/etc/security# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
mybe R - 8.36G static 2013-07-22 19:04
solaris N / 595.0K static 2013-07-18 12:08
solaris-backup-1 - - 251.0K static 2013-07-19 19:19
solaris-backup-2 - - 248.0K static 2013-07-19 19:25
Use the beadm mount command to mount the new boot environment.
root@solaris:/etc/security# beadm mount mybe /a
Boot the server using boot environments from ok prompt
ok boot -L
To boot a specified entry, type the number of the entry and press
Return:
Select environment to boot: [1 - 2]:
boot -Z rpool/ROOT/mybe
To display the boot path for the active BE, type:
prtconf -vp | grep bootpath
No comments:
Post a Comment