Okay, say I have system with 2 disks.
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 |
partition> p Current partition table (original): Total disk cylinders available: 9770 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 9229 16.00GB (9229/0/0) 33556644 1 unassigned wu 0 0 (0/0/0) 0 2 backup wm 0 - 9769 16.94GB (9770/0/0) 35523720 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 |
# zpool create pool-0 c1t1d0s0 # zfs list NAME USED AVAIL REFER MOUNTPOINT pool-0 106K 15.6G 18K /pool-0 # zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT pool-0 15.9G 111K 15.9G 0% ONLINE - |
# lucreate -c ufsBE -n zfsBE -p pool-0 Analyzing system configuration. No name for current boot environment. Current boot environment is named |
# lustatus Boot Environment Is Active Active Can Copy Name Complete Now On Reboot Delete Status -------------------------- -------- ------ --------- ------ ---------- ufsBE yes yes yes no - zfsBE yes no no yes - |
# zfs list NAME USED AVAIL REFER MOUNTPOINT pool-0 4.06G 11.6G 92.5K /pool-0 pool-0/ROOT 1.56G 11.6G 18K /pool-0/ROOT pool-0/ROOT/zfsBE 1.56G 11.6G 1.56G / pool-0/dump 512M 12.1G 16K - pool-0/swap 2.00G 13.6G 16K - |
# luactivate zfsBE A Live Upgrade Sync operation will be performed on startup of boot environment |
# setenv BOOT_MENU_FILE menu.lst |
# luactivate zfsBE
**********************************************************************
The target boot environment has been activated. It will be used when you
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
MUST USE either the init or the shutdown command when you reboot. If you
do not use either init or shutdown, the system will not boot using the
target BE.
**********************************************************************
In case of a failure while booting to the target BE, the following process
needs to be followed to fallback to the currently working boot environment:
1. Enter the PROM monitor (ok prompt).
2. Change the boot device back to the original boot environment by typing:
setenv boot-device /pci@1f,0/pci@1/scsi@8/disk@0,0:a
3. Boot to the original boot environment by typing:
boot
**********************************************************************
Modifying boot archive service
Activation of boot environment |
Sun Fire V120 (UltraSPARC-IIe 648MHz), No Keyboard OpenBoot 4.0, 1024 MB memory installed, Serial #53828024. Ethernet address 0:3:ba:35:59:b8, Host ID: 833559b8. Executing last command: boot Boot device: /pci@1f,0/pci@1/scsi@8/disk@1,0:a File and args: SunOS Release 5.10 Version Generic_139555-08 64-bit Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: counterstrike2 SUNW,eri0 : 100 Mbps full duplex link up Configuring devices. /dev/rdsk/c1t0d0s4 is clean /dev/rdsk/c1t0d0s5 is clean Reading ZFS config: done. Mounting ZFS filesystems: (3/3) NOTICE: setting nrnode to max value of 57843 |
# lustatus Boot Environment Is Active Active Can Copy Name Complete Now On Reboot Delete Status -------------------------- -------- ------ --------- ------ ---------- ufsBE yes no no yes - zfsBE yes yes yes no - |