03-19-2008
384,
2
Join Date: Oct 2007
Last Activity: 17 December 2017, 7:57 PM EST
Location: Toronto, Ontario
Posts: 384
Thanks Given: 0
Thanked 2 Times in 2 Posts
mirroring ssa to san
Hi guys,
I'd like to share my migration/mirroring of ssa to san. No downtime for users, probably I/O performance.
here's the step:
1 After the lun had been carved on the SAN and the connections had been done on AIX fiber card
2 “lspv” and look for the new SAN hdisk? on the bottom, say hdisk33
3 look for the first vg of ssa, vg9 is one of the volume from ssa disks, it is hdisk18, vg9 is a type raid 5 on ssa with multiple pdisk*
4 issue this “chvg –t 2 vg9”, might give warning, say yes
5 go to “Set Characteristics of a Volume Group” and “Add a Physical Volume to a Volume Group”, put the [vg9] and [hdisk33], enter or you can use "extendvg vg9 hdisk33"
6 you can go to Mirror a volume group, but it will fail on aix 43, but I think it will execute on AIX 5.x/6.x, do the copy of LV instead next
7 get all LV of vg9 with "lsvg -l vg9"
8 smitty lvm, go to L V, go to “Set Characteristic of a Logical Volume” and “Add a Copy to a Logical Volume”, put the LVname, put 2,put the two hdisks [hdisk18 hdisk33], then enter or you can use "mklvcopy LVname 2 hdisk18 hdisk33"
9 it will fail [except loglv], change it first, go to "Change a Logical Volume", put the LVname and put the "M N of P V" to 2, enter or you can use "chlv -u 2 LVname"
10 go back to LV copy #8, it should continue now
11 continue with smitty syncvg, select “Synchronize by Logical Volume”, or you can use "syncvg -l LVname"
12 continue with the rest of the LVs
13 continue with the next VG, and so on.
After each lv sync, you should check if it's sync with "lsvg -l LVname". It should change from stale to sync.
Regards,
itik
Last edited by itik; 03-19-2008 at 06:11 PM..