Operating System - HP-UX
1834015 Members
2294 Online
110063 Solutions
New Discussion

addind disk in volume group

 
CCIL
Frequent Advisor

addind disk in volume group

I am having a volume group vg00 having two disk one is 4Gb & another one is 2 GB , i want to remove 2 GB hard disk & add 6 GB hard disk , how do i go about it . pls suggest the solution
Amit Vichare
7 REPLIES 7
T G Manikandan
Honored Contributor

Re: addind disk in volume group

If you created the VG00 if the default MAX_PE value then
I think you cannot do that without re-creating the VG,because the MAX PE would have been set to the largest disk on the system i.e. 4Gb on your system.

If you add the 6Gb hard disk then it can only add the 4GB from that disk.

Rajeev  Shukla
Honored Contributor

Re: addind disk in volume group

First see that you dont have any OS filesystem on 2GB and this disk is not the bootable if not then its very easy.
1. Add the 6GB disk to the vg00 and then move all the filesystems from 2GB to 4GB which can be done by either creating a dummy filesystems and then move the data across the filesystem and mount the newly create fileystems(of 6Gb ) on the old mout points.
Do all this in single user mode.

2. If your 2Gb disk is bootable which can be checked by lvlnboot -v command then its easy if you have mirror UX.
Do pvcreate -B and make this disk bootable mirror all data of 2gb disk to 6GB disk and then split the 2gb disk off.

3. If the 2gb disk is bootable and you dont have mirror-ux then this can be done by a make recovery tape.
But u have to be carefull and need extra precaution.
So let us know what is on 2GB disk.

Cheers
rajeev
T G Manikandan
Honored Contributor

Re: addind disk in volume group

Michael Tully
Honored Contributor

Re: addind disk in volume group

Once you have created a volume group with a disk, you cannot add a disk to that volume group that is larger.

disk 1 = 4Gb
disk 2 = 6Gb

Although you can actually add the disk, the useable portion of that disk will only be 4Gb. The extra 2Gb of the second disk will be wasted. You would be better served in creating an ignite tape, containing your first disk, and building a second OS onto the 6Gb disk. Once you have it up and running, trash the 4Gb disk and add it to the new volume group that contains the 6gb disk.
Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: addind disk in volume group


Hi,

I would prefer the ignite recovery (make_tape _recovery) Doc Id given by Manikantan says it all
never give up
M.Mekarnia
New Member

Re: addind disk in volume group

HI

I think you can remove the 2GB disk but first be sure that the os file systems been moved to the 4GB disk .Check where are your os file systems( /,/stand,/opt,/usr,/tmp..).Or you can do ignite tape with option -I and -A to include all the volume groups and be sure to have a full backup ready.And take out both disks 4 and 2GB and replace them by the 6GB disk.Boot from your ignite_tape interactively by invoking the -I option and you can change the MAX-PE that will reflect your new disk size keep on instaling the ignite tape and recover your date from your full backup .

Have nice exercise,

Anil C. Sedha
Trusted Contributor

Re: addind disk in volume group

Add the new 6 GB disk to your existing volume group using vgextend

vgextend /dev/vg00 /dev/dsk/newdisk

Then do a pvmove of contents from 2 GB disk to 6GB disk

pvmove /dev/dsk/c0t0d0 /dev/dsk/newdisk


Then do a vgreduce of the old 2 GB disk to remove it from existing volume group.

-Anil
If you need to learn, now is the best opportunity