- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HowTo Expand Volume Group size
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-2001 07:57 AM
10-23-2001 07:57 AM
/usr is at 88% and I want to expand it. I a lot od unallocated space on the drive. It is /dev/vg00/lvol7 and it is mirrored.
How do I do this?
I kinda understand what has to happen. It is just that I have never done it before.
Can you help?
Marty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:01 AM
10-23-2001 08:01 AM
Re: HowTo Expand Volume Group size
#extendfs -F vxfs /dev/vg00/rlvol7
but first you need to go down to single user mode to do this. sorry.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:02 AM
10-23-2001 08:02 AM
Re: HowTo Expand Volume Group size
find /usr
lvdisplay /dev/vg00/lvol(ofusr)
find the allocated PE and PE size
PE allocated to lvol = A1
PE Size = B
----------------------------
A1*B = ZMB lvol
vgdisplay vg00
Free PE's = A2
PE Size = B
-----------
A2*B= Free MB
lvextend -l A1+A2 /dev/vg00/lvol
fsadm -F vxfs -b (block size from bdf..) /usr
If you have online jfs,
otherwise extendfs when the filesystem is not mounted.. ie reboot if you're thinking of /usr/
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:04 AM
10-23-2001 08:04 AM
Re: HowTo Expand Volume Group size
lvextend -L
then use fsadm to increase the file system size
GoodLuck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:06 AM
10-23-2001 08:06 AM
Re: HowTo Expand Volume Group size
Second aside, you wouldn't have to go to single user mode if you have online jfs.
Third aside, /usr really isn't that full. Unless you anticipate loading a lot more stuff on it, you really don't need to at this time.
Good luck,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:07 AM
10-23-2001 08:07 AM
Re: HowTo Expand Volume Group size
88% is not too bad. I probably would not worry about it. However, if you wish, I think the below will do the trick.
To extend /usr you will need to get the system up in single user mode.
break boot sequence
type "boot pri isl"
type y to interact
type "hpux -is" #boots to single user mode
lvextend -L newsizingMB /dev/vg00/lvol7
extendfs /dev/vg00/rlvol7
reboot
That should do it. I would be sure to create a new ignite tape prior. **just to be safe. Plus a new ignite tape after.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:07 AM
10-23-2001 08:07 AM
SolutionIf you don't have OnlineJFS, then you will have to go to single user with /usr unmounted.
You then can do an lvextend and an extendfs.
Man lvextend and extendfs for the details. Both of those operations are quite easy but if this is your first time, I would certainly suggest that you use SAM.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:08 AM
10-23-2001 08:08 AM
Re: HowTo Expand Volume Group size
You need to boot in single user mode and then expand. As you mentioned you have a lot of space on the disks (should be on both the disks, the primary and the mirror). If you have OnlineJFS installed you can do it without getting it into single user mode.
1.Shutdown the system
2.Boot through IPL
ISL> hpux -is
3. Once you get into single user mode, you will not have anything other than / and /stand mounted. You need to use /sbin/lv* commands to do this for you.
#/sbin/lvextend -L new_size_in_MB /dev/vg00/lvol7
#extendfs /dev/vg00/rlvol7
The above should be the total new size. For ex., if you want to increase /usr from 1000 MB to 1500MB, it should be 1500MB. Mirroring will be automatically taken care if you have enough space on both the disks.
#mount /usr
#bdf /usr
Verify if it is of the new size.
#init 3 (or 4 depending on your initdefault in /etc/inittab)
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:10 AM
10-23-2001 08:10 AM
Re: HowTo Expand Volume Group size
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:13 AM
10-23-2001 08:13 AM
Re: HowTo Expand Volume Group size
Also, if you do need to increase it, the key is to first make sure there is enough space in vg00 to even increase it.
Do a vgdisplay vg00 and look at Free Extents. usually an extent is 4MB. This is how much you have to increase.
If its 0 and you still need more space in /usr, then you'll probably have to move all of /usr or part of it to another volume group, or add another disk to vg00. I'd just move part or all of /usr before adding another disk to vg00.
If you have space to increase /usr follow the instructions above (boot single user, lvextend, extendfs)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:21 AM
10-23-2001 08:21 AM
Re: HowTo Expand Volume Group size
$/sbin/shutdown -> for single user mode./sbin/mount -> will $mount /usr/sbin/lvextend ???L newsize /dev/vg00/lvol? -> extend the lvol size
$/sbin/umount /usr -> unmount
$/usr/sbin/extendfs /dev/vg00/rlvol? -> Extend file system size to lvol size
$/sbin/mount /usr -> mount
$/usr/sbin/reboot ???r -> reboots in multiuser mode.
Regards
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 08:25 AM
10-23-2001 08:25 AM
Re: HowTo Expand Volume Group size
$/sbin/shutdown -> for single user mode.
$/sbin/mount -> will mount /usr
$/sbin/lvextend ???L newsize /dev/vg00/lvol? -> extend the lvol size
$/sbin/umount /usr -> unmount /usr
$/sbin/extendfs /dev/vg00/rlvol? -> Extend file system size to lvol size
$/sbin/mount /usr -> mount /usr
$/sbin/reboot ???r -> reboots in multiuser mode.
Regards
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 10:02 AM
10-23-2001 10:02 AM
Re: HowTo Expand Volume Group size
Look at the thread below for extending /usr if you don't have online JFS.
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=6313377312d31518cc/screen=ckiDisplayDocument?docId=200000046785431
with online JFS, you can increase the size without a reboot.
Hope this helps.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2001 12:42 PM
10-23-2001 12:42 PM
Re: HowTo Expand Volume Group size
This Is a new box and we needed a little more space for apps. Both sides of the mirror are the same. and I still have 8Gb unused.
I used vgdisplay and lvdisplay to verify it was OK. Then I used SAM to get the job done.
All went fine.
Mirror is synced and I am rebooting it now just for fun.
Thanks again for all your help.
Marty