- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reduce 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
11-12-2001 11:30 AM
11-12-2001 11:30 AM
I have a 1 Gig vxfs filesystem that I would like to reduce to 50 MB. I'm not sure how to do this, but I think I would do the following:
umount /mnt/bi
lvreduce -L 50 /dev/vg01/datalvol1
mount /dev/vg01/datalvol1 /mnt/bi
When I run the lvreduce command, it says I will corrupt the file system. Is this expected, or am I way off?
Thanks again,
Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 11:32 AM
11-12-2001 11:32 AM
Re: Reduce file system?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 11:34 AM
11-12-2001 11:34 AM
Re: Reduce file system?
This thread would give you more detail
http://us-support.external.hp.com/cki/bin/doc.pl/sid=c1a5179a1d766fcd51/screen=ckiDisplayDocument?docId=200000024631672
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 11:36 AM
11-12-2001 11:36 AM
Re: Reduce file system?
i agree with harry. just backup and recreate.
Your problem might be caused by files that are in the file system. (bdf)
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 11:40 AM
11-12-2001 11:40 AM
Re: Reduce file system?
Unless you have Online JFS, shrinking a filesystem requires that your reload its data after performing a 'newfs' on the filesystem following the 'lvreduce' of the logical volume.
If you have Online JFS, you *may* be able to shrink the filesystem without rebuilding it and reloading its data. Reduction will fail, however, if inuse blocks reside within the area to be returned. Defragmentation (via 'fsadm') sometimes moves and frees sufficient space and improves the success rate.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 11:49 AM
11-12-2001 11:49 AM
Re: Reduce file system?
lvreduce will not maintain the integrity of a file system. Basically you are simply slicing off a chunk of disk space (quite a large chunk in your case) without regard for what was in the space that you are removing. With online JFS and using fsadm you have a chance for success but there's no guarantee it will work. You can forget about it working shrinking from 1GB to 50MB.
Always make a backup before adjusting the size of filesystems and logical volumes anyway, especially when shrinking. Simply reload it. No headaches!
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 11:50 AM
11-12-2001 11:50 AM
Re: Reduce file system?
Since you want to reduce it so small, try considering removing and recreating the LV and File system.
Backup the file system.
umount /mnt/bi
lvremove /dev/vg01/datalvol1
lvcreate -L 50 /dev/vg01/datalvol1
mkfs -F vxfs /dev/vg01/data1vol1
mount /dev/vg01/datalvol1 /mnt/bi
Restore the data.
Take a look at following discussion, for using fsadm to reduce file system with online JFS .
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x3b07c7af36b7d5118ff10090279cd0f9,00.html
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 12:11 PM
11-12-2001 12:11 PM
Re: Reduce file system?
You must back up the data first and then either lvreduce it or do a lvremove/lvcreate again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 12:18 PM
11-12-2001 12:18 PM
Re: Reduce file system?
# fsadm -F vxfs -d -D -e -E /mnt/db
# fsadm -F vxfs -b 51200 /mnt/db
but got the following error:
fsadm: cannot shrink /dev/vg01/rdatalvol1 - upgraded fs - inodes are currently
in use.
Not sure what it means, but ended up deleting/re-creating. Thanks for all your help.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 12:26 PM
11-12-2001 12:26 PM
Re: Reduce file system?
Umount the mount point first..did you..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 12:38 PM
11-12-2001 12:38 PM
Re: Reduce file system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 12:43 PM
11-12-2001 12:43 PM
Re: Reduce file system?
The failure to be able to dynamically reduce the VxFS filesystem has been commonly reported with Online JFS versions up to 3.3.
If you quiesce all utilization of the filesystem, and defragment first, then *sometimes* you can shrink. Online JFS version 3.3 is said to address the common failure to be able to shrink filesystems.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 12:54 PM
11-12-2001 12:54 PM
Re: Reduce file system?
swlist -l product
swlist -l fileset
swlist -l bundle
but none seems to show what version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 01:20 PM