- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: resize /opt
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
тАО05-01-2011 01:46 AM
тАО05-01-2011 01:46 AM
i am using hpux11iv3 DC OE with online jfs. i have resize (reduce) /opt using smh. but i see its only reduce file system not actual size. how can reduce size as well. even now if i try to increase file system as before. showing error.
help.
mrmo07
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 03:19 AM
тАО05-01-2011 03:19 AM
Re: resize /opt
but there are two operations 1) lvreduce /lventend @ lvol level
2) fsadm -F vxfs -b <>M /opt @ fs level.
to effect the bdf output.
Just check what you have done.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 03:35 AM
тАО05-01-2011 03:35 AM
SolutionWhat Manix mentioned is the procedure to extend your file system.
But if I read your question correctly you are trying to reduce a file system. Although this is a supported feature of OnlineJFS it is highly recommended to make a backup of the data on your file system before reducing it (Murphy's law you know...).
The steps to reduce a file system are:
1. defrag your file system (not required, but in my opinion recommended):
# fsadm -d -v -e /filesystem
2. reduce your filesystem:
# fsadm -b 3072M /filesystem
3. reduce the logical volume:
# lvreduce -L 3072 /dev/vg01/lvolx
As it seems that you have already successfully reduced your file system you should only need the 3rd step (reducing your logical volume). This can probably also be done using SMH, but I cannot help you with the procedure as I am not that familiar with SMH.
If that does not work it please provide the following information:
# bdf
# fstyp /dev/vg01/lvolx
# lvdisplay -v /dev/vg01/lvolx
Hope that helps,
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 03:46 AM
тАО05-01-2011 03:46 AM
Re: resize /opt
not advisory to reduce the opt filesystem.
can use
fsadm -F vxfs -b size[M] /opt
regards
MC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 04:56 AM
тАО05-01-2011 04:56 AM
Re: resize /opt
same logic for each of them you need to tell
the fsadm the final count to eat up !!
yes defrag is good thing to do to reduce.
Looks what quoted for each of them reduce/extend.
1) lvreduce / lventend @ lvol level
2) fsadm -F vxfs -b <>M /opt @ fs level.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 05:55 AM
тАО05-01-2011 05:55 AM
Re: resize /opt
You are right the steps involved are the same (reduce/extend the file system and reduce/extend the logical volume). But I was always told that the order is different.
Extend:
1st: extend your logical volume (lvextend)
2nd: extend your file system (fsadm)
Reduce:
1st: reduce your file system (fsadm)
2nd: reduce your logical volume (lvreduce)
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 08:22 AM
тАО05-01-2011 08:22 AM
Re: resize /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2011 09:36 PM
тАО05-01-2011 09:36 PM
Re: resize /opt
#fsadm -f vxfs -b (size in mb) /opt
#lvreduce -L (size in mb) /dev/vg00/lvolx
#bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2011 01:17 AM
тАО05-02-2011 01:17 AM
Re: resize /opt
thanks all.