- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- extend of /opt in a LVM
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
02-05-2003 11:38 AM
02-05-2003 11:38 AM
I need to resize (also "extend") the /opt partition which resides on (or in) a volume group. I work on a hp 9000 with hp-ux 10.20. Is there a "easy" and _secure_ way to do this ?
Thanks for help.
Nico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:43 AM
02-05-2003 11:43 AM
Re: extend of /opt in a LVM
Do you have onlineJFS??
If you do not have onlineJFS then you must boot in single user mode to increate /opt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:44 AM
02-05-2003 11:44 AM
Re: extend of /opt in a LVM
Unless you have the OnlineJFS product, which lets you expand on the fly, you have two choices:
1) Shutdown to single user mode, lvextend, extendfs.
2) If you have space, create a /newopt of the desired size, copy /opt contents into /newopt, switch the mounts in /etc/fstab, and reboot.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:44 AM
02-05-2003 11:44 AM
SolutionEasy way. Yes if you have Vxfs filesystems and have OnlineJFS installed. Otherwise, you will need to boot the system into single user mode and then extend it.
First you need to determine if your volume group (I assume it is vg00) has enough space. Look at vgdisplay vg00 and note down your PE size and Free PE. Multiply them and you will get free space. If your vg00 is mirrored, then devide the Free PE with 2 and you will get approximate free space. Do a 'bdf /opt' and note down the logical volume say /dev/vg00/lvol6.
Shutdown the system, interact with ISL, get into single user mode by type "hpux -is /stand/vmunix". Once you are in single user mode do the following.
#mount /usr
#mount /var
#mount /tmp
#lvextend -L new_size_in_mb /dev/vg00/lvol6
(new_size_in_mb is the total desired size not the increment)
#extendfs /dev/vg00/rlvol6
#init 3
If you get any errors in lvextend, this could be due to insufficient space and mirror inavailability. If you can post your setup, then we will detail it further.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:47 AM
02-05-2003 11:47 AM
Re: extend of /opt in a LVM
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 11:53 AM
02-05-2003 11:53 AM
Re: extend of /opt in a LVM
I will try to make this in single-user lode, cause the whole filesystem is HFS ! But I think it's maybe more interessant to upgrade to JFS (maybe with a backup of the system, then "convert" to JFS) and then extend the partition; or ?
Nico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:00 PM
02-05-2003 12:00 PM
Re: extend of /opt in a LVM
The first suggestion I give is to upgrade it to 11i if possible. Then you can use vxfsconvert utility to convert the hfs file systems to vxfs. 10.20 is obsolete and you should be planning for next version and it's better to go for 11i.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:08 PM
02-05-2003 12:08 PM
Re: extend of /opt in a LVM
Nico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:14 PM
02-05-2003 12:14 PM
Re: extend of /opt in a LVM
-Sri
PS: No more points for me. You assigned enough already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:14 PM
02-05-2003 12:14 PM
Re: extend of /opt in a LVM
H50 will only run 11.0 in 32 bit mode.
See:
http://devresource.hp.com/STK/serversupport.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:29 PM
02-05-2003 12:29 PM
Re: extend of /opt in a LVM
Nico