1834722 Members
2684 Online
110069 Solutions
New Discussion

changing disks

 
SOLVED
Go to solution
GK_5
Regular Advisor

changing disks

Hi

I have a mirrored file system on 2GB disks. I need more space, so I have to swap 2GB disks with 4GB disks. Can I do it this way.
1. Break the mirror
2. Reduce the volume group and take one 2GB disk out.
3. Add 4GB disk in its place and add in vg
4. Mirror with 2GB disk.
5. After mirroring done, break the mirror.
6. Reduce the volume group and take second 2GB disk out.
7. Add second 4GB disk and sync mirror.

Any other better way? These are hot swap disks.

Thanks

-GK-
IT is great!
5 REPLIES 5
Mark Grant
Honored Contributor

Re: changing disks

Yes you can do this but just make sure that the volume group was created with "Max PE per PV" is enough for the new disks (It almost certainly is in this case)
Never preceed any demonstration with anything more predictive than "watch this"
GK_5
Regular Advisor

Re: changing disks

Good point Mark.
I checked and it is 1016. So I guess, I can not do this way.

-GK-
IT is great!
James A. Donovan
Honored Contributor

Re: changing disks

dont forget to use mkboot to make the new disks bootable.
Remember, wherever you go, there you are...
Patrick Wallek
Honored Contributor
Solution

Re: changing disks

GK,

Actually, you may be in luck. If you Max PE per PV is 1016 *AND* your PE Size is 4 (which is the default) then you will be fine.

The maximum disk size is set by a combination of the above values. With Max PE/PV of 1016 and PE Size of 4 (in MB) the you can have a max disk of 4064 MB. That is just short of a true 4GB, but it may be just enough for you.

If you PE Size is larger than 4, then you have no worries at all. If the PE Size is smaller than 4, then you have a problem and your only choice would be to recreate the VG.

Good luck.
GK_5
Regular Advisor

Re: changing disks

Thank you Patrick.
I miscalculated it. Max PE per PV is 1016 and size of each PE is 4MB. But the disks that I'm using has 1023PE. I guess I can loose 7PE to save downtime.

-GK-
IT is great!