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
тАО09-03-2009 12:36 AM
тАО09-03-2009 12:36 AM
/opt
is it possible to reduce /opt in linux ? server is Red Hat Enterprise Linux AS release 4 (Nahant Update 4).
tried to find "reduce /opt" from this forum but got too many unrelevant results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2009 12:47 AM
тАО09-03-2009 12:47 AM
Re: /opt
df -kh /opt
See if its a separate mount point.
The answer is probably yes. If it is its own mount point and it is not to full, you can reduce it.
resize2fs
That is the command you need to use.
Under rhel5 you can use this command to increase or reduce while the files system is in use.
You will need to umount /opt to do this under rhel 4.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2009 01:00 AM
тАО09-03-2009 01:00 AM
Re: /opt
for example, when we incr /opt first we do lvextend first then run ext2online.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2009 03:42 AM
тАО09-03-2009 03:42 AM
Re: /opt
When expanding, first lvextend, then resize2fs/ext2online.
When shrinking, first resize2fs, then lvreduce - and be very careful of not reducing too much!
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 08:30 AM
тАО09-04-2009 08:30 AM
Re: /opt
Shrinking logical volume is a risky move for losing data. It has never been recommended thing to do by experts. You must exercise cautions.
Anyway, to be on the safe side, if possible, you should consider to create a new logical volume, copy all your data to it then shrink your /opt file system and its logical volume or umount your current /opt file system then mount /opt on your new logical volume on which you have copied data.
Cheers