AIX

AIX

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


#Power
#Power
 View Only
  • 1.  PP order mismatch after mirrorvg

    Posted Sat December 04, 2010 03:33 AM

    Originally posted by: jalite19


    we just replaced a mirrored failed disk (not a root disk), after new disk hdisk3 becomes visible, I run 'mirrorvg extvg hdisk3' without using -m option.
    All the lvs are synced, but PP order of each LV on the new disk hdisk3 is different to its mirrored disk hdisk32.
    for example: # lslv -m transfer
    transfer:/data/transfer
    LP PP1 PV1 PP2 PV2 PP3 PV3
    0001 0307 hdisk32 0224 hdisk3
    0002 0308 hdisk32 0225 hdisk3
    0003 0309 hdisk32 0226 hdisk3
    .
    1. lspv -p hdisk32
    hdisk32:
    PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
    1-16 used outer edge sec jfs /sec
    17-80 used outer edge load_1 jfs /load_1
    .
    1. lspv -p hdisk3
    hdisk3:
    PP RANGE STATE REGION LV ID TYPE MOUNT POINT
    1-31 free outer edge
    32-131 used outer edge test jfs /test
    132-219 used outer edge load_1 jfs /load_1
    .
    I want to make PP order the same across two disks, how can I correct this? Can I unmirrorvg, format hdisk3, re-attach to vg and resync again while online?
    #AIX-Forum


  • 2.  Re: PP order mismatch after mirrorvg

    Posted Sat December 04, 2010 04:02 PM

    Originally posted by: SystemAdmin


    no need to "format" disk.

    learn about lvm, in this case mklv / chlv manual, search for superstrict.

    greets
    D.
    #AIX-Forum


  • 3.  Re: PP order mismatch after mirrorvg

    Posted Tue December 07, 2010 07:50 AM

    Originally posted by: jalite19


    Can your answer please be a bit more specific? just high level steps will help
    #AIX-Forum


  • 4.  Re: PP order mismatch after mirrorvg

    Posted Tue December 07, 2010 01:50 PM

    Originally posted by: tech100


    you can unmirrorvg and mirrorvg again with option -m

    somethink like:

    unmirrorvg extvg hdisk3
    mirrorvg -m -s extvg hdisk3
    varyonvg extvg #to begin syncvg in background

    ps -ef|grep sync #should show ~'synlv' processes
    #AIX-Forum


  • 5.  Re: PP order mismatch after mirrorvg

    Posted Tue December 14, 2010 07:11 PM

    Originally posted by: Siddhartha.Sinha


    tech100 gave all the steps. only last step ( varyonvg) is not required because it will be already varied on.
    #AIX-Forum


  • 6.  Re: PP order mismatch after mirrorvg

    Posted Wed December 15, 2010 12:52 PM

    Originally posted by: tech100


    hi Siddhartha.Sinha
    ,

    maybe you don't know, but "varyonvg avg" is very offten was to syncvg - even if it is already varied on.

    btw. also when a pv is in missing state (ag is was not available for a moment and entered missing state) then running varyonvg usually makes it available again and syncs all stale PPs...

    regards,T.
    #AIX-Forum


  • 7.  Re: PP order mismatch after mirrorvg

    Posted Wed December 15, 2010 01:13 PM

    Originally posted by: Siddhartha.Sinha


    @tech100, I have to admit I didn't know that. I use lresynclv to re-sync the stale pps, but never used that trick u mentioned before.
    #AIX-Forum


  • 8.  Re: PP order mismatch after mirrorvg

    Posted Thu December 16, 2010 07:07 AM

    Originally posted by: MarkTaylor


    use mirrorvg -Ssm <vgname> <pvname> to fire off the syncvg in the background in one command, then

    while :
    do
    lsvg | grep STALE
    sleep 15
    done

    to monitor the progress ..

    HTH
    Mark Taylor
    #AIX-Forum