AIX Using alt_disk_copy
id : 6qoaxw0gfd
category : computer
blog : unix
created : 01/10/11 - 11:33:52
Pre-checks
  • Check if your rootvg is mirrored :
# lsvg -l rootvg

  • if PPs colums is double than LPs columns your rootvg is mirrored
  • Identify your rootvg physicals volumes :
# lspv | grep rootvg
hdisk0          00c0cd947ccd7f6b                    rootvg          active
hdisk3          00c0cd94b29de0c4                    rootvg          active

  • Break mirror (take a disk out of rootvg) :
# unmirrorvg rootvg hidsk3
# reducevg rootvg hdisk3

  • Confirm that the disk is now not assigned to any volume groups :
# lspv | grep rootvg
hdisk0          00c0cd947ccd7f6b                    rootvg          active
hdisk3          00c0cd94b29de0c4                    None

Running alt_disk_copy
  • To backup your rootvg hdisk, use alt_disk_copy :
# alt_disk_copy -d hdisk3

  • You have now a cloned rootvg called altinst_rootvg :
# lspv | grep rootvg
hdisk0          00c0cd947ccd7f6b                    rootvg          active
hdisk3          00c0cd94b29de0c4                    altinst_rootvg

  • Notice bootlist has change to boot on the cloned rootvg :
# bootlist -m normal -o
hdisk3 blv=hd5

  • Perform your maintenance operation on rootvg (for example ML update), you need to change bootlist :
#bootlist -m normal hdisk0
#bootlist -m normal -o
hdisk0 blv=hd5

  • If everything was good destroy your alt_disk_copy :
# alt_rootvg_op -X altinst_rootvg

  • Rebuilt mirror :
# extendvg -f rootvg hdisk3
# mirrorvg rootvg hdisk3

  • Change bootlist :
# bootlist -m normal -o hdisk0 hdisk3
# bosboot -a
# bootlist -m normal -o
hdisk0 blv=hd5
hdisk3 blv=hd5