- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Decrease /opt and increase /usr
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
08-30-2005 07:31 PM
08-30-2005 07:31 PM
Please help me to resolve the following problem:
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 4534272 3837400 691456 85% /
/dev/vg00/lvol1 295024 57816 207704 22% /stand
/dev/vg00/lvol4 3072000 1379240 1680920 45% /var
/dev/vg00/lvol7 1241088 1189024 51680 96% /usr
/dev/vg00/lvol6 7028736 4431000 2577472 63% /opt
/dev/vg00/lvol5 20480 2360 17984 12% /home
- I got OnlineJFS installed:
# swlist |grep -i jfs
B5118CA B.11.11 HP OnLineJFS
- I have defrag my /opt with:
# fsadm -F vxfs -D -E -d -e /opt
Succesfully!
Now when i want to reduce size of /opt for 1000MB it says:
# lvreduce -L 1000 /dev/vg00/lvol6
The Logical Volume has a mounted filesystem on it.
Logical volume "/dev/vg00/lvol6" is not reduced.
How can i make to reduce lvol name /opt for 1000MB and increase /usr with that 1000MB's?
Is there any way to do it in SAM ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 07:45 PM
08-30-2005 07:45 PM
Re: Decrease /opt and increase /usr
Increasing an filesystem online is OK but I doubt if there is an reliable way to reduce a filesystem without risk of loosing data.
The most reliable way, in your case, to change the allocation for vg00 is to use Ignite but, of course this needs some downtime.
You can also do temporary "workaround", moving some data from /usr to /opt and create links in /usr.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 07:52 PM
08-30-2005 07:52 PM
SolutionIf you still have an issue with the filesystem mounted then you will need to do this in single user mode. with just the /usr filesystem mounted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 07:56 PM
08-30-2005 07:56 PM
Re: Decrease /opt and increase /usr
Definitely you can do it with Ignite, especialy reducing the /usr. Make Ignite tape with -I option. Boot from tape, choose HP Installation, go to Filesystem tab and make appropriate change on /opt and /usr.
regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 08:01 PM
08-30-2005 08:01 PM
Re: Decrease /opt and increase /usr
I dont want to make symbolic links ...
Please do write only practicable solutions :)
I do got Ignite-UX server ... but how can i made above problem resolved?
Brgds,
Sergej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 08:26 PM
08-30-2005 08:26 PM
Re: Decrease /opt and increase /usr
If you want to try reducing the filesystem/logical volume online you must first resize the filesystem using the "-b" option in fsadm, before trying to reduce the logical volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 08:31 PM
08-30-2005 08:31 PM
Re: Decrease /opt and increase /usr
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
08-30-2005 08:36 PM
08-30-2005 08:36 PM
Re: Decrease /opt and increase /usr
Thnx to Leif Halvarsson!
Brgds,
Sergej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 08:41 PM
08-30-2005 08:41 PM
Re: Decrease /opt and increase /usr
fsadm -b"new_size"M /dev/vgxx/xxxx
lvreduce -L "new_size"M /dev/vgxx/xxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2006 12:27 AM
11-13-2006 12:27 AM
Re: Decrease /opt and increase /usr
The right order was/is:
1) fsadm -F vxfs -b 6144m /opt
2) lvreduce -L 6144 /dev/vg00/lvol6
3) lvextend -L 1024M /dev/vg00/lvol7
4) fsadm -F vxfs -b 1024m /usr