Unmirror rootvg (Root Volume Group) in AIX

Root Volume Group (rootvg) is a volume group containing the Base Operating System (BOS). Logical volume (lv) in rootvg may be doubled or more in copies with 2 or more physical volume (hard disk) for availability and reliability of the AIX system. The following steps are to unmirror a rootvg, if for whatever reason the rootvg needs to run on single logical volume (lv) on single physical volume (pv) only.

Check and Determine if rootvg is Mirrored

In mirror mode, each logical volume in rootvg such as filesystems “/”, “/usr”, “/var”, “/tmp”, “/home”, “/opt” and default boot, paging and jfslog LVs should be mirrored. In AIX, mirrorvg will create additional copy of image for all logical volumes in the volume group.

Use the following command to check if a rootvg is mirrored:

# lsvg -l rootvg

If the output shows that for each LP there are 2 PPs then its mirrored.

Check and Determine Which Disks the Mirrored rootvg is Located

For each logical volume (LV) name listed in output of “lsvg -l rootvg” command, run the following command:

lslv -m

The output date will tell you on which disk each copy of each logical partitions for each LV.

Unmirror rootvg

Important: The following instructions have the risk of making your AIX system unbootable or corrupting the data. So make you have advanced system administration experience before running the process of unmirroring.

To unmirror the root volume group (rootvg), follow the steps below (scenario: rootvg is contained on hdisk01 and mirrored onto hdisk11, and the steps will remove the mirror on hdisk11 (regardless of the disk from which you previously booted)):

  1. To unmirror the rootvg from hdisk11, enter the following command:

    unmirrorvg rootvg hdisk11

    This command turns quorum back on for rootvg. When unmirrorvg is executed, the default COPIES value for each logical volume becomes 1.

  2. To update the booted disk link, enter the following command:

    ln -f /dev/rhdisk01 /dev/ipldevice

  3. To reduce the disk out of rootvg, type the following command:

    reducevg rootvg hdisk11

  4. To initilize the boot record of the remaining disk again, enter the following command:

    bosboot -a -d /dev/hdisk01

    bosboot command is a must to initialize the boot record on the remaining disk hdisk01 again.

  5. To modify the boot list to remove the unmirrored disk, type the following command:

    bootlist -m normal hdisk01

    bootlist command is a must so that the system only boots to the disk remaining (hdisk01) in rootvg.

  6. Restart AIX machine, as unmirroring turns quorum back on for rootvg, a reboot is required for this to take effect.

Note: The reducevg command in step 3 will fail if there are non-mirrored logical volumes such as raw logical volumes and system dump devices on the disk.

One Response to “Unmirror rootvg (Root Volume Group) in AIX”

  1. Carlos Leon
    August 5th, 2009 01:59
    1

    Thank yoy very much. Was very helpfull.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

unmirror rootvg - what is rootvg - unmirror rootvg aix - AIX unmirror - mirror rootvg howto aix - to check the mirrored disk state in AIX - unmirrorvg rootvg - unmirror aix - aix unmirror rootvg - aix unmirrorvg - unmirrorvg aix - aix recovery unmirrorvg - how to unmirror rootvg AIX - aix mirror /var - what is quarom in AIX - aix quorum - aix check mirror - check if AIX vg is morrored - use unmirror disk in aix for another server - mirrot and unmirror in aix - aix check if vg is mirrored - commang check mirror rootvg - how to remove mirrored pv in AIX - mirror lv command in aix - unmirror - aix rootvg unmirror - root volume group - unmirror vg aix - activate bootrecord command bosboot - AIX remove mirror - aix mirror hard disk - AIX QUORUM: 1 (Disabled) - aix mirror status - how to remove quorum in AIX - mirror hdisk aix - use of quoram in aix - AIX unmirror VG reducevg - unmirror lv - what is rootvg in aix - aix creating volume group video - aix rootvg status - aix rootvg remove mirror - check quorum rootvg - check quorum rootvg - reduce rootvg from hdisk - unmirror AIX drive - unmirro disk drive AIX -