- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Increasing size of /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
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
10-23-2000 12:49 AM
10-23-2000 12:49 AM
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 12:57 AM
10-23-2000 12:57 AM
SolutionUse sam for this
Extend your volume group (vg00) with the new disk, and then extend your /opt filesystem.
You need to kill all running processes making use of /opt if you do not have then "Online JFS" product.
Just do "fuser -c /opt" to obtain PID's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:03 AM
10-23-2000 01:03 AM
Re: Increasing size of /opt
yes that is possible.
My suggestion:
Create LVM info to the unused disk: pvcreate -f /dev/rdsk/c?t?d0
Add the unused disk to vg00: vgextend vg00 /dev/dsk/c?t?d0
Move the extents to the new disk: pvmove -n /dev/vg00/lvol? /dev/dsk/c??t??d0 /dev/dsk/c?t?d0
(/dev/dsk/c??t??d0 is the existing disk at vg00 and /dev/dsk/c?t?d0 is the new disk)
Increase the logical volume: lvextend -L
Next is to unmount /opt. This can be difficult because no proccess has to be on this filesystem. check with fuser /dev/vg00/lvol?
Or boot into single user mode.
Umount /opt: umount /opt
Extend the filesystem: extendfs -F
fs_typ can be either hfs or vxfs, check with:
fstyp /dev/vg00/lvol?
Remount /opt:
mount /opt
Of course you can also create a new vg with your unused disk but pvmove cannot move across vg's.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:17 AM
10-23-2000 01:17 AM
Re: Increasing size of /opt
Thanks for the answers.
Even I want to increase size of /usr,which has sam executable and pvmove . Can I increase the size of /usr also?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:19 AM
10-23-2000 01:19 AM
Re: Increasing size of /opt
In addition to the suggestions already given, divide and conquer. You could create a new mount point on your unused disk which represents some large subdirctory of /opt. /opt/perf can be a good choice if you are running and keeping large amounts of Glance/Measureware data.
To copy the data, do:
# cd /opt
# find . | cpio -pudlmv /opt/perf
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:27 AM
10-23-2000 01:27 AM
Re: Increasing size of /opt
for /usr i would do:
increase lvol: lvextend -L
Umount /usr OR boot into single user mode.
extendfs -F
Remount /usr or boot into multiuser mode.
Then do: pvmove -n /dev/vg00/lvol? /dev/dsk/c??d??t0 /dev/dsk/c?d?t0
(you can use pvmove on the fly - no umount required).
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:27 AM
10-23-2000 01:27 AM
Re: Increasing size of /opt
/usr as / must be increased with reboot, and hpux -lm at ISL prompt, because there are some critical processes running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2000 01:38 AM
10-23-2000 01:38 AM
Re: Increasing size of /opt
Thanks for the answers.
Regards,
Vinayak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2000 03:09 AM
10-24-2000 03:09 AM
Re: Increasing size of /opt
you can use fuser -kuc /opt, for kill all process of opt
then run SAM and increse size of opt