Mirroring an Aix Volume Group

download Mirroring an Aix Volume Group

of 2

Transcript of Mirroring an Aix Volume Group

  • 8/9/2019 Mirroring an Aix Volume Group

    1/2

    Mirroring an AIX volume group (e.g. for machines with 2 system

    disks)

    1. configure additional disks (if not yet recognized)

    smit C

    Devices - Install/Configure Devices Added After IPL2. add disks to existing VG's

    smit CSystem Storage Management - LVM - Volume Groups - Set Characteristics ... - Add a Physical

    Volume to a Volume Group

    3. Mirror the volume group,

    Method 1 (traditional), by LVsmit -C

    System Storage Management - LVM - Logical Volumes - Set Characteristics ... -

    Add a Copy to a Logical Volume

    selection list via F4 key. (forrootvg the LVs hd6,hd8,hd4,hd2,hd9var,hd3,hd1,... have tobe selected, unfortunately one after the other separately. hd5must not be mirrored this way) Fill

    the following entries and submit:

    NEW TOTAL number of logical partition 2

    SYNCHRONIZE the data in the new yes

    logical partition copies?

    Be patient, this might take some time because data has to be copied to the mirror disk.

    For a rootvg (only) the mirror copy must be made bootable

    mklv -y hd51 -t boot -a e rootvg 2 hdiskxbosboot -a -l /dev/hd51 -d /dev/hdiskx

    bootlist -m normal hdisky hdiskx

    where hdiskx is the additional physical volume holding the mirror and hdisky the original

    (x,y=0..n )

    Method 2 (new, faster), by VGsmitty

    System Storage Management - LVM - Logical Volumes - Volume Groups - Mirror a

    Volume Group

    PHYSICAL VOLUME names [hdiskx]

    Number of COPIES 2

    Be patient, this might take some time because data has to be copied to the mirror disk. As

    suggested, for a rootvg (only) the mirror copy must be made bootable

    bosboot -a -l /dev/hd5 -d /dev/hdiskx

    bosboot -a -l /dev/hd5 -d /dev/hdisky

    bootlist -m normal hdisky hdiskx

  • 8/9/2019 Mirroring an Aix Volume Group

    2/2

    4. Switch off the disk quorum for the volume group.

    smit CSystem Storage Management - Volume Groups - Set Characteristics ... - Change a Volume Group

    selection list via F4 key. Fill the following entries (example fordbavg) and submit.

    * VOLUME GROUP name dbavg

    * Activate volume group AUTOMATICALLY yes +

    at system restart?

    * A QUORUM of disks required to keep the volume no +

    group on-line ?

    5.

    Ensure synchronization of mirror and original, e.g.:

    syncvg -v rootvg

    syncvg -v dbavg