- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reducing filesystem and lvol size without data...
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
08-21-2008 09:37 AM
08-21-2008 09:37 AM
reducing filesystem and lvol size without data loss
If I have 60% free space in the filesystem, can I reduce the size with fsadm (I have onlineJFS) down to half the original size, then lvreduce off the last vdisk?
I started out with lvol1 with 1 vdisk, then had to add a vdisk and grow the filesystem. Now I have reduced the size of the data again, and no longer need the extra space. What I am hoping to do is free up a whole vdisk (can do this by reducing the filesystem), lvreduce off it and reclaim the space on the EVA.
Does the fsadm to reduce it take the space from the end of the filesystem? I assume it handles reallocating any data sitting after the new end of filesystem? I dont really understand how vxfs allocates extents - is it contiguous? if not, do I risk data loss this way?
Sorry for the long winded explaination :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 09:46 AM
08-21-2008 09:46 AM
Re: reducing filesystem and lvol size without data loss
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 10:04 AM
08-21-2008 10:04 AM
Re: reducing filesystem and lvol size without data loss
Yes, 'fsadm' can be used to decrease the size of a VxFS filesystem. Threeafter, you can downsize the encapsuling container --- the logical volume --- with 'lvreduce'. You can use 'pvmove' to move physical disk extents belonging to the logical volume from one physical volume to another, ultimately (if necessaary) allowing you to 'vgreduce' an entire physical volume out of the volume group.
The 'fsadm' manpages note:
/* begin quote */
In a Version 3 or above disk layout, if there are file system resources in use in the sectors being removed, fsadm relocates those resources to sectors staying within the resized file system. The time needed for relocation depends on the number of blocks being moved.
In older disk layouts, file system structural components are fixed, so reducing the size of a file system fails if there are file system resources in use in the sectors being removed. In that case, a reorganization (using fsadm -e) can free busy resources and allow shrinking the file system. If there are still file system structural components within the area to be removed, you must upgrade the file system to a Version 3 or above disk layout to do a resize (see vxupgrade(1M)).
/* end quote */
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 12:07 PM
08-21-2008 12:07 PM
Re: reducing filesystem and lvol size without data loss
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 02:47 PM
08-21-2008 02:47 PM
Re: reducing filesystem and lvol size without data loss
So I would advise one of two alternatives. To run fsadm -e -d until it shows no defragmentation, or to make a new lvol and copy the data over.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 03:00 PM
08-21-2008 03:00 PM
Re: reducing filesystem and lvol size without data loss
VxFS filesystems of layout version 3 (or earlier) often required defragmentation before they could be shrunk in size. Filesystems layout versions later than three (3) should not suffer this problem.
You can determine the layout version with:
# fstyp -v /dev/vgNN/lvolX
Regards!
...JRF...