- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reduce filesystem
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
09-05-2006 04:07 AM
09-05-2006 04:07 AM
reduce filesystem
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 04:12 AM
09-05-2006 04:12 AM
Re: reduce filesystem
Option 1: With Online JFS
fsadm -F vxfs -n newsize /dev/vgXX/lvolYY
lvreduce -L newsize /mountpoint
Option 2: Without online JFS
You have to unmount file system before you run above steps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 04:14 AM
09-05-2006 04:14 AM
Re: reduce filesystem
Without OnlineJFS, you will need to unmount the filesystem; with OnlineJFS there is no need to unmount.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 04:21 AM
09-05-2006 04:21 AM
Re: reduce filesystem
need to reduce lvol4 to 600m (/datafile2 is mount point)
umount /datafile2
fsadm -F vxfs -n 600m /dev/vg05/lvol4
lvreduce -L 600m /datafile2
mount /datafile2
will this work?
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 04:22 AM
09-05-2006 04:22 AM
Re: reduce filesystem
Also, make sure that you do not commit the classic mistake of reducing the size of the LVOL then reducing the filesystem. If you take that path, the technical term for your filesystem's status is "toast".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 04:51 AM
09-05-2006 04:51 AM
Re: reduce filesystem
Make sure that you have all the latest patches installed for JFS and also you have free space to reduce the file system. check how much is it being used and how much free space available? You can defragment and then reduce it also to make sure it goes correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 08:53 AM
09-05-2006 08:53 AM
Re: reduce filesystem
Once the lvol is umount'ed, reduce the size (which destroys the filesystem), then run newfs to create an empty directory, mount the new filesystem and then restore the data.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 04:28 AM
09-06-2006 04:28 AM
Re: reduce filesystem
depending on the file system and how busy.
Option 1.
If You have enough disk space.
1. I create a new smaller file system with sam
2. cd /old
3. find . -print -xdev -print |cpio -pdmu /new
4. umount both file systems
5. change fstab
from something like:
/dev/vg04/lvol30 /old vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/lvol31 /new vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
to:
/dev/vg04/lvol30 /old vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/lvol31 /new vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
6. mount file systems.
Option 2.
If you don't have enough space to create a new file system and have mirrored drives, unmirror the file system. Create a new file system using the freed space. Then do the Option 1 steps. You need to asses the risk of doing the work without a mirrored copy (that what backups are for).
Option 3.
If your file system is a busy file system, which you can't unmount like /home you can do the copy during a low usage day. change /fstab and then do a quick scheduled reboot. This will minimize your downtime in single user mode and doing copy and change. This method will usually work fine for /opt /var /usr. These systems somewhat static except for logs.
Option 4.
If you have a busy data file systems, like an oracle database. You can create small file systems and move tablespaces on the fly without taking the system down. (We have done it). You need to be very familiar with oracle tools and commands, and use fuser and lsof liberally. But, I recommend taking scheduled down time and do the moves sanely. Less pressure and more likely to not make a bad mistake.
Good luck.