read lv mountpoint information directly from disk

Hello,

I need to get the lv mountpoint from the hdisk directly (from vgda i guess) and not from odm or /etc/filesystems

I knew the command, but unfortunately I forgot it :wink:

cheers funksen

 lsvg -l  <vgname>

perhaps?

or:

 lspv -l hdisk 

thx but this command reads this information from /etc/filesystems

 lqueryvg -Atp hdisk... 

found also this, but I have no man pages for the command:

n12:/sm/cron/sas $ readvgda -?            

Usage: readvgda [-hqldps | -t | -m <lv> [-c#] | -v# ] <file|disk>

        -h      header, print raw first block of the disk
        -q      queryvg, print 'lqueryvg' like data
        -l      lv, format vgda to show 'lslv' and 'lslv -m' data
        -d      (default) debug, print vgsa & vgda structures.
        -p      primary, only print info from and about primary MD areas
        -s      secondary, only print info from and about secondary MD areas
        -m      map, format vgda to print lv map for specified lv
        -t      timestamps, only print timestamps (overrides other options).
        -c      copy, for use with -m, only print map for this copy
        -v      verbosity #, print outputs for snap (primary areas only):
        -o      query ODM for PV names, VG names, and other ODM attributes.
        file    if file isn't found, will try /dev/file

thank you vbe,

gives me this output:

#  lqueryvg -Atp hdisk0                                                                                                                                                                                                                      
Max LVs:        256                                                                                                                                                                                                                          
PP Size:        25
Free PPs:       328
LV count:       15
PV count:       2
Total VGDAs:    3
Conc Allowed:   0
MAX PPs per PV  1016
MAX PVs:        32
Quorum (disk):  1
Quorum (dd):    0
Auto Varyon ?:  1
Conc Autovaryo  0
Varied on Conc  0
Logical:        00509d1a00004c00000000ff77af1bba.1   hd5 1  
                00509d1a00004c00000000ff77af1bba.2   hd6 1  
                00509d1a00004c00000000ff77af1bba.3   hd8 1  
                00509d1a00004c00000000ff77af1bba.4   hd4 1  
                00509d1a00004c00000000ff77af1bba.5   hd2 1  
                00509d1a00004c00000000ff77af1bba.6   hd9var 1  
                00509d1a00004c00000000ff77af1bba.7   hd3 1  
                00509d1a00004c00000000ff77af1bba.8   hd1 1  
                00509d1a00004c00000000ff77af1bba.9   hd10opt 1  
                00509d1a00004c00000000ff77af1bba.11  loglv00 1  
                00509d1a00004c00000000ff77af1bba.13  lv00 1  
                00509d1a00004c00000000ff77af1bba.14  fslv01 1  
                00509d1a00004c00000000ff77af1bba.15  lv01 1  
                00509d1a00004c00000000ff77af1bba.16  paging00 1  
                00509d1a00004c00000000ff77af1bba.18  itmlv 1  
Physical:       00509d1a173b5e36                2   0  
                00509d1af9c6ea43                1   0  
Total PPs:      1084
LTG size:       128
HOT SPARE:      0
AUTO SYNC:      0
VG PERMISSION:  0
SNAPSHOT VG:    0
IS_PRIMARY VG:  0
PSNFSTPP:       4352
VARYON MODE:    0
VG Type:        0
Max PPs:        32512

but unfortunately the fs is not displayed

the background why I need this command:
sometimes we have problems, that migrated vgs from one aix to another contain the wrong filesystem mountpoint, because someone just changed the mountpoint in /etc/filesystems

chfs -m /newmountpoint filesystem

changes the mountpoint in the vgda as well

---------- Post updated at 11:42 ---------- Previous update was at 11:11 ----------

I found it, my mistake this information resides in the logical volume control block, and not in the vgda

root@ldapclient:/usr/sbin# getlvcb -AT sysadmlv
         AIX LVCB
         intrapolicy = m 
         copies = 1 
         interpolicy = m 
         lvid = 00c33cbe00004c000000010cb4a74a88.11 
         lvname = sysadmlv 
         label = /sysadm 
         machine id = xxxxxx
         number lps = 65 
         relocatable = y 
         strict = y 
         stripe width = 0 
         stripe size in exponent = 0 
         type = jfs2 
         upperbound = 32 
         fs = vfs=jfs2:log=/dev/hd8:mount=true:options=rw:account=false 
         time created  = Thu Jun 19 11:28:45 2008
         time modified = Wed Jul  8 14:10:28 2009