Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « Reading VLANs from the SEA Adapter
  • Configuring DNS timeout on AIX »

AIX and VIO Server readvgda

Posted by steve on 20 May 2011 in VIO Server Tips, AIX Tips

There is a new command in AIX 6.1 and later that allows you to read the VGDA from a disk that is not online. It is a great command that replaced the need to use commands like lqueryvg and lquerypv etc. This can safely be run (by root) on disks on a VIO server that are presented to and in use by the clients.  The command does a quick read of the VGDA from the disk and displays lots of useful information regarding disk, volume groups and logical volumes.

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

 


Here is an example where I read the VGDA from an old rootvg disk that is varied off.


# lspv | grep -w hdisk[01]

</code><span style="font-family: 'courier new', courier, monospace; font-size: 10pt;">hdisk0 00112233445566ea old_rootvg</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 10pt;">hdisk1 aabbccddeeffgg2b5 old_rootvg</span></p>
<p><br /><span style="font-family: 'courier new', courier, monospace; font-size: 10pt;"><code># lsvg

</code><span style="font-family: 'courier new', courier, monospace; font-size: 10pt;">old_rootvg</span><br /><span style="font-family: 'courier new', courier, monospace; font-size: 10pt;">rootvg</span></p>
<p><br /><span style="font-family: 'courier new', courier, monospace; font-size: 10pt;"><code># lsvg -o

rootvg

# readvgda -q /dev/hdisk0

.....
..... Fri May 20 11:43:04 EET:2011
..... readvgda -q /dev/hdisk0
..... readvgda_file: /dev/hdisk0
..... readvgda_type: smallvg
..... readvgda_ver: 3
.....

============= B: QUERYVG /dev/hdisk0 0 =============
VGID: 001122334455660000000aabbccdd6fd
Max LVs: 256
PP Size: 28
Free PPs: CALC
LV count: 13
PV count: 2
Total VGDAs: 3
Conc Allowed: 0
MAX PPs per PV: 1016
MAX PVs: 32
Quorum (disk): 1
Autovaryon: 1
Conc Autovaryon: 0
Varied on Conc: LVDD
Logical: LVID lvname state
001122334455660000000aabbccdd6fd.1 hd5 CALC
001122334455660000000aabbccdd6fd.2 hd6 CALC
001122334455660000000aabbccdd6fd.3 paging00 CALC
001122334455660000000aabbccdd6fd.4 hd8 CALC
001122334455660000000aabbccdd6fd.5 hd4 CALC
001122334455660000000aabbccdd6fd.6 hd2 CALC
001122334455660000000aabbccdd6fd.7 hd9var CALC
001122334455660000000aabbccdd6fd.8 hd3 CALC
001122334455660000000aabbccdd6fd.9 hd1 CALC
001122334455660000000aabbccdd6fd.10 hd10opt CALC
001122334455660000000aabbccdd6fd.12 fslv00 CALC
001122334455660000000aabbccdd6fd.13 pridumpdev CALC
001122334455660000000aabbccdd6fd.14 secdumpdev CALC
Physical: PVID #vgdas pvstate stale
00112233445566ea  2      1    CALC
aabbccddeeffggb5  1      1    CALC
Total PPs: 1092
LTG size (disk): 128
HOT SPARE: 0
AUTO SYNC: 0
VG PERMISSION: LVDD
SNAPSHOT VG: 0
IS_PRIMARY VG: 0
PSNFSTPP: CALC
VARYON MODE: LVDD
VG Type: 0
Max PPs: 32512
============= E: QUERYVG =============

Tags: AIXVIO ServerVIOSlqueryvgreadvgda

No feedback yet


Form is loading...

July 2026
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

IBM Power Systems Blog

IBM Power Systems - Administration, Tuning and Optimisation. These posts are my own personal opinions and comments only.

Search

Categories

  • All
  • AIX Tips
  • AIX Tuning
  • Command Line Tips
  • HMC Tips
  • LPM Information
  • NIM Tips
  • Performance Testing
  • Power System Affinity
  • PowerHA Tips
  • SRIOV and vNIC
  • Scripts and One Liners
  • VIO Server Tips

Recent Posts

  • AIX NIM Hints and Tips
  • Finding Multiple Install Sources for AIX
  • PowerHA and EMC Busy Devices
  • AIX Random Password Generation
  • VIO Server 3.1.0 and ssh host keys
  • VIO Server 3.1.0 Items to Review
  • Just when you thought you understood idle CPU time!!
  • 40Gbit Adapter Performance Testing
  • LPM Copy Time Statistics
  • IBM HMC Upgrades

Recent Comments

  • steve on How to configure IBM SRIOV Adapters
  • Howard Coles on How to configure IBM SRIOV Adapters
  • steve on AIX mpstat and lssrad part 1
  • Charin Kumjudpai on AIX mpstat and lssrad part 1
  • Gagandeep on LPM and multiple vSwitches
  • Fant Steele on VIO Server 3.1.0 and ssh host keys
  • steve on AIX NIM Hints and Tips
  • alan wilcox on AIX NIM Hints and Tips
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Bernhar on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Gery on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • patrice on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Chris K. on AIX buf_mode attribute for Virtual Ethernet Adapters
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on Creating EtherChannel Devices from Command Line

This collection ©2026 by Stephen Diwell • Contact • Help • PHP framework

powered by b2evolution CMS
Cookies are required to enable core site functionality.