Operating System - HP-UX
1753792 Members
6930 Online
108799 Solutions
New Discussion юеВ

Re: how to migrate root file systems to new EMC SAN disk

 
SOLVED
Go to solution
Brian Lee_4
Regular Advisor

how to migrate root file systems to new EMC SAN disk

OS: HP-UX 11.23
Current root disk: EMC Symmetrix
Target root disk: EMC Symmetrix

I am trying to migrate all the file systems in vg00 to new EMC symmetrix disk.
Please help me how to accomplish this.

Thanks,
Brian
brian lee
12 REPLIES 12
Kapil Jha
Honored Contributor

Re: how to migrate root file systems to new EMC SAN disk

Well generally root disk is local disk, anyways if you want to move root to new EMC disk, just miroor it with old one and you can use new one after setting setboot parameter.

You can use attached pdf "when good disk go bad"
BR,
Kapil
I am in this small bowl, I wane see the real world......
Johnson Punniyalingam
Honored Contributor

Re: how to migrate root file systems to new EMC SAN disk

>>I am trying to migrate all the file systems in vg00 to new EMC symmetrix disk.
Please help me how to accomplish this.<<<<

I always love to have "Boot disk and all other file system too, in EMC its very nice.

If you have Mirror/UX Installed

Present the EMC -> LUNS, Once done,

vgextend /dev/vg00 /dev/dev/cxtxdx -> EMC disk

lvextend -m 1 /dev/vg00/lvol1 mirror all the lvols of vg00

and configure you EMC disk to bootable disk
Problems are common to all, but attitude makes the difference
Brian Lee_4
Regular Advisor

Re: how to migrate root file systems to new EMC SAN disk

Can I remove the orginal vg00 disk in a run level 3 after setting up mirrors with an EMC SAN disk?

I think that lvreduce and vgreduce commands against vg00 should be done in a single user mode.

Please correct me if I am wrong.

Thanks.
brian lee
Michal Kapalka (mikap)
Honored Contributor

Re: how to migrate root file systems to new EMC SAN disk

hi,

in my opinion, you could mirror it and them try to boot without remove the original disk,
set the boot order and try to boot the new disk if its working them you could reduce the lvols and reduce the VG.

this operation can be done in normal runlevel.

mikap
Vishu
Trusted Contributor

Re: how to migrate root file systems to new EMC SAN disk

Hi Brian,

Yes, you can...Once the mirror is setup properly with the new SAN disk, then you can reduce the mirror from your old SAN disk and reduce the VG in your normal run-level.

Make sure, you follow the full procedure to mirror the root disk and you set the proper boot path after reducing the old disk, using setboot.

I tried it and it is working.

enjoy ;)
AVV
Super Advisor

Re: how to migrate root file systems to new EMC SAN disk

Hi,


Please do not reduce VG/LV untill unless you are sure that the mirrored disks are ready to boot with any issue. As suggested, set the new mirrored disk as primary boot and old disk as alt boot. Reboot the server. If it comes up so well as required. You can go ahead with LV/VG reduce then. Make sure you have an ignite backup with you all the time.
Kapil Jha
Honored Contributor

Re: how to migrate root file systems to new EMC SAN disk

Its always a good IDEA to check the things by rebooting the server from alternate disk.
Its better to be safe rather than to avaoid a reboot.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Vishu
Trusted Contributor

Re: how to migrate root file systems to new EMC SAN disk

Well,

I just mean to say, if you dont want to reboot, then you can do this way too. Otherwise, it is always safer to do things by rebooting while migrating/replacing things in VG00.

Also, you can check by rebooting the server from the alternate disk whether it is good to boot the server.
Brian Lee_4
Regular Advisor

Re: how to migrate root file systems to new EMC SAN disk

Vishu,

Since you have done it, can you please provide me with the full procedures and commands that you run?


Thanks.
brian lee