- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Descrease filesystem 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
07-18-2005 10:45 PM
07-18-2005 10:45 PM
Descrease filesystem size
1. Defragment filesystem : fsadm -E /mountpoint
2. lvreduce ....
3. fsadm -b
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 10:49 PM
07-18-2005 10:49 PM
Re: Descrease filesystem size
If you shrink the container that holds the file system with lvreduce, you're going to lose data. If you do lvreduce (I can't remember) at all, it would have to be after the fsadm.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 10:51 PM
07-18-2005 10:51 PM
Re: Descrease filesystem size
1. fsadm -E /mountpoint
2. fsadm -b
3. lvreduce ...
Correct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 10:53 PM
07-18-2005 10:53 PM
Re: Descrease filesystem size
Also check this post:
http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=582409
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 10:55 PM
07-18-2005 10:55 PM
Re: Descrease filesystem size
Yes, that's correct:
defrag
fsadm
lvreduce
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:02 PM
07-18-2005 11:02 PM
Re: Descrease filesystem size
Be on the save side. Create a copy on tape or if you have enough filestore, create a online tar/cpio archive before reducing the volume.
The commands are correct, but the last time I preformed this I got a corrupt filesystem.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:08 PM
07-18-2005 11:08 PM
Re: Descrease filesystem size
I just wanted to check. I'm not sure whether I would really do it.
Thanks for the answers !
Cheers,
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:14 PM
07-18-2005 11:14 PM
Re: Descrease filesystem size
To be safe - I would reduce during your maintenance window - not during the day.
IE - during a backup - and to be safe - I would have SAP/Oracle down.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 11:29 PM
07-18-2005 11:29 PM
Re: Descrease filesystem size
You should definitely check the filesystem version and fsadm patch levels before the fsadm call.
root@xxxx:/tmp>fstyp -v /dev/vg00/rlvol15
vxfs
version: 4
if this doesn't print out Version 4 or 5, You might want to think twice on a sapdata filesystem.
florian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:01 PM
07-19-2005 05:01 PM
Re: Descrease filesystem size
If you decide to apply the procedure, don't do it with SAP running. Your DB will crash when reorganization is running !
Only a remark
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:07 PM
07-19-2005 05:07 PM
Re: Descrease filesystem size
If you have OnlineJFS. do following steps.
1. fsadm -F vxfs -d -D -e -E /mountpoint
2. fsadm -F vxfs -b 4096000 /mountpoint
3. lvreduce -L 4096 /dev/vg00/lvol12
Note:
-b with new fs size in KB
-L with new fs size in MB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2005 09:09 AM
07-23-2005 09:09 AM
Re: Descrease filesystem size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2005 02:16 PM
07-23-2005 02:16 PM
Re: Descrease filesystem size
1. save all the files and directories (tape or another disk)
2. Un-mount the lvol
3. lvremove the lvol
4. Re-create the lvol in the size you want
5. newfs the lvol
6. mount the new filesystem
7. Restore your data
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2005 05:35 AM
07-24-2005 05:35 AM
Re: Descrease filesystem size
with the Online JFS product you can shrink the filesystem even if the filesystem is mounted.
Anyway it is the best thing to backup all data before because it always is dangerous to shrink. I remeber something about the filesystem version, you should have the 3.3 or 4 version as Bill and Florian pointed out.
The good order is
fsadm -E /
fsadm -b /
lvreduce -L
Best regards,
Fabio
P.S.: a great feature of this forum is to assign points and it is a good to know if the ITRC people helped you or not (it is an etiquette of this forum). I think people helped you and you consider this forum very useful since you opened many threads. So please remember to assign points because 1/165 is not a great result. Thanks for your contribution and good enjoy!