- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Expanding /opt and /usr on HP-UX 11.0
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
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
01-16-2001 04:31 PM
01-16-2001 04:31 PM
Expanding /opt and /usr on HP-UX 11.0
I have installed HP-UX 11.00 and assigned only .75 GB for /opt and /usr . We were not exepcting to install all these software . I am running out of space on both now , although I have unused space on my disk . The issue is that the OS wil not allow me to unmount either of them to expand . As they need to be re-mounted after the increase . I am using SAM . Thnak you in advance .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2001 04:52 PM
01-16-2001 04:52 PM
Re: Expanding /opt and /usr on HP-UX 11.0
1 Backup Your /opt & /usr on tape
2 Identify the lvol name of these filesystem
ex. /dev/vg00/lvol7 1303305 552504
620470 47% /usr
/dev/vg00/lvol8 1332405 692404
230470 49% /opt
3 Reboot to single user mode.
note: unmount /usr and /opt if possible
ex. umount /opt
umount /usr
4 Execute lvextend -L NNN /dev/vg00/lvoln
ex. lvextend -L 500 /dev/vg00/lvol7
note: -L 500 actual size in mb.
do the same for /lvol8
5 Execute extendfs -F vxfs /dev/vg00/rlvoln
ex. extenfs -F vxfs /dev/vg00/rlvol7
do the same for rlvol8
6 Mount /opt and /var
ex. mount /opt
mount /usr
7 Restore from tape (if necessary)
8 Execute reboot.
ex. shutdown -ry 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2001 07:39 PM
01-16-2001 07:39 PM
Re: Expanding /opt and /usr on HP-UX 11.0
If not, then your best bet is the previous answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 11:38 AM
01-17-2001 11:38 AM
Re: Expanding /opt and /usr on HP-UX 11.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 12:15 PM
01-17-2001 12:15 PM
Re: Expanding /opt and /usr on HP-UX 11.0
fsadm -F vxfs -b
...OR...
And this is what I have done at times...
At this point I rebooted to strictly single user, since nothing is really mounted at that point and then I extend all the filesystems the way I wanted, mounted them to check that they looked good...even went in and edited the /etc/fstab...and then rebooted. At this point I could then loadup all the rest of software and patches, etc.
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 12:27 PM
01-17-2001 12:27 PM
Re: Expanding /opt and /usr on HP-UX 11.0
-----
Determine volume group, logical volumes, and availability of free space:
grep /opt /etc/fstab
/dev/vg00/lvol4 /opt vxfs delaylog 0 2
grep /usr /etc/fstab
/dev/vg00/lvol6 /usr vxfs delaylog 0 2
vgdisplay -v vg00 | grep 'PE Size'
PE Size (Mbytes) 4
vgdisplay -v vg00 | grep 'Free PE'
Free PE 894
(894*4096=3,661,824 MB Free)
Procedure:
shutdown -ry 120
Interrupt boot process when prompted
enter bo
enter yes
ISL> hpux -lm
vgchange -a y vg00
lvextend -L
extendfs -F vxfs /dev/vg00/rlvol4
lvextend -L
extendfs -F vxfs /dev/vg00/rlvol6
reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 01:15 PM
01-17-2001 01:15 PM
Re: Expanding /opt and /usr on HP-UX 11.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 11:52 PM
01-17-2001 11:52 PM
Re: Expanding /opt and /usr on HP-UX 11.0
Use the following procedure :
# init 1
# fuser -k /dev/vg00/lvol?
# umount /usr
# fuser -k /dev/vg00/lvol?
#umount /opt
# lvextend -L
#lvextend -L < new size> /dev/vg00/lvol?
# mount -a
# init 4
Note: For checking the logical volume # of /usr and /opt use bdf command.
I hope it will works.
Thanks
Amir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 07:38 AM
01-18-2001 07:38 AM
Re: Expanding /opt and /usr on HP-UX 11.0
2. Determine the size you need for /usr and /opt. If size of vg00 is sufficient, Johns example will be fine. If not, you will need to put one or both filesystems in a different vg eg..vg01. The below example shows how to move /opt to vg01.
boot to single user mode
vgchange -a y vg00
vgchange -a y vg01
mount /usr
mount /opt
lvcreate -L (newsize_MB) -n lvol6 /dev/vg01
newfs /dev/vg01/rlvol6
mkdir /new_opt
mount /dev/vg01/lvol6 /new_opt
cd /opt
find . | cpio -pdmuxvl /new_opt
ensure all files are copied
umount /new_opt
rmdir /new_opt
modify /etc/fstab (make /opt point to the new vg and lv)
reboot
You can do this with /usr as well
Joe.....