Mirrorring Rootdisk

Set Boot list for different options:
===================================================================
bootlist -m normal -o ; to see the bootlist
bootlist -m service -o ; to see the maintenance bootlist
bootlist -m normal -o hdisk0 hdisk4


To mirror rootvg, current bootdisk is hdisk0.
===================================================================
1. Add disk
extendvg -f rootvg hdisk1
chvg -Qn rootvg

2. Mirror data (create LVM structure and sync data)

# mklvcopy hd1 2 hdisk1
# mklvcopy hd2 2 hdisk1
# mklvcopy hd3 2 hdisk1
# mklvcopy hd4 2 hdisk1
# mklvcopy hd5 2 hdisk1
# mklvcopy hd6 2 hdisk1
# mklvcopy hd7 2 hdisk1
# mklvcopy hd8 2 hdisk1
# mklvcopy hd9var 2 hdisk1
# mklvcopy hd10opt 2 hdisk1
# mklvcopy hd11msb 2 hdisk1
# mklvcopy lvtivoli 2 hdisk1

Or use
mirrorvg rootvg ; this will disable qurum

Or use
mirrorvg -s rootvg ; just create LVM structure, no data sync
syncvg -v rootvg ; sync the rootvg data

or use
mirrorvg -S rootvg ; sync data in the background

3.create BLV and boot record

bosboot -ad hdisk1 ; recreate BLV and the boot record on hdisk1
bosboot -ad -u /dev/hdisk1 or

4.Update bootlist
bootlist -m normal hdisk1 hdisk0
bootlist -m service cd0 rmt0 hdisk0 hdisk1


(Actual operations Screen Shot)

0:root@sactgx0005:/home/root # bootlist -m normal -o
hdisk0
0:root@sactgx0005:/home/root # ipl_varyon -i


PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 YES 00031523be6762d10000000000000000 00031523
00004c00
hdisk1 NO 00031523d36a9c5e0000000000000000 00031523
00004c00
hdisk2 NO 00031523f3bacf050000000000000000 00031523
f3badb67
hdisk3 NO 00031523f3baf1de0000000000000000 00031523
f3badb67
hdisk4 NO 00031523f3bb5b570000000000000000 00031523
f3bb694c
hdisk5 NO 00031523f3bb82350000000000000000 00031523
f3bb694c
0:root@sactgx0005:/home/root # bosboot -ad hdisk1

bosboot: Boot image is 19527 512 byte blocks.
0:root@sactgx0005:/home/root # bootlist -m normal -o
hdisk0
0:root@sactgx0005:/home/root # ipl_varyon -i


PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 YES 00031523be6762d10000000000000000 00031523
00004c00
hdisk1 YES 00031523d36a9c5e0000000000000000 00031523
00004c00
hdisk2 NO 00031523f3bacf050000000000000000 00031523
f3badb67
hdisk3 NO 00031523f3baf1de0000000000000000 00031523
f3badb67
hdisk4 NO 00031523f3bb5b570000000000000000 00031523
f3bb694c
hdisk5 NO 00031523f3bb82350000000000000000 00031523
f3bb694c

Clone rootdisk:
===================================================================



Other Useful Commands
===================================================================
lspv -m hdisk1 ; To see avaliable physical partitions on a disk

bootinfo -b ; to see the current boot device

ipl_varyon -i ; to see which disks are bootable

alt_disk_inst -C hdisk4
alt_disk_inst -C -B -O hdisk4 ; doesn't update the bootlist

bootinfo -K ; see what kernel
bootinfo -y ; see if 64 bit kernel is available


#bosboot -a -L
#lockstat -a