- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: calculate free 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
02-03-2010 03:39 AM
02-03-2010 03:39 AM
calculate free space
Dear Sir
How to calculate the free space available , to increase/extend a filesystem in HP-UX
Please Help
Regards
Ajin.S
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 03:49 AM
02-03-2010 03:49 AM
Re: calculate free space
That said, you also probably need to look at lvextend and vgextend and newfs or extendfs.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 03:55 AM
02-03-2010 03:55 AM
Re: calculate free space
(1)# bdf ( to check free space of LV )
(2)For VG
#vgdisplay -v /dev/vg-name
free space in MB = PE size * free PE
(3)To extend LV ... if there no online JFS
umount /mount-point
#lvextend -L final-size MB /dev/vg/lv
#extendfs -F vxfs /dev/vg/rlvol
#mount /dev/vg/lv /mount-point
(4)If you have online JFS ...
# fsadm -b
No need to unmount the LV
Regards,
Subodh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 03:57 AM
02-03-2010 03:57 AM
Re: calculate free space
To calculate the "unused" space in the Vg, use vgdisplay as below:
# vgdisplay vg_name
PE Size (Mbytes) 4 <<<<<<
Total PE 8680
Alloc PE 1000
Free PE 7676 <<<<<<
So the free space available in this Vg is:
Free space = PE Size * Free PE
Free space = 4 * 7676 mb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 04:01 AM
02-03-2010 04:01 AM
Re: calculate free space
see for free PE and PE size
and do free PE * PE size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 04:02 AM
02-03-2010 04:02 AM
Re: calculate free space
if you want to check how much space is free in a already mounted filesystem use bdf, see that under the column avail which is in Kb. To know how much space you still have into the volume group multiply PE Size (which is in Mb) for Free PE that you see by vgdisplay. Then extend first lvol by lvextend and then filesystem by extendfs (with filesystem unmounted) or by fsadm (with filesystem mounted, it depends on having OnlineJFS installed).
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 04:39 AM
02-03-2010 04:39 AM
Re: calculate free space
Step 2:-vgdisplay -v /dev/vg_name -> from this output look for (Free PE * PE Size) = Free Space left
Step 3:-lvextend -L
Step 4:-fsadm -F vxfs -b
(using fsadm -> you extend file system ONLINE)
If "don't have ONLINE JFS" use extendfs
Need to umount / downtime required
umount /File_System
lvextend -L
extendfs -F vxfs /dev/vgXX/rlvolXX -> raw logical name
mount -a
Finally but important take look man pages for below commands for more information
man bdf
man vgdisplay
man lvextend
man fsadm
man extendfs
man mount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2010 09:29 AM
02-03-2010 09:29 AM
Re: calculate free space
I have assigned points to 6 of 28 responses to my questions.
If you satisfied with the answer and your problem got solved then please make a habit to assign points,
Those people who give there valuable time for your problem they should expect some apparition from you in terms of points.
To know how to assign points please go through the below link
http://forums13.itrc.hp.com/service/forums/helptips.do?admit=109447627+1256027208667+28353475#33
Thanks