- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Calculate total VG disk space?
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
07-12-2002 08:03 AM
07-12-2002 08:03 AM
Calculate total VG disk space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:10 AM
07-12-2002 08:10 AM
Re: Calculate total VG disk space?
run
#vgdisplay
The total VG Disk space=(Total PE x PE Size)Mbytes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:11 AM
07-12-2002 08:11 AM
Re: Calculate total VG disk space?
#vgdisplay
..typo..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:25 AM
07-12-2002 08:25 AM
Re: Calculate total VG disk space?
# vgdisplay vg00|egrep -i "total pe|pe size|free pe|alloc pe"
That gives you something like this ..
PE Size (Mbytes) 4
Total PE 2168
Alloc PE 1928
Free PE 240
Complete the calc ..
a) Total disk space (MB) = 2168*4
b) Total used disk space (MB) = 1928*4
c) Total free disk space (MB) = 240*4
Hope it helps a little ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:29 AM
07-12-2002 08:29 AM
Re: Calculate total VG disk space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:54 AM
07-12-2002 08:54 AM
Re: Calculate total VG disk space?
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2500
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 2010
Free PE 36
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0
the no of free PE ( physical extent ) multiplied by the size of it ie 4 MB will give you the total free size in the volume group
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 08:58 AM
07-12-2002 08:58 AM
Re: Calculate total VG disk space?
Also in the "init sw_sel" stanza, add the "impacts" lines by executing the archive_impacts command and include the results in the file, replacing the example impacts lines. By default, this assumes we created a tar archive that was gzip'd.
# /opt/ignite/lbin/archive_impact -t -g
Below is the complete "sw_sel" stanza. We deleted some of the extra stanzas in the example for simplicity.
init sw_sel "golden image" {
description = "Archive HP-UX 10.20 CDE"
sw_source = "core archive"
sw_category = "HPUXEnvironments"
archive_type = gzip tar
# For NFS, the path to the archive is relative to the mount
# point specified in the sw_source:
archive_path = "hpfcnjm2.gz"
# ftp/remsh sources can use a full path:
# archive_path = "/pub/IUXarchives/B.10.20_700_CDE.gz"
impacts = "/" 23Kb
impacts = "/.dt" 35Kb
impacts = "/TT_DB" 18Kb
impacts = "/etc" 1375Kb
impacts = "/export" 1Kb
impacts = "/opt" 74079Kb
impacts = "/sbin" 13449Kb
impacts = "/stand" 1Kb
impacts = "/tmp" 1Kb
impacts = "/usr" 225459Kb
impacts = "/var" 5736Kb
} = TRUE
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 06:27 AM
07-15-2002 06:27 AM
Re: Calculate total VG disk space?
What I am wanting to do is determine the size of the root volume group inside an Ignite-UX config script, so I can size filesystems according to how big the root volume group is.
I know that I can use vgdisplay at a shell prompt to figure out how big an existing volume group is, but I find it hard to believe I can run 'vgdisplay' as part of an Ignite config script, parse out the lines I need, and do a computation as some of you are suggesting.
If I'm mistaken, and in fact you can do this, please post a snippet of the required statements from an Ignite-UX script so I can see how to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 06:34 AM
07-15-2002 06:34 AM
Re: Calculate total VG disk space?
I think in when you runinstall ignite it shows the root disk size in the filesystem submenu and that is the space avaialbe for the installtion you can add on the fielsystems sizes to calcutate the total diskspace.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 07:08 AM
07-15-2002 07:08 AM
Re: Calculate total VG disk space?
2. Determining the size of the root DISK is trivial. However, what if I have two or more disks in my root volume group? How do I do it then?