how can i remove and rebuild the mirroring for rootvg

how can i remove and rebuild the mirroring for rootvg before applying any patches on the system .

Hi,

this assumes you have hdisk0 and hdisk1 as rootvg mirror and two sysdump devices called lg_dumplv + lg_dumplv2:

to unmirror and 'clone' the root disk to the freed up disk where you can boot from back into the original if anything goes wrong during your patching:

unmirrorvg rootvg hdisk1
migratepv hdisk1 hdisk0
reducevg rootvg hdisk1
bosboot -ad /dev/hdisk0
bootlist -m normal hdisk0
alt_disk_copy -P "all" -B -d hdisk1

and to mirror again:

alt_disk_install -X
extendvg -f rootvg hdisk1
mirrorvg rootvg
migratelv -l lg_dumplv2 hdisk0 hdisk1
bosboot -ad /dev/hdisk0
bosboot -ad /dev/hdisk1
bootlist -m normal hdisk0 hdisk1

alternatively you could remove the second dumpdevice before you unmirror - and recreate it after you mirror again.

Hope that helps
kind regards
zxmaus

1 Like

thanks alot man :slight_smile: