AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  access data from a new disk was assigned another rootvg

    Posted 07/05/12 05:05 AM

    Originally posted by: Sunneo


    Hello,

    I try to access to data after connect a new disk (hdisk1) to a AIX 7.1 system
    This new disk was assigned to a rootvg from another AIX 6.1 system.

    It seem not assigned to any vg

    # lspv
    hdisk0 00c80d35517d435f rootvg active
    hdisk1 00c80d35577935af None

    but if I tried to assigned hdisk1 to rootvg i get :

    # extendvg rootvg hdisk1
    0516-1398 extendvg: The physical volume hdisk1, appears to belong to
    another volume group. Use the force option to add this physical volume
    to a volume group.
    0516-792 extendvg: Unable to extend volume group.

    Data seem to be always here ... ouf ;-)
    lqueryvg -p hdisk1 -At
    0516-320 lqueryvg: Physical volume hdisk1 is not assigned to
    a volume group.
    Max LVs: 256
    PP Size: 28
    Free PPs: 1
    LV count: 44
    PV count: 1
    Total VGDAs: 2
    Conc Allowed: 0
    MAX PPs per PV 1016
    MAX PVs: 32
    Quorum (disk): 1
    Quorum (dd): 1
    Auto Varyon ?: 1
    Conc Autovaryo 0
    Varied on Conc 0
    Logical: 00c80d3500004c0000000127194dec97.1 hd5 1
    00c80d3500004c0000000127194dec97.2 hd6 1
    00c80d3500004c0000000127194dec97.3 hd8 1
    00c80d3500004c0000000127194dec97.4 hd4 1
    00c80d3500004c0000000127194dec97.5 hd2 1
    00c80d3500004c0000000127194dec97.6 hd9var 1
    00c80d3500004c0000000127194dec97.7 hd3 1
    00c80d3500004c0000000127194dec97.8 hd1 1
    00c80d3500004c0000000127194dec97.9 hd10opt 1
    00c80d3500004c0000000127194dec97.10 hd11admin 1
    00c80d3500004c0000000127194dec97.11 fwdump 1
    00c80d3500004c0000000127194dec97.12 lg_dumplv 1
    00c80d3500004c0000000127194dec97.13 livedump 1
    00c80d3500004c0000000127194dec97.14 fslv00 1
    00c80d3500004c0000000127194dec97.15 fslv01 1
    00c80d3500004c0000000127194dec97.16 fslv02 1
    00c80d3500004c0000000127194dec97.17 fslv03 1

    I don't want to loose data, but how can I access them in this new system ?

    Thanks

    Philippe
    #AIX-Forum


  • 2.  Re: access data from a new disk was assigned another rootvg

    Posted 07/05/12 08:38 AM

    Originally posted by: ColombianJoker


    If you won't use to boot another system again, you can import it in a "new" volume group. AIX LVM will rename all logical volumes if conflicted.
    #AIX-Forum


  • 3.  Re: access data from a new disk was assigned another rootvg

    Posted 07/05/12 05:10 PM

    Originally posted by: Sunneo


    Solution :

    • disconnect disk
    • cfgmr
    • importvg (same error with vgid)
    • recreatevg -y newvg hdisk1 (ok)

    #AIX-Forum