The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mirroring in lan between 2 pc hossein SCO 3 03-31-2008 04:13 PM
DiskSuite mirroring on x86 ? hcclnoodles SUN Solaris 6 01-17-2008 07:52 PM
Help !! disk Mirroring hcclnoodles SUN Solaris 1 11-10-2006 11:25 AM
Mirroring DIMITRIOSDOUMOS SCO 0 08-12-2006 07:16 AM
Mirroring dewsdwarfs SUN Solaris 2 06-27-2006 04:50 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-19-2008
itik itik is offline
Registered User
  
 

Join Date: Oct 2007
Location: Toronto, Ontario
Posts: 354
Wink 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 05:11 PM..
  #2 (permalink)  
Old 03-25-2008
itik itik is offline
Registered User
  
 

Join Date: Oct 2007
Location: Toronto, Ontario
Posts: 354
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..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0