- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgdisplay -v doesn't show the 'Volume group' secti...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:16 AM
05-30-2003 05:16 AM
vgdisplay -v doesn't show the 'Volume group' section header
As you can read in manual pages, vgdisplay -v command shows a header for each section. This header is compound of three dashes at the begin of the line, other three dashes at the end and a text between them. For instance:
--- Logical volumes ---
or also
--- Volume groups ---
That is true when only one volume group is specified in the command line.
But if you type several volume groups in the command line (or none for all volume groups) then the header
--- Volume groups ---
is only printed for the first volume group, but not for the remaining ones... For example
$ vgdisplay vg00 vg01
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 5994
Free PE 2686
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 60
Cur PV 18
Act PV 18
Max PE per PV 3473
VGDA 36
PE Size (Mbytes) 4
Total PE 62496
Alloc PE 14848
Free PE 47648
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:29 AM
05-30-2003 05:29 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:30 AM
05-30-2003 05:30 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
Yes, true.
# vgdisplay -v /dev/vg00
will print info for vg00
# vgdisplay -v /dev/vg01
will print info for vg01
etc.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:30 AM
05-30-2003 05:30 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
for i in vg1 vg2 vgx
do
vgdisplay -v $i
done
Otherwise... what is your question ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:33 AM
05-30-2003 05:33 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
Yes, that's true, replicating the line would be superflous. For instance, if all I wanted was to know the names of all the volume groups, using 'vgdisplay', I could do:
# vgdisplay | grep "VG Name"
...or if I wanted to know where free physical extents were available:
# vgdisplay|grep -e "VG Name" -e "Free PE"
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 05:35 AM
05-30-2003 05:35 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
May be it's a funny answer ..but just thought in that way !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 12:31 AM
06-02-2003 12:31 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
vgdisplay -v | myscript.sh 'Physical volume'
Each section would be preceded by a header of the format:
--- name of section ----
and it finishes when other '---' section header is found (or and EOF is found).
The use of these headers makes the script very simple:
awk -v SN="Logical Extents" '
BEGIN { S="^ *--- " SN " ---$" }
$1=="---" && $NF==$1 { T=match($0,S)>0; continue }
T==1'
but this 'bug' will force me to retype the script again...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 12:48 AM
06-02-2003 12:48 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
I needed to get all the PV names in my box that aren't 'Alternate Links', i.e., that are primary links... anyone would suggest:
vgdisplay -v | grep 'PV Name' | grep -v 'Alternate Link'
but it works fine when no Physical Volume Group exists because, in this case, the 'PV Name' pattern is also displayed in the Physical Volume Group section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 04:19 AM
06-04-2003 04:19 AM
Re: vgdisplay -v doesn't show the 'Volume group' section header
vgdisplay | awk '{print $3} | grep /dev > /var/tmp/vgdetail
vgdisplay -v `cat /var/tmp/vgdetail | awk '{print $1}'` > /var/tmp/`hostname`.vgdetail
It will list the header for each VG.