- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shrinking a LVM file system?
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
03-27-2006 10:10 AM
03-27-2006 10:10 AM
OnlineJFS installed. I *thought* there
was a way to shrink a file system, but
sam(1m) only has a menu selection for
*growing* a file system, not shrinking one.
Any ideas for how I can shrink my LVM file
system without having to save off all the
data first?
Thanks in advance...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 10:18 AM
03-27-2006 10:18 AM
Re: shrinking a LVM file system?
You run the command fsadm -F vxfs -b newsize /mountpoint and if newsize id smaller than the existing size (in 1KB sectors) then the filesystem size id reduced. You can even do this "on the fly". You can then use lvreduce to reduce the size of the LVOL.
There is a "gotcha" and that depends upon how the space on the end of the LVOL has been used. You may also need to use fsadm to defrag the filesystem before you can shrink the filesystem and then it still a "maybe".
Man fsadm_vxfs, lvreduce for details.
Finally, make sure that you have a known good backup of this filesystem before doing any of this -- so that you won't need it. Growing filesystems has never been a problem but shrinking (especially on older version of vxfs) was very problematic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 11:23 AM
03-27-2006 11:23 AM
Re: shrinking a LVM file system?
lazy and just use sam(1m). Oh well...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 03:54 PM
03-27-2006 03:54 PM
Solutionfsadm -b
Then reduce the logical volume:
lvreduce -L
With 11.11 - you shouldn't have to worry - fsadm takes care of moving files if they are in the extents you are reducing - it will even abort if a file is locked and can't be moved....
Still, as Clay says, you should have a good backup just in case (I have been reducing on the fly for years with not one failure - but you know Murphy - if I didn't have a good backup....).
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 08:47 PM
03-27-2006 08:47 PM
Re: shrinking a LVM file system?
for the data points (ie, you've used it
for years and never got burned).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 08:47 PM
03-27-2006 08:47 PM