- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I reduce a file system 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
Discussions
Discussions
Forums
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
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
тАО12-06-2005 05:44 AM
тАО12-06-2005 05:44 AM
I ahve online JFS on my system and i need to reduce a file system size,
these are the details of file system:
/dev/vg01/vipin 7045120 4649684 2246779 67% /vipin
and I need to make it of 4GB,
Please suggest,
vipin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 05:47 AM
тАО12-06-2005 05:47 AM
Re: How can I reduce a file system size
You can take a backup of the filesystem or Create a ignite tape.
Then do the following
#fsadm -b "reduced size in KB" /mountpoint
Once the filesystem has been reduced, use the lvreduce to resize the logical
volume to the appropriate size:
#lvreduce -L "new size in MB" /logical_volume
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 05:47 AM
тАО12-06-2005 05:47 AM
Re: How can I reduce a file system size
Second - make sure backup worked...
Then:
fsadm -b 4096M /vipin
lvreduce -L 4096 /dev/vg01/vipin
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 05:48 AM
тАО12-06-2005 05:48 AM
Re: How can I reduce a file system size
If you want to make it 4GB then you will loose data since it is already showing as 67% full.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 05:56 AM
тАО12-06-2005 05:56 AM
Re: How can I reduce a file system size
You don't indicate what version of JFS you have. If you don't have version 3.3 or better you will probably not be successful dynamically reducing the filesystem size. If you wish to try, use:
# fsadm -b "KB_size_desired" /mountpoint
The guaranteed way is to backup your filesystem; 'lvreduce' the logical volume container in which the filesystem resides; create a new filesytem ('newfs'); and restore the backed-up data into it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 06:05 AM
тАО12-06-2005 06:05 AM
Re: How can I reduce a file system size
JFS B.11.23 The Base VxFS File System
OnlineJFS B.11.23.0505 Online features of the VxFS File System
this is too urgent and I dont have time to backed up.
should i run these command to reduce it and make the new size of 5GB.
#fsadm -F vxfs -b 5124M /vipin
#lvreduce -L 5124 /dev/vg01/vipin
suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 06:10 AM
тАО12-06-2005 06:10 AM
Re: How can I reduce a file system size
Well - that depends - if you had to re-create everything from scratch in /vipin - could you?
Do you at least have a backup of some sort?
You may also have to defrag it first:
fsadm -F vxfs -d -D -e -E /vipin
Myself - I have never lost data shrinking file systems - but we all have to listen to Murphy's law...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 06:27 AM
тАО12-06-2005 06:27 AM
Solution- Back it up. This is a must. You can hose your data doing an lvreduce. Maybe not today, but it only takes one time to force an unexpected resume update.
- Make sure it's a quiet filesystem (fuser clear).
- fsadm -F vxfs -d -D -e -E /vipin (I do this twice because it makes me feel better)
- fsadm -F vxfs -b 4096000 /vipin
- lvreduce -L 4096 /dev/vg01/vipin
If it's urgent, you might like to create a temporary lvol and move some of the least-used files/directories over, then link to them from /vipin. Performance may degrade some, but it'll buy you some time to get the lvol rebuilt in a sane manner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 06:54 AM
тАО12-06-2005 06:54 AM