![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mirroring in lan between 2 pc | hossein | SCO | 3 | 03-31-2008 12:13 PM |
| DiskSuite mirroring on x86 ? | hcclnoodles | SUN Solaris | 6 | 01-17-2008 03:52 PM |
| Help !! disk Mirroring | hcclnoodles | SUN Solaris | 1 | 11-10-2006 07:25 AM |
| Mirroring | DIMITRIOSDOUMOS | SCO | 0 | 08-12-2006 03:16 AM |
| Mirroring | dewsdwarfs | SUN Solaris | 2 | 06-27-2006 12:50 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 01:11 PM. |
| Forum Sponsor | ||
|
|
|
|||
|
I remove the ssa just by "reducevg" command.
If you have lots of lv then it's better to script everything for you will always have typo error. script chlv.sh: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "chlv -u 2 ",$1}'>chlv$1.sh ex. chlv.sh vg9 script mklv.sh: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk -vp2=$2 -vp3=$3 '{print "mklvcopy "$1" 2 "p2" "p3}' > mklv$1.sh ex. mklv.sh vg9 hdisk18 hdisk33 script syncvg.sh: #!/bin/ksh lsvg -l $1 | grep -v $1: | grep -v LV | awk '{print "syncvg -l ",$1}' > syncvg$1.sh ex. syncvg.sh vg9 It will create another script like chlvvg9.sh, mklvvg9.sh, syncvgvg9.sh... When I turned off all the ssa disk on my server, it's back to winter land, unlike before it's as hot as the Sahara dessert. Last edited by itik; 05-09-2008 at 08:21 AM. |
|||
| Google UNIX.COM |