Operating System - HP-UX
1829390 Members
3237 Online
109991 Solutions
New Discussion

Extending the root volume group

 
SOLVED
Go to solution
u856100
Frequent Advisor

Extending the root volume group

Gurus,

I haven't tried this yet, but does anyone know whether it is possible to extend vg00, post installation of the core HP-UX operating system? I was wondering whether this is restricted to this specific vg.

thanks in advance

John
chicken or egg first?
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Extending the root volume group

Hi:

Sure, you can extend vg00 - you would have to able to do that in order to mirror the root drive. The gotcha's are the you can't extend (at least not easily) the /, /stand and primary swap lvols because these must me contiguous.
If it ain't broke, I can fix that.
Krishna Prasad
Trusted Contributor

Re: Extending the root volume group

The answer is well it depends.

There are logical volumes that you can extend if you used lvm to partion vg00.

There are some logical volumes in vg00 that must be contigous like /stand.

The next question is do you have on-line JFS installed. This will allow you to extend logical volumes like /opt and /var without having to go into single user mode.
Positive Results requires Positive Thinking
Helen French
Honored Contributor
Solution

Re: Extending the root volume group

Hi John,

Extending root volume group(vg00) is not a problem at all. You have to add the new disk and extend the VG as you do it for any other VG in the system.

# vgextend /dev/vg00 /dev/dsk/cxtxdx

You have to pvcreate the disk before doing this.

It will be the normal steps, if you are extending the LVs except root, swap and stand.

HTH,
Shiju
Life is a promise, fulfill it!
harry d brown jr
Honored Contributor

Re: Extending the root volume group

AsClay said, you can extend vg00, but if you need to extend "/" or "/stand" then you need to perform a make_recovery, and then use the backup to rebuild your system with larger "/" or "/stand". If you do need to extend "/" or "/stand" then please use the -A option of make_recovery, and do two of them, plus make sure you do a check_recovery, additionally, I'd do two data backups of non-VG00 disks - a good precaution!

live free or die
harry
Live Free or Die
James R. Ferguson
Acclaimed Contributor

Re: Extending the root volume group

Hi:

You can 'vgextend' vg00 and/or 'lvextend' some of the logical volumes on vg00. If you have Online JFS, your task will be easier than without. The '/', '/stand' [which is an HFS filesystem] and primary swap logical volumes must be contiguous and their expansion can be done via tedious methods if absolutely necessary, but a far better approach is to re-Ignite vg00 from a 'make_tape_recovery' tape.

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: Extending the root volume group

Hi John,

If by extending root vg, vg00 you mean whether you can add new disk, add mirrors etc, you can do that. you can do everything that you can do with any other vg. The only thing that you cannot do is extend "/, /stand and primary swap on vg00" You can extend the other filesystems on this vg, but you may need OnlineJFS or reboot in single user mode. To extend the size of /, /stand and primary swap you'll have to either use an ignite backup or reload the OS and resize the three filesystems mentioned above.

Hope this helps.

Regds
Deshpande Prashant
Honored Contributor

Re: Extending the root volume group

HI
You certainly can extend the volume group vg00.
If it is mirrored currently prefer adding two disks.
For extending the lvols in vg00, you will have to be careful as some (/, /stand and swap) will need more planing and execution.

HTH

Prashant Deshpande.
Take it as it comes.
Josh_13
Super Advisor

Re: Extending the root volume group

i've extended swap using same and it gave a warning that it should be contiguous when you make the added space, but the thing is that you can't extend what you have, you need to make new space used by the same logical volume.

ie:
instead of extending: /
you make: /2
which is used by the system as if it is the same as: /

you might want to run "du -x /" in the command line to see if there is anything large to move/delete and regain space.