AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

AIX VG Mirroring

  • 1.  AIX VG Mirroring

    Posted Sun August 25, 2024 07:36 AM

    Hi Team,

    We are planning to perform the VG mirroring. In our setup we are having three physical disks in VG. Our plan is to extend VG with same capacity physical disks (3 nos) and perform the VG mirroring using the below command.  

    extendvg <vgname> hdisk3 hdisk4 hdisk5

    mirrorvg -S <vgname> hdisk3 hdisk4 hdisk5

    Is the above process is correct ? or we need to change the mirrorvg command as below.

    mirrorvg -m -S <vgname> hdisk3 hdisk4 hdisk5

    Please advice.

    Thanks,

    Pasindu Malintha.



    ------------------------------
    Pasindu Malintha
    ------------------------------


  • 2.  RE: AIX VG Mirroring

    Posted Sun August 25, 2024 11:10 AM
    You should confirm the VG PP size and total PP limit. That will impact
    how many disks you can add.


    On Sun, Aug 25, 2024 at 11:36:19AM +0000, Pasindu Malintha via IBM TechXchange Community wrote:
    > Hi Team,
    >
    >
    >
    >
    >
    > We are planning to perform the VG mirroring. In our setup we are having three physical disks in VG. Our plan is to extend VG with same capacity physical disks (3 nos) and perform the VG mirroring using the below command.
    >
    >
    > extendvg <vgname> hdisk3 hdisk4 hdisk5
    >
    >
    > mirrorvg -S <vgname> hdisk3 hdisk4 hdisk5
    >
    >
    > Is the above process is correct ? or we need to change the mirrorvg command as below.
    >
    >
    > mirrorvg -m -S <vgname> hdisk3 hdisk4 hdisk5
    >
    >
    > Please advice.
    >
    >
    >
    >
    >
    > Thanks,
    >
    >
    > Pasindu Malintha.
    >
    >
    >
    >
    >
    > ------------------------------
    > Pasindu Malintha
    > ------------------------------
    >
    >
    > Reply to Sender : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=418427&SenderKey=a7394255-ed1a-4aeb-af47-018a268e46bb
    >
    > Reply to Discussion : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=418427
    >
    >
    >
    > You are subscribed to "AIX" as Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to http://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.


    ------------------------------------------------------------------
    Russell Adams Russell.Adams@AdamsSystems.nl
    Principal Consultant Adams Systems Consultancy
    https://adamssystems.nl/




  • 3.  RE: AIX VG Mirroring

    Posted Sun August 25, 2024 11:22 AM

    Hi Adams,

    Thanks for the response. Yes we have checked that as well.  We are good with mentioned VG PP size ect. We just want to know mentioned VG mirroring command is correct? 



    ------------------------------
    Pasindu Malintha
    ------------------------------



  • 4.  RE: AIX VG Mirroring

    Posted Sun August 25, 2024 08:31 PM

    Hi Pasindu

    I think your question was whether you have to use the -m flag with mirrorvg?  No, it is optional.

    -m will layout copy#2 PPs the same as copy#1 PPs.

    Without -m, mirrorvg will layout copy#2 according to the (current) inter-policy/intra-policy of the LVs.



    ------------------------------
    Chris Wickremasinghe
    IBM
    ------------------------------



  • 5.  RE: AIX VG Mirroring

    Posted Mon August 26, 2024 12:38 AM

    Is the VG a scalable VG? If not then I recommend making it so. Having multiple disks in each mirror copy gets easier to manage with mirror pools.



    ------------------------------
    Zaki Jääskeläinen
    ------------------------------



  • 6.  RE: AIX VG Mirroring
    Best Answer

    Posted Mon August 26, 2024 01:02 AM

    Hi Pasindu,

    Yes, the syntax is totally correct; You might want to have couple of additional parameters defined before the actual mirroring:

    export NUM_PARALLEL_LPS=16. # The value of NUM_PARALLEL_LPS will be used to set the number of logical partitions to be synchronized in parallel. We have noted that 16 is "good" value.
    export LVM_HOTSWAP_BOOTDISK=1 #See https://www.ibm.com/support/pages/unable-mirror-aix-rootvg-due-error-code-0516-1259

    Are you planning to keep the mirroring? Or will you remove the old disks from the config once datas are mirrored to the new disks?

    Br,

    tommi



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry Tech Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 7.  RE: AIX VG Mirroring

    Posted Mon August 26, 2024 01:08 AM

    Hi Tommi,

    Thanks for the response.  We are planning to remove the old disks once data's are mirrored to the new disks. 

    Thanks,

    Pasindu Malintha. 



    ------------------------------
    Pasindu Malintha
    ------------------------------



  • 8.  RE: AIX VG Mirroring

    Posted Mon August 26, 2024 01:13 AM

    Ok, is this for some datavg only, or do you have rootvg included in the mirroring?



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry Tech Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 9.  RE: AIX VG Mirroring

    Posted Mon August 26, 2024 01:23 AM
    Edited by Pasindu Malintha Mon August 26, 2024 01:23 AM

    Hi Tommi,

    We are having both datavg and rootvg. For the rootvg we need to follow the steps (bosboot related steps) mentioned on the link.

    https://www.ibm.com/support/pages/steps-replacing-aix%C2%AE-disk-another-new-disk-vg 

    Thanks,

    Pasindu Malintha. 



    ------------------------------
    Pasindu Malintha
    ------------------------------



  • 10.  RE: AIX VG Mirroring

    Posted Mon August 26, 2024 01:45 AM

    Hi,

    Good, just wanted to check that (rootvg related) part too,

    I think you have all steps now covered;

    if you have some Dump devices defined on rootvg, those U need to remember to remove (and re-create on the new disk) otherwise reducevg cmd will fail.

    Br,

    tommi



    ------------------------------
    Tommi Sihvo, Lead Service Architect
    Tietoevry Tech Services
    email tommi.sihvo@tietoevry.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 11.  RE: AIX VG Mirroring

    Posted Mon August 26, 2024 06:04 AM

    If you just want to replace disks/LUNs you want migratepv.

    Much simpler than dealing with mirroring.



    ------------------------------
    Alexander Pettitt
    ------------------------------



  • 12.  RE: AIX VG Mirroring

    Posted Tue August 27, 2024 06:22 AM

    Mirrorvg is more efficient and you can follow progress. You can run parallel copy streams as well.



    ------------------------------
    Henrik Morsing
    ------------------------------



  • 13.  RE: AIX VG Mirroring

    Posted Tue August 27, 2024 07:21 AM

    Are you using mirrorvg with one of the -S/-s options and then following up with syncvg -p #?

    Monitoring is done with syncvg -q/-Q?

    I remember having to use migratepv to keep the VG under the max pp limit and I think I monitored the change by watching the change in PP counts from lsvg -p. I had a script that would add a LUN, migrate to it and then remove the empty LUN repeating for each old LUN.

    There are discussions about replacing the SAN again and if they do I will have to migrate the storage for the third time.



    ------------------------------
    Alexander Pettitt
    ------------------------------



  • 14.  RE: AIX VG Mirroring

    Posted Wed August 28, 2024 05:21 AM

    Yes, correct. We did a storage migration last year and that worked vastly better than migratepv.



    ------------------------------
    Henrik Morsing
    ------------------------------