AIX

AIX

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


#Power
#Power
 View Only
  • 1.  How to mirror newly created logical volume on the mirrored enviroment

    Posted Thu March 13, 2008 05:44 AM

    Originally posted by: chandru0078


    Dear expects

    Can anyone assist me on above problem? I founded some of lv/fileystem not in synchronized or mirrored from hdisk0 to hdisk1. This could be happen the application vendor created file system after mirroring process already performed.So i believe file system created after mirrored WONT be mirror to hdisk1 right? i have tried to initiate "syncvg rootvg" or "syncvg -p hidsk0 hdisk1" nothing worked out .Can anyone please explain how to sync so both hdisk mirror equally ?

    AIX 5300-06-01-0000

    total pv:4
    used pv:2
    unused pv:2

    total vg : 1 rootvg
    1. lsvg -l rootvg
    rootvg:
    LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
    hd5 boot 1 2 2 closed/syncd N/A
    hd6 paging 32 64 2 open/syncd N/A
    hd8 jfs2log 1 2 2 open/syncd N/A
    hd4 jfs2 1 2 2 open/syncd /
    hd2 jfs2 40 80 2 open/syncd /usr
    hd9var jfs2 4 8 2 open/syncd /var
    hd3 jfs2 4 8 2 open/syncd /tmp
    hd1 jfs2 84 168 2 open/syncd /home
    hd10opt jfs2 10 20 2 open/syncd /opt
    lg_dumplv sysdump 8 8 1 open/syncd N/A
    fslv00 jfs2 40 40 1 open/syncd /disc1
    fslv01 jfs2 80 80 1 open/syncd /disc2
    fslv02 jfs2 80 80 1 open/syncd /disc3
    fslv03 jfs2 80 80 1 open/syncd /disc4
    fslv04 jfs2 80 80 1 open/syncd /disc5
    fslv05 jfs2 80 80 1 open/syncd /disc6
    fslv06 jfs2 49 49 1 open/syncd /disc7
    fslv07 jfs2 80 80 1 open/syncd /disc8
    fslv08 jfs2 56 56 1 open/syncd /disc9
    fslv09 jfs2 40 40 2 open/syncd /disk7

    Please help.Thank you in advances
    chandra
    #AIX-Forum


  • 2.  Re: How to mirror newly created logical volume on the mirrored enviroment

    Posted Thu March 13, 2008 09:48 AM

    Originally posted by: alethad


    If you need to mirror your fslvXX then you'll need to do that with the mklvcopy command first. Once you've done that for all those FS's that aren't mirrored then you'll do the syncvg to get the rootvg sync'd.

    mklvcopy lvname 2 hdisk to make the copy to

    Read the man page on the mklvcopy command before proceeding. Just so you'll be familiar with it first.
    #AIX-Forum


  • 3.  Re: How to mirror newly created logical volume on the mirrored enviroment

    Posted Sat March 15, 2008 02:25 AM

    Originally posted by: chandru0078


    Dear alethad
    Thank you for the feedback.im affraid not able to do thath because currently i have 6GB space under rootvg ,so its not possible to me mklvcopy since space required less then current.I plan to user 2 more unused pv by creating datavg and copy all the unmonitored lv from rootvg(mirrored with hdisk0 and hdisk2) to datavg(unmonitored hdisk3).

    Can anyone tell me what is the steps involved for above process?
    if i copy lv from rootvg to datavg can i mount the filesystem? how about the jfslogs ?do i need to create new jfslogs lv under new datavg ?

    pls help
    chandru0078
    #AIX-Forum


  • 4.  Re: How to mirror newly created logical volume on the mirrored enviroment

    Posted Tue March 18, 2008 11:31 AM

    Originally posted by: alethad


    chandru0078,
    You should be able to use the migratepv command. Run the man page on it. I've looked at it to see if there is an issue with migrating between VG's. I don't see that as a limitation. I've used it it before and I'm sure I could migrate between VG's but it's been a long time since I've used it. Sorry for the memory bubble.

    Otherwise you'll have to do it as Kappa says or you will have to re-create your filesystems from scratch and put them in the new datavg.

    Good luck.

    Message was edited by: alethad
    #AIX-Forum


  • 5.  Re: How to mirror newly created logical volume on the mirrored enviroment

    Posted Mon March 17, 2008 04:28 PM

    Originally posted by: kappa


    Do you only have internal SCSI disks?
    Put all of them into rootvg (extendvg rootvg hdisk5 hdisk6),
    then simply say mirrorvg rootvg.
    You also have maximum flexibility for solving future disk hotspots,
    because you can move any FS (from disk to disk) during operation.
    #AIX-Forum


  • 6.  Re: How to mirror newly created logical volume on the mirrored enviroment

    Posted Wed March 19, 2008 05:30 PM

    Originally posted by: kappa


    Sorry, migratepv uses LVM mirroring and thus works inside VGs only.
    Only cplv allows inter-VG data migration.
    Moreover, AIX Mirroring works on LVs, not on PVs.
    #AIX-Forum