- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reducing fs size.
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-10-2004 06:26 AM
02-10-2004 06:26 AM
reducing fs size.
Is it possible to reduce the size of a filesystem without having to recreate it?
I know that it's possible to increase it on the fly with online JFS, but never reduce it.
If possible, please include instructions.
Thanks again,
Remy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:31 AM
02-10-2004 06:31 AM
Re: reducing fs size.
Yes - with OnLine JFS & the proper vxfs version you can reduce FS size. But make sure you back it up first - just in case.
1) Defrag/Reorg the FS - twice
fsadm -F vxfs -D -d -E -e /mnt_point
2) Resize the FS
fsadm -F vxfs -b XXXXM /mnt_point
where XXXX = the new smaller size in MB - the M is to denote MB
3) Reduce the LV
lvreduce -L XXXX /dev/vg_name/lv_name
where XXXX = the *same* MB size as the fsadm command.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:34 AM
02-10-2004 06:34 AM
Re: reducing fs size.
You can reduce the logical volume the filesystem is sitting on.
Be careful if you squeeze it too much data will be damaged.
Instructions:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=235198
My search:
http://us-support.external.hp.com/emse/bin/doc.pl/sid=d4445c3d10f1a66dcb?todo=search&searchtext=lvreduce+&x=2&y=11&searchcriteria=allwords&searchtype=SEARCH_FORUMS&searchcategory=ALL&rn=25&presort=rank
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-10-2004 06:36 AM
02-10-2004 06:36 AM
Re: reducing fs size.
Have a good backup (verified) of your data before you attempt to reduce.
It is possible to reduce the filesystem with OnlineJFS. Following are the instructions. Say /mount and /dev/vg01/lvol1 are the filesystem and the logical volumes respectively. You want to reduce /mount from 1000 MB to 900MB.
#fsadm -b 900m /mount
(make sure it is successful)
#bdf /mount
#lvreduce -L 900 /dev/vg01/lvol1
You can try defragment the filesystem if it doesn't work, but there isn't much guarantee though.
If this is to work best, you will need to have latest patches. It will work almost 100% on all Version 4 filesystems.
Without OnlineJFS, you cannot reduce the filesystem. You will need to backup the data, recreate the logical volume and then restore.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:41 AM
02-10-2004 06:41 AM
Re: reducing fs size.
Thanks again,
Remy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:43 AM
02-10-2004 06:43 AM
Re: reducing fs size.
Absolutely.
The FS can *never* be larger than the LV or corruption is certain.
That's why you grow the LV first, but shrink the FS first.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 06:59 AM
02-10-2004 06:59 AM
Re: reducing fs size.
Filesystem is always on 'top' of the logical volume. So to extend, we extend the logical volume first and then the filesystem. To reduce, we reduce the filesystem and then the logical volume.
-Sri