mirroring ssa to san


 
Thread Tools Search this Thread
Operating Systems AIX mirroring ssa to san
# 1  
Old 03-19-2008
Hammer & Screwdriver 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..
# 2  
Old 03-25-2008
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 12:21 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Faster way: SAN hd to SAN hd copying

hi! i got a rhel 6.3 host that already have an xfs filesystem mounted from a SAN (let's call it SAN-1) whose size is 9TB. i will be receiving another SAN (let's call it SAN-2) storage of 15TB size. this new addition is physically on another SAN storage. SAN-1 is on a Pillar storage while the new... (6 Replies)
Discussion started by: rino19ny
6 Replies

2. AIX

IBM SAN TO SAN Mirroring

Has anyone tried SAN to SAN mirroring on IBM DS SAN Storage. DS5020 mentions Enhanced Remote Mirror to multi-LUN applications I wonder if Oracle High availibility can be setup using Remote Mirror option of SAN ? (1 Reply)
Discussion started by: filosophizer
1 Replies

3. AIX

Removing Faulty Disk SSA

Hi Experts, I have configured A D40 Array. There is an faulty disk which is not part of an raid volume but shows fault in the diagnostics. pdisk15 U0.1-P1-I1/Q1-W40AA83CC2400D SSA160 Physical Disk Drive ( MB) Is there a way to stop this... (2 Replies)
Discussion started by: vuppala360
2 Replies

4. AIX

Procedure for removing SSA array

Hi All, What's the proper procedure for removing SSA arrays? Is the procedure like these? - rmdev ssa disk - physical turn off the ssa - cfgmgr There's no more filesystem or logical volume on it. It's just pdisk and hdisk. Thanks in advance, itik (3 Replies)
Discussion started by: itik
3 Replies

5. AIX

migrate from ssa to san

Hi, Do you have procedures to migrate ssa disks to san disk? I don't have testing environment and I want my file system be migrated one at a time. I want it to be fast, I have only 15-20 hours to do it on every sunday 1PM till monday 7am. My largest file system is about 150G. The AIX is... (0 Replies)
Discussion started by: itik
0 Replies

6. Solaris

Thoughts/experiences of SAN attaching V880 to EMC SAN

Hi everyone, I wonder if I can canvas any opinions or thoughts (good or bad) on SAN attaching a SUN V880/490 to an EMC Clarion SAN? At the moment the 880 is using 12 internal FC-AL disks as a db server and seems to be doing a pretty good job. It is not I/O, CPU or Memory constrained and the... (2 Replies)
Discussion started by: si_linux
2 Replies

7. AIX

Problem with a SSA drive

I've a problem with an IBM StorageWorks - Seagate SSA drive, model ST373453LC (IBM P/N 24P3733, Type S53D073, 72,8 GB 15K - USCSI 4 - 320 SSA). I bought this disk used but working; it came from an unknown IBM SSA storage array. I've removed the SCA - SSA adapter (IBM 18P3051 - 001 - R0) and i tried... (0 Replies)
Discussion started by: Linolinux
0 Replies

8. AIX

updating ssa

I am in the process of updating ssa adapters, drives and enclosures and wanted to know if there are any caveats that anyone would like to share. The documentation is not very clear on the ordering of the updates. Any tips would be appreciated. (1 Reply)
Discussion started by: chosie
1 Replies

9. AIX

ssa performances

Helo: We updated form AIX 4.3.3 to AIX 5.1-7 and after this we spent more than double time in read from external disks. Aparently the ssa cards microcode is at last level and all the ptf and apars are instaled. Out backups expent more than double time, but curiously in read only, if we write in... (0 Replies)
Discussion started by: Javier Gutierre
0 Replies

10. AIX

RS6000 SSA Raid question

Hi Can I add disks on the fly to extend the capacity of an existing RAID 5 volume? It's created on a 4P Advanced SSA Raid Adapter. I need to extend a volume group, so I figured it would be easiest to extend the "physical disk" which is a RAID5 volume. Thanks. (1 Reply)
Discussion started by: osee
1 Replies
Login or Register to Ask a Question