- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reducing /opt 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
05-23-2001 11:17 AM
05-23-2001 11:17 AM
reducing /opt file system
Need to be in single user mode? Need to lvremove/lvcreate? This is a 10.20 system using the hfs filesystem.
p.s. I miss MPE/ix on a daily basis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 11:41 AM
05-23-2001 11:41 AM
Re: reducing /opt file system
OK, your're dealing with an hfs filesystem so your options are much more limited than with a vxfs one.
Backup the data contained in the logical volume you want to reduce. You cannot assume that an 'lvreduce' will not destroy extents containing useful data. You will need to reload the filesystem (mountpoint) after its reduction.
You will either want to do this in single user mode (with the filesystem unmounted) or use 'fuser' (see man pages) to find and kill all users and processes using the filesystem to be reduced.
If I understand your whole question correctly; if you have logical volumes, as for instance:
/opt/apps mounted on /dev/vg01/lvol
/opt/dbfiles mounted on /dev/vg01/lvol2
...and you merely want to reduce the size of lvol2, then you would only need to backup and restore /opt/dbfiles.
As an aside, it might be very worthwhile converting your filesystems from hfs to vxfs (aka "JFS") ones. With vxfs file systems you can dynamically reduce sizes without backup and restorarion of the data.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 11:46 AM
05-23-2001 11:46 AM
Re: reducing /opt file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 12:51 PM
05-23-2001 12:51 PM
Re: reducing /opt file system
lvreduce /opt mounted on /dev/vg01/lvolx, and it won't disturb my other /opt mountpoints, like /opt/apps mounted on /dev/vg01/lvol2 or
/opt/dbfiles mounted on /dev/vg01/lvol3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 01:09 PM
05-23-2001 01:09 PM
Re: reducing /opt file system
To answer your last question, those filesystems will essentially be unaffecred.
You need to unmount those mounted below /opt/first. Then do your rebuild on the /opt filesystem. Next mount /opt. Then mkdir /opt/apps and mkdir /opt/dbfiles.
If you restore /opt from backup then the mountpoints will be created for you. If you must recreate the mountpoint dirs, make sure
that the mountpoint permissions are not too restrictive (e.g. 700 and owned by root). You probably want 755 or 750.
You can then mount /opt/apps and /opt/dbfiles and you're back.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2001 01:39 PM
05-23-2001 01:39 PM
Re: reducing /opt file system
I must recall that reducing HFS file system requires
recreating it. So, the whole procedure should be as follows.
1. Go into single user run level,
2. Do backup of /opt file system,
3. umount /opt in the case it would be still mounted (very likely) - of course if a directory within /opt file system is
the mount point fot another file system, it must be umounted first,
4 lvreduce -L size_in_MBs /dev/vg00/lvol#
(# means a proper value)
5 newfs -F FS_type /dev/vg00/rlvol#
6. mount /dev/vg00/lvol# /opt
7. recover /opt file system from backup,
8. reboot
Pretty easy.
Asconcerns the FS_type in the step 6, follow advices given in the previous answers, if possible.
Rgds.