AIX

AIX

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


#Power
 View Only
Expand all | Collapse all

Strange named "None" VG in offline state - how to recognize member disks?

  • 1.  Strange named "None" VG in offline state - how to recognize member disks?

    Posted Thu January 09, 2014 12:29 PM

    Originally posted by: tech100



    # lspv|grep None
    hdisk0          00f6fc690bdfe081                    None
    hdisk1          00f6fc690bdfe192                    None
    hdisk2          00f6fc690bdfe545                    None
    # lsvg
    rootvg
    None

    how to recognize (without "varyonvg None") which of the hdisks on "lspv|grep None" output belongs to the VG called None? Some of the disks listed on "lspv|grep None" can be free disks.

     

     

     


    #AIX-Forum


  • 2.  Re: Strange named "None" VG in offline state - how to recognize member disks?

    Posted Thu January 09, 2014 03:29 PM

    Originally posted by: MatthewBourne


    Use "lsvg -p None" ?


    #AIX-Forum


  • 3.  Re: Strange named "None" VG in offline state - how to recognize member disks?

    Posted Tue January 21, 2014 06:38 AM

    Originally posted by: Wouter Liefting


    There's an undocumented command lqueryvg (and its cousin lquerypv) that will query the disk directly, without the need to import the data into the ODM (like varyonvg would do).

    lqueryvg -Atvp hdisk# will, amongst other things, show you which disks (pvid) make up the volume group.

    Note that you will only get the PVID numbers from lqueryvg, since the order in which the disks are detected may have been changed. To find out the mapping between the PVID and the hdisk number, you can use lquerypv -h /dev/hdisk# 80 10 on each disk. This will show you the PVID of that disk. Importvg/varyonvg will apply the same trick: Get the PVIDs from the VGDA from the disk you are importing, then scan all disks to find the disk with the proper PVID.

    Also note that the volume group name is not stored in the VGDA. Rather, a volume group only gets a name when you do the importvg/varyonvg, and that name is only stored in the ODM and the kernel data structures, not on disk. That's why lspv will always show "None", both in case the disk is not part of a VG, and in case the disk is part of a VG that is not imported/varyonvg-ed.


    #AIX-Forum