Operating System - HP-UX
1834377 Members
1958 Online
110066 Solutions
New Discussion

Re: Replace mirrored system disk with bigger disk

 
SOLVED
Go to solution
Geert Joosten
Occasional Advisor

Replace mirrored system disk with bigger disk

Hi,
We have a RX 2620 with HP-UX 11.23 and 2 internal disks size 72 GB, which are mirrored with MirrorDisk. Now we want to replace these disks with 2x144 GB. Is there a possibility to change mirror copies to 0, replace one disk and change mirror copies back to 1? Then the same action but now the replace the other 72 GB disk? Or is the only way using the recovery tape?
Thanks in advance,
Geert.
7 REPLIES 7
Ganesan R
Honored Contributor

Re: Replace mirrored system disk with bigger disk

Hi,

It is very much possible. As you said, reduce all the mirror copies from one disk and remove the disk from root VG.

Now connect the new 144GB disk and add it to root VG. Then extend the mirror to this new disk using standard mirror proceduce. Here you can reboot to check booting from new 144GB if you desire.

You need to follow the same procedure to replace the other 72GB.

Best wishes,

Ganesh.
sreekanthtm
Trusted Contributor

Re: Replace mirrored system disk with bigger disk

Identify the primary and secondary disks
# lvlnboot -v

Break the mirroring
# lvreduce -m 0

Replace the secondary disk by new disk (144GB)
Mirror the new disk
# lvextend OR vgsync

Reboot the system using the new disk, and confirm its working...

Break the mirror again.
Replace the other 73GB disk.
Do mirroring again.............

But I would like to recommend to restore the OS from an ignite backup. its simple and less time consuming.

Best wishes
Sreekanth

James R. Ferguson
Acclaimed Contributor
Solution

Re: Replace mirrored system disk with bigger disk

Hi Geert:

Merely mirroring the smaller to the larger disk may not benefit you. The original LVM geometry will be replicated from the smaller to the larger physical disk when you 'vgextend' it into the volume group. Thus your original 'pe_max', 'pe_size', etc. will be unaltered. You may or may not be able to utilize all of the larger storage.

Using Ignite in an Advanced Installation mode may be your best choice.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: Replace mirrored system disk with bigger disk

If your VG limits doesn't fit to the larger disk (pe_max ...), you can still consider to use vgmodify to adjust them ...

An up-to-date system (running 11.23) should have vgmodify ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tim Nelson
Honored Contributor

Re: Replace mirrored system disk with bigger disk

As mentioned if pe_max does not stop you then you should be good to go.

Another option if vgmodify is not for you.

Create ignite image. replace one or both disks, reinstall OS.

Court Campbell
Honored Contributor

Re: Replace mirrored system disk with bigger disk

You should be able to do it and then use vgmodify to utilize the full pv. You will want to earmark this (man vgmodify):

The root/boot volume group must be booted into maintenance mode before making changes

"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Geert Joosten
Occasional Advisor

Re: Replace mirrored system disk with bigger disk

Hello,
Considering the comments I go for the save way and use the Ignite-tape.
Thank you all.
Geert.