- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Defrag is not helping to free up unused 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-09-2009 07:55 AM
02-09-2009 07:55 AM
Defrag is not helping to free up unused space
HP-UX 11.11
#vxlicense -p
vrts:vxlicense: INFO: Feature name: HP_OnlineJFS [50]
vrts:vxlicense: INFO: Number of licenses: 1 (non-floating)
vrts:vxlicense: INFO: Expiration date: No expiration date
vrts:vxlicense: INFO: Release Level: 22
vrts:vxlicense: INFO: Machine Class: All
vrts:vxlicense: INFO: Site ID: 0
#bdf /opt
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 7700480 1919354 5427817 26% /opt
Tried following and completed succesfully. But still fsadm is failing.
6 fsadm -F vxfs -e -E /opt
7 fsadm -F vxfs -b 6512M /opt
8 fsadm -F vxfs -d -D -e -E /opt
9 fsadm -F vxfs -b 6512M /opt
fsadm -F vxfs -b 6512M /opt
vxfs fsadm: /dev/vg00/rlvol5 is currently 7700480 sectors - size will be reduced
vxfs fsadm: allocations found in shrink range, moving data
vxfs fsadm: cannot shrink /dev/vg00/rlvol5 - blocks are currently in use.
lvdisplay /dev/vg00/lvol5
--- Logical volumes ---
LV Name /dev/vg00/lvol5
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 7520
Current LE 235
Allocated PE 470
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Any way to get the free space removed from LV?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 09:10 AM
02-09-2009 09:10 AM
Re: Defrag is not helping to free up unused space
defragmentation does not free up space.
It insures that files are written contiguously, and not spread out in multiple locations.
This improves read performance down the line.
I believe the cause of the error above is you are trying to reduce the logical volume to much, Try a less drastic reduction and this will work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 09:21 AM
02-09-2009 09:21 AM
Re: Defrag is not helping to free up unused space
Interestingly, on 11.23, PHCO_38434 addresses the error "blocks are currently in use". There doesn't seem to be an equivalent patch for 11.11.
What JFS version are you running?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 09:38 AM
02-09-2009 09:38 AM
Re: Defrag is not helping to free up unused space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 10:13 AM
02-09-2009 10:13 AM
Re: Defrag is not helping to free up unused space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 10:23 AM
02-09-2009 10:23 AM
Re: Defrag is not helping to free up unused space
You might try quiesing the filesystem. Bootup into single user mode if necessary, mount the filesystem and try again.
Later versions of VxFS offer better chances of success, although a couple of defragmentation attempts might suffice.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:07 AM
02-09-2009 11:07 AM
Re: Defrag is not helping to free up unused space
Did you try my suggestion to quiesce the fileystem and/or run multiple defragmentations?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:28 AM
02-09-2009 11:28 AM
Re: Defrag is not helping to free up unused space
Also i cant dismount the file system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:34 AM
02-09-2009 11:34 AM
Re: Defrag is not helping to free up unused space
> i did not understand your "quiesing and/or multiple defragmentations".can you explain better?
I'm sorry. This means to make quiet. That is, if you could stop any processes using the filesystem you might be able to perform the size change.
> Also i cant dismount the file system.
In that case, I would try several defragmentation runs in succession.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:34 AM
02-09-2009 11:34 AM
Re: Defrag is not helping to free up unused space
Multiple defrags -- Run your command multiple times to see if you can get incrementally better results.
>>cant dismount the file system.
That kind of throws the quiesce request out the windows then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:43 AM
02-09-2009 11:43 AM
Re: Defrag is not helping to free up unused space
What is you filesystem layout version? If it isn't <4> try upgrading to that version; defragment again; and try your size reduction again:
# mkfs -F vxfs -m /dev/vg00/lvol5
See the manpages for 'vxupgrade(1M)'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 11:54 AM
02-09-2009 11:54 AM
Re: Defrag is not helping to free up unused space
#mkfs -m /dev/vg00/lvol7
mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=4,inosize=256,logsize=1024,nolargefiles /dev/vg00/lvol7 7720960
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 12:05 PM
02-09-2009 12:05 PM
Re: Defrag is not helping to free up unused space
Have you tried running multiple defragmentations and if so, does this gain you any ability to reduce the filesystem?
There may come a point, if you are determined to shrink this filesystem, that you should consider trying in single-user mode. If that doesn't work, and you *still* insist on resizing, either (1) backup the filesystem; 'lvreduce' the logical volume size; 'newfs' the filesystem and reload it; or (2) use Ignite to rebuilt and reconfigure the sizes of your mountpoints.
I fully understand that you have said that you "can't" quiet or otherwise unmount the filesystem. You may have to choose among your options, however.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2009 12:05 PM
02-09-2009 12:05 PM
Re: Defrag is not helping to free up unused space
If so, some process is holding the *inode* of the file. The space won't free up until the process dies/quits. You can use "lsof" to determine what process is holding the inode open. If you don't have "lsof" you can get it from any of the "HPUX Porting Archive", the URL address of which can be obtained by using Google and searching for "HPUX Porting Archive".