Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace datavg

Status
Not open for further replies.

gymnast

Technical User
May 27, 2001
20
CA
here's why:

i have 2 hdisks - 1 for rootvg and 1 for datavg. datavg holds the database and the application.

i'm ruuning out of disk space and i need to add more....

the thing is - my rs6000 has no room for additional internal drive. datavg is only 2GB and i'm thinking of replacing it with the 9.1GB (internal drive).

any suggestion how to verbatim the datavg to new 9.1GB hdisk?

 
I would have thought that the most sensible apporach would be to have a backup of datavg, delete the volume groups, swap the 2 GB disk with the 9 GB and then recreate datavg using the new disk, then restore the data.

A better alternative would be to invest in an external disk cabinet to hold the 9GB disk and the add it to datavg and extend the logical volume.

richard

richard@brecon.co.uk
 
try this:
shutdown replace the cdrom with the new disk (unique scsi id)
boot (will run cfgmgr and find new disk)
extendvg datavg newpv
migratepv the lv's to new disk
chdev to stop allocation
reducevg datavg oldpv
rmdev -dl oldpv
shutdown
swap disks and re connect the cdrom
boot


 
hi christos,

thanks for the tip, but:

initially the system recognizes the hdisk which is hdisk2, but when i'm about to add it to datavg, i encountered a problem:

PP size of 4 requires the creation of 2169 partition for hdisk2. limitation is 1016 PP/disk. specify a longer PP size in order to create a VG on this disk.

do i have to re-config new hdisk2 to fit in with datavg original PP size config? i'm using aix 4.1

never tried rjdscs suggestion though as i am going to back up too large file systems.
 
Your PP size needs to be set at 8 this should give you 1016 its a 9g, yes reconfig the lvm size to 8 it should work.
try doing this smit mkvg set the physical partition to 8
the physical volume would be hd2 hit the f4 key and pick the physical volume from the list also give the Volume Group name you said it was datavg

so 1. smit mkvg
2. Volume Group Name... datavg
3. Physical partition... 8
4. Physical volume... hd2 is what you said.

Good luck..
 
thanks call,

but i don't want to create a new VG. all i want to do to give room for growing DBase is to copy the entire hdisk1, which is datavg to a new HD with 9.1GB and remove the original HD for datavg, leaving the new 9.1GB HD (as the new datavg).

i think, critos' is right except that when i tried adding up new disk (9.1GB) to the original datavg (2.0GB), it flashed the message above.

could it be possible that you can not add PV larger than the original size of PV in a VG? i tried adding up using "smit extendvg".

does anyone knows how to extend VG larger than the original PV size and mimic original VG's attributes?
 
PP size of 4 requires the creation of 2169 partition for hdisk2. limitation
is 1016 PP/disk. specify a longer PP size in order to create a VG on this disk.

you need to recreat the hd and make it 8 pp size to get the 1016
after that you should be able to migrate over.


 
I guess I don't understand...
I see your options as the following:

1) EASIEST backup the entire disk with either savevg or backup or whatever
and put in the new disk inplace of the old one....create a new volume group
and restore it..........

2) Do a savevg and modify the information in datavg.data

change the disk out one for one....
Then do the restvg for datavg...

3) Or create a new volume group and copy everything from one disk to another...
unmount one and remount at datavg? Or do a backup from one to the other...whatever


4) If you are trying to add the disk to the same volume group and you are
at AIX 433 you can use the chvg -t option to overcome the 1016 rule
root: chvg -t 4 datavg
0516-1193 chvg: WARNING, once this operation is completed, volume group
rootvg cannot be imported into AIX 430 or lower versions.
Continue (y/n) ?
y
0516-1164 chvg: Volume group datavg changed. With given characteristics
rootvg can include upto 8 physical volumes with 4064 physical partitions
each.
5) use the replacepv or migratepv commands once it is part of the same volume group

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top