Friday, December 30, 2011

SAN online data Migration - AIX

SAN Online data Migration datavg 

SAN level data migration from similar or heterogeneous environment.


Prerequisites


Get Lun ID and size details from Storage team.

Steps

1. cfgmgr                                                     - scan for the new device  
2. lspv                                                         - check for the new device
3. bootinfo -s <device name>                      - check the size of the device
4. powermt display dev=<device name>      - check for the paths MPIO
5. extendvg datavg hdiskpower1                  - add the disk to the data VG
6. lsvg -l datavg                                           - collect the LV details
7. mklvcopy loglv01 2 hdiskpower1             - make a LV copy to the new disk
8. mklvcopy data01 2 hdiskpower1             - make a LV copy for all LV's
9. syncvg -v datavg                                     - Synchronize the VG (It will take some time depends on VG size)
10. rmlvcopy loglv01 1 hdiskpower0              - Remove the old LV copy for all LV's


 


Power HA - Quick command List



Command  Description
clstat   show cluster state and substate; needs clinfo.
cldump   SNMP based tool to show cluster state.
cldisp   similar to cldump, perl script to show cluster state.
cltopinfo   list the local view of the cluster topology.
clshowsrv   list the local view of the cluster subsystems.
clfindres    locate the resource groups and display status.
clRGinfo  locate the resource groups and display status.
clcycle   rotate some of the log files.
cl_ping   a cluster ping program with more arguments.
clrsh   cluster rsh program that take cluster node names as argument.
clgetactivenodes   which nodes are active?
get_local_nodename   what is the name of the local node?
clconfig   check the HACMP ODM.
clRGmove   online/offline or move resource groups.
cldare   sync/fix the cluster.
cllsgrp   list the resource groups.
clsnapshotinfo   create a large snapshot of the HACMP configuration.
cllscf   list the network configuration of an HACMP cluster.
clshowres   show the resource group configuration.
cllsif   show network interface information.
cllsres   show short resource group information.
cllsnode   list a node centric overview of the hacmp configuration.

Monday, December 12, 2011

VIO server Virtual Switch Creation

There are two methods to create VIO server Virtual Switch
1. CLI (Command Line Interface)
2. HMC (Hardware Management Console)

CLI



chhwres -r virtualio --rsubtype vswitch -m <manage server name> -o a --vswitch <Vswitch_name>

chhwres -r virtualio --rsubtype vswitch -m Server-9117-MMB-SN123456 -o a --vswitch swbackup1

HMC 


HMC version 7R3.4.0.3


Select the manage server on HMC


Configuration -> Virtual Resources -> Virtual Network Management


Create Vswitch 


select Ethernet and Add Vlan ID's if required 

Change EMC Power Device Name


Changing the EMC power Device  Name on AIX/Unix Systems

emcpadm renamepseudo -s emcpower[a-z] -t emcpower[a-z]"

s- source device name t - target device name

Example:

1. change the device name hdiskpower1 to hdiskpower30

emcpadm renamepseudo -s hdiskpower1 -t hdiskpower30

2. Swap the device name hdiskpower1 and hdiskpower2

emcpadm renamepseudo -s hdiskpower1 -t hdiskpower3
emcpadm renamepseudo -s hdiskpower2 -t hdiskpower1
emcpadm renamepseudo -s hdiskpower3 -t hdiskpower2

hdiskpower3 is dummy device used for swapping

Linux File system creation


Linux File system Creation
~~~~~~~~~~~~~~~~~~~~~~~

check the device name in pvs or powermt display dev=all

1. pvcreate /dev/hdd

1a) vgcreate appvg /dev/emcpowerc

2. vgextend vg0 /dev/hdd

3. lvcreate -L 400M -n lvol1 vg0

4. mkfs -t ext3 -m 1 -v /dev/vg0/lvol1

   tune2fs -l /dev/vg0/lvol1

5. mkdir /mnt/newfs

6. mount -t ext3 /dev/vg0/lvol1 /mnt/newfs

7. lvextend -L40G /dev/rootvg/homelv
   umount /home
   e2fsck -f /dev/rootvg/homelv
   resize2fs /dev/rootvg/homelv
   mount /home