Sponsored Content
Full Discussion: dispaly vg's and pv's?
Operating Systems AIX dispaly vg's and pv's? Post 302232866 by honeym210 on Friday 5th of September 2008 10:46:49 AM
Old 09-05-2008
CPU & Memory dispaly vg's and pv's?

hi

i need to write a script,

the script display's list of volume groups followed by physical volumes with in volume group and at the same time the script should display the pvid of physical volume.

what i need is, how to read the line by line from the files...

the below is my script..

echo "List of Volume Groups and Physical Volume:"
while read xxxxxx (the xxxx should read from file reportvg.out)
do
lsvg -p xxxxxx > reportpv.out (the xxxxx is vg anme)
while read xxxxxx ( the xxxx is the pv name from reportpv.out)
do
lspv xxxxx | grep IDENTIFIER ( the xxxx is pv name)
done reportpv.out
done reportvg.out


can anyone help me on this.



thanks

Last edited by honeym210; 09-05-2008 at 11:59 AM..
 

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Issue with dispaly of special character like 'TM'

Hi, I've an xml file with special characetr 'TM' (trade mark sign). The issue is that I am not able to get the symbol 'TM'(trade mark sign) on unix. It displays '?' instead. I've searched the solution on net. Wht I've found is that the symbol 'TM' does not come under ISO-8859-1 char set. So I... (0 Replies)
Discussion started by: vbehal
0 Replies

2. Solaris

Dispaly IP address

How to display the IP address in authlog and sulog? (1 Reply)
Discussion started by: Burhan
1 Replies
VGDISPLAY(8)						      System Manager's Manual						      VGDISPLAY(8)

NAME
       vgdisplay - display attributes of volume groups

SYNOPSIS
       vgdisplay  [-A|--activevolumegroups]  [-c|--colon|-s|--short|-v|--verbose]  [-d|--debug]  [-h|--help] [--ignorelockingfailure] [--nosuffix]
       [-P|--partial] [--unitshHbBsSkKmMgGtTpPeE] [--version] [VolumeGroupName[VolumeGroupName...]]

       vgdisplay      --columns      |	    -C	    [--aligned][-d|--debug][-h|-?|--help]	[--ignorelockingfailure][--noheadings][--nosuffix]
       [-o|--options[+]Field[,Field]]  [-O|--sort[+|-]Key1[,[+|-]Key2[,...]]]	[-P|--partial] [--separatorSeparator] [--unbuffered] [--unitshHbB-
       sSkKmMgGtTpPeE] [-v|--verbose] [--version] [VolumeGroupName[VolumeGroupName...]]

DESCRIPTION
       vgdisplay allows you to see the attributes of VolumeGroupName (or all volume groups if none is given) with it's physical and  logical  vol-
       umes and their sizes etc.

       vgs (8) is an alternative that provides the same information in the style of ps (1).

OPTIONS
       See lvm for common options and vgs for options given with --columns.

       -A, --activevolumegroups
	      Only select the active volume groups.

       -c, --colon
	      Generate colon separated output for easier parsing in scripts or programs.  N.B. vgs (8) provides considerably more control over the
	      output.

	      The values are:

	      1  volume group name
	      2  volume group access
	      3  volume group status
	      4  internal volume group number
	      5  maximum number of logical volumes
	      6  current number of logical volumes
	      7  open count of all logical volumes in this volume group
	      8  maximum logical volume size
	      9  maximum number of physical volumes
	      10 current number of physical volumes
	      11 actual number of physical volumes
	      12 size of volume group in kilobytes
	      13 physical extent size
	      14 total number of physical extents for this volume group
	      15 allocated number of physical extents for this volume group
	      16 free number of physical extents for this volume group
	      17 uuid of volume group

       -s, --short
	      Give a short listing showing the existence of volume groups.

       -v, --verbose
	      Display verbose information containing long listings of physical and logical volumes.  If given twice, also display verbose  runtime
	      information of vgdisplay's activities.

       --version
	      Display version and exit successfully.

       --columns|-C
	      Display output in columns, the equivalent of vgs.  Options listed are the same as options given in vgs (8).

SEE ALSO
       lvm(8), vgs(8), pvcreate(8), vgcreate(8), lvcreate(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					      VGDISPLAY(8)
All times are GMT -4. The time now is 03:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy