- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to check the size of vg00
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
10-26-2005 06:50 PM
10-26-2005 06:50 PM
I have vg00 vg i want to check the disk space of this vg,pls tell how to check
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:54 PM
10-26-2005 06:54 PM
Re: how to check the size of vg00
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:55 PM
10-26-2005 06:55 PM
Re: how to check the size of vg00
vgdisplay -v vg00
Free space (MB) = free PE x 4 PE size
Check this for each Physical volume
LV size in MB is given for each lvol
If used PV = 2 or greater, then you have a mirrored disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:55 PM
10-26-2005 06:55 PM
Re: how to check the size of vg00
look at the output and note these values
PE size
Total PEs
multiply these two numbers the result is tha total capacity of the vg00 in megabytes.
if you want to calculate free space, instead of Total PEs, use Free PEs.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:55 PM
10-26-2005 06:55 PM
Re: how to check the size of vg00
Just run the cmd like
# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 8
Total PE 4340
Alloc PE 4340
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
In the output observe for Alloc PE (eg:4340), and PE Size (Mbytes).
Caluclate now
actual size=Alloc PE * PE Size (Mbytes)
CHeers,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:56 PM
10-26-2005 06:56 PM
Re: how to check the size of vg00
#vgdisplay -v /dev/vg00
will give you all details.
Check
PE Size (Mbytes) 16
Total PE 17496
Alloc PE 14256
Free PE 3240
Total size of vg00 is
=Total PE * PE Size
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:59 PM
10-26-2005 06:59 PM
Re: how to check the size of vg00
Look for Total PE and PE Size (Mbytes)
Actual Size = Total PE * PE Size (Mbytes)
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:59 PM
10-26-2005 06:59 PM
Re: how to check the size of vg00
vgdisplay vg00 | awk '/PE Size \(Mbytes\)/{s=$4}; /Total PE/{f=$3}; END{print s*f" Mbytes total space on volume group."}'
hth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 07:00 PM
10-26-2005 07:00 PM
SolutionUse 'vgdisplay' command :
# vgdisplay /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 1830
Free PE 6918
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
From the example above, the size of vg00 is [Alloc PE x Free PE] = 1830 x 32 = 58560 Mbytes.
You need also to check if the vg00 is mirrored or not. Check by using lvdisplay onto the logical volume at vg00.
# lvdisplay /dev/vg00/lvol1
If mirrored, you need to devide it by the number of mirror + 1.
Let say if from lvdisplay, you find mirror copies is 1, so the vg00 size above is 58560 / (1+1) = 58560 / 2 = 29280 MBytes.
The condition above if all logical volume in vg00 is mirrored.
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:36 PM
10-26-2005 08:36 PM
Re: how to check the size of vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:40 PM
10-26-2005 08:40 PM
Re: how to check the size of vg00
adi should have explain how to retrieve free space from the output of vgdisplay:
# vgdisplay -v vg00
refer to Free PE where PE is in extents, thus to convert to MB, multiply by PE Size.
http://docs.hp.com/en/B2355-90692/vgdisplay.1M.html
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:52 PM
10-26-2005 08:52 PM
Re: how to check the size of vg00
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=763059&admit=-682735245+1130402918678+28353475
view attached documents in this thread.
Solution to ur lvm issues
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:55 PM
10-26-2005 08:55 PM
Re: how to check the size of vg00
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8680
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
see Free PE is 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:57 PM
10-26-2005 08:57 PM
Re: how to check the size of vg00
Solution to ur lvm issues
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:57 PM
10-26-2005 08:57 PM
Re: how to check the size of vg00
this would mean u have allocated all your extents from that volume group, vg00.
use bdf to check the available and used file system, if that is what u want to know.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:57 PM
10-26-2005 08:57 PM
Re: how to check the size of vg00
this would mean u have allocated all your extents from that volume group, vg00.
use "bdf" command to check the available and used file system, if that is what u want to know:
# bdf
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 09:13 PM
10-26-2005 09:13 PM
Re: how to check the size of vg00
You can see the free space allocated to file systems using bdf command.
If you wish to see unallocated space in the vg then Free PE multiplied by PE Size will get that fot you. Allthough here as the free PE is zero, you do not have any space in the VG unallocated.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 10:27 PM
10-26-2005 10:27 PM
Re: how to check the size of vg00
man df
man du
u can use
man lvdisplay
man vgdisplay
man pvdisplay
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 10:34 PM
10-26-2005 10:34 PM
Re: how to check the size of vg00
VG Status available
Total PE 8680
Alloc PE 8680
Free PE 0
Free PE = Total PE - Alloc PE
0 = 8680 - 8680
It is stating correct information.
# bdf will give file system usage statistics.
My VG status is as,
Total PE 4374
Alloc PE 639
Free PE 3735
They are calculated as per above calculation.
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 01:10 AM
10-27-2005 01:10 AM
Re: how to check the size of vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 04:15 AM
10-27-2005 04:15 AM
Re: how to check the size of vg00
This one-liner awk script might help:
vgdisplay vg00|awk '/^PE Size/{size=$NF}/^Free PE/{free=$NF}END{print size*free" MB"}'
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 04:41 AM
10-27-2005 04:41 AM
Re: how to check the size of vg00
However - there may be space in an existing lvol...
do a vgdisplay -v vg00
check the lvols and see if they are in your fstab file.
If there is any the=at are not in fstab - then they may be free - you might want to mount them temporarily first...
IE - say there is a lvol12 in the vgdisplay -v vg00 output - but lvol12 isn't in the fstab...
Make sure it isn't in swap with a swapinfo -tam
mount /dev/vg00/lvol12 /mnt
take a look - if it isn't needed - then remove it with the lvremove command - then reallocate that space to another lvol...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 04:57 PM
10-27-2005 04:57 PM
Re: how to check the size of vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 05:11 PM
10-27-2005 05:11 PM
Re: how to check the size of vg00
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=865252
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=97821
Try to assign points to replies..
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 05:38 PM
10-27-2005 05:38 PM
Re: how to check the size of vg00
You can extend the root filesystem online with fsadm, but that procedure's tedious and fraught with risks as the system could panic if the appropriate patches aren't present.
regards!