HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Michal Kapalka (mikap)
Honored Contributor

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

hi,

but you could also use DRD to clone the system to another disk.

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=DynRootDisk

and the latest way is to make a Ignite backup / restore.

mikap
Vishu
Trusted Contributor
Solution

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

Hi Brian,

Here is the procedure. Suppose your new SAN disk is c0t5d0 and old SAN disk is c0t0d0. Then,

# pvcreate -f -B /dev/rdsk/c0t5d0
# vgextend /dev/vg00 /dev/dsk/c0t5d0
# mkboot -l /dev/rdsk/c0t5d0
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t5d0
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c0t5d0
# lvextend -m 1 /dev/vg00/ /dev/dsk/c0t5d0 (Repeat for every LV in VG00)
# lvlnboot -R /dev/vg00
# lvlnboot -v

Now, you must see both disks in lvlnboot -v output. if yes, then you can proceed reducing your LV on old disk.


#lvreduce -m 0 -A n /dev/vg00/ /dev/dsk/c0t0d0 (Repeat for every LV in VG00)

# vgreduce vg00 /dev/dsk/c0t0d0

Check o/p of 'setboot' command, if primary path is not set. Set by below command.

#setboot -p
Brian Lee_4
Regular Advisor

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

Thank you all.
brian lee