Operating System - HP-UX
1833059 Members
2444 Online
110049 Solutions
New Discussion

My Migrating from Old Storage to New Storage and also extend the partition size

 
SOLVED
Go to solution
S.M.Athar
Advisor

My Migrating from Old Storage to New Storage and also extend the partition size

Hello All,

My customer needs to migrate data without affording the downtime from old to new Storage. Currently they have EVA 4400 and the new box is EVA 8100. So What I will do, for e.g. they have a partition /oradb and the size 200GB. Now I present a 200GB Vdisk from the new storage and mirror it with running 200GB disk. After the completion of mirroring I will reduce the lvm with lvreduce command and target disk will be old disk which is from EVA 4400. The commands will be following.

1)Infs –e
2)Ioscan –fnC disk
3)Pvcreate and vgextend (include the new luns into the volume group)
4)lvextend -m 1 /dev/vgdb/lvol1 "
5)I will check the mirroring progress "6)I will do “lvreduce -m 0 /dev/vgdb/lvol “to remove old disks.
7)vgreduce old disk

Okay Fine…Hope this works. Now my question is I want to extend the 200GB Disk which is from EVA 8100. Because after completing the migration process we unpresent the Vdisk from EVA4400. We have two HBA in our system. In migration process One HBA Cable EVA4400 switch and the second one will be on EVA8100.
Please Guide me.

Also please notify me if any thing wrong in the above commands.
Thanks & Regards
Athar Hussain


4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: My Migrating from Old Storage to New Storage and also extend the partition size

Shalom,

insf -C disk recognizes new disks. You may want to run that step after the ioscan.

The rest of your plan is good. Make sure the databases and such are down so you get clean copies.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mel Burslan
Honored Contributor

Re: My Migrating from Old Storage to New Storage and also extend the partition size

After you complete the migration, you can extend the size of your logical volumes to the extent of the capacity of your volume group.

If you now have larger LUNs due to new storage array, then you need to create a new volume group with larger PE size and/or Max PE per PV values, then create new logical volumes to match those of the old vg. Then shut down whatever is running on the old volume group, copy the contents from old to new volumes. Change the device files in /etc/fstab and wherever else required to point to the new vg. Bring back the applications alive.

After this you can increase the size of your volumes.

Or if you are on V11.31, you can use the vgmodify command and skip the new vg create and copy data process totally.
________________________________
UNIX because I majored in cryptology...
S.M.Athar
Advisor

Re: My Migrating from Old Storage to New Storage and also extend the partition size

ThankYou for your reply.
HP-UX 11.23 is running. It is possible to increase the Number of PE in the VolumeGroup Level after applying the patch (vgmodify).
Thanks & Regards
Athar Hussain
James R. Ferguson
Acclaimed Contributor

Re: My Migrating from Old Storage to New Storage and also extend the partition size

Hi:

> It is possible to increase the Number of PE in the VolumeGroup Level after applying the patch (vgmodify).

Yes. See the manpages:

http://docs.hp.com/en/B3921-60631/vgmodify.1M.html

Regards!

...JRF...