Friday, November 22, 2013

Liveupgrade luactivate

The Problem
you patched a system with liveupgrade after lucativate newBE you see this
lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
currentBE                  yes      yes     no        no    -
newBE                      yes      no   yes       yes     -
After the reboot currentBE is active :-(
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
currentBE                  yes      yes     no        no    -
newBE                      yes      no   no       yes     -
Root cause: luactivate didn't update the eeprom
Fix 1
Check diag-switch in eeprom seetings
eeprom | grep diag-switch
diag-switch?=true
 is it true please change it
eeprom diag-switch?=false
Fix 2
Look in the /etc/lutab
# cat /etc/lutab
......
1:currentBE:C:0
1:/:/dev/md/dsk/d10:1
1:boot-device:/dev/dsk/c0t0d0s0:2
2:newBE:C:0
2:/:/dev/md/dsk/d200:1
2:boot-device:/dev/dsk/c0t1d0s0:2
Choose the disk with the new one (newBE)
ls -al /dev/dsk/c0t1d0s0
lrwxrwxrwx   1 root     root          49 Jun 10  2008 /dev/dsk/c0t1d0s0 ->
../../devices/pci@780/pci@0/pci@9/scsi@0/sd@1,0:a
Get eeprom
eeprom | grep disk
boot-device=bootdisk mirror
nvramrc=devalias bootdisk /pci@780/pci@0/pci@9/scsi@0/disk@0,0
Set eeprom
Important change sd to disk !!!
 Example
 scsi@0/sd@1,0 to scsi@0/disk@1,0
eeprom "nvramrc=devalias bootdisk /pci@780/pci@0/pci@9/scsi@0/disk@1,0:a"
root:adeegsbs:/ # eeprom | grep disk
boot-device=bootdisk mirror
nvramrc=devalias bootdisk /pci@780/pci@0/pci@9/scsi@0/disk@1,0
Reboot the system...
Solved
# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
currentBE                  yes      no     no        yes    -
newBE                      yes      yes    yes       no     -
# lucurr
newBE

No comments:

Post a Comment