页面

Friday, January 28, 2011

EMC PowerPath installation on AIX

Before install:

1. # varyoffvg vgname

2. Required AIX LPPs

EMC.Symmetrix.aix.rte    Fiber Channel devices
EMC.Symmetrix.fcp.rte    Fiber Channel devices

The Symmetrix LPPs is included in the EMC ODM fileset(different version), 

ftp://ftp.EMC.com/pub/elab/aix/ODM_DEFINITIONS/  the readme file contain support version of AIX

3. Enable logging - report errors, diagnostic and failover message through the syslog
EMC recommend enable syslog
To log message in /tmp/emcpsyslog.log
add "*.info /tmp/emcpsyslog.log rotate files 7 time 1d compress" to /etc/syslog.conf
touch /tmp/emcpsyslog.log
refresh -s syslogd

4. Remove all disks corresponding to storage system
lsdev -Ctxxxxxx -rname | xargs -n1 rmdev -dl

5. run "/usr/lpp/Symmetrix/bin/emc_cfgmgr" script to ensure that hdisks are configured for each path
This script invokes cfgmgr to probe adapter,after script there should be a storage-system hdisk configured for each device on each path. "lsdev -Cc disk" can confirm that. Download script from ftp://ftp.EMC.com/pub/elab/aix/ODM_DEFINITIONS

6. Configure ODM attribute to enhance error recovery during certain failover scenarios
For FC switch environment only
chdev -l fscsix -a fc_err_recov=fast_fail -P    (require reboot)
note: <<EMC Host Connectivity Guide for IBM AIX>> on powerlink provide more information about ODM attributes.


Installation:

Notes:
Don't run powermt during installation,remove and upgrade powerpath software. Doing so can result in a system crash
Make sure fast_fail feature is enable


1. installp -agXd . EMCpower or smit (The following filesets should be installed,version might be different)
Name Level Part Event Result
-------------------------------------------------------------------------------
EMCpower.base 5.3.0.0 USR APPLY SUCCESS
EMCpower.migration_enabler 5.3.0.0 USR APPLY SUCCESS
EMCpower.mpx 5.3.0.0 USR APPLY SUCCESS
EMCpower.consistency_grp 5.3.0.0 USR APPLY SUCCESS
EMCpower.encryption 5.3.0.0 USR APPLY SUCCESS

2. register the Powerpath (have license key ready)
# emcpreg -install

Initialize devices
1. # powermt config (or smit->System Management->Devices->PowerPath Disk->Configure All PowerPath Devices)

2. # varyonvg vgname
The installation will migrate devices from AIX hdisk to PowerPath hdiskpower.
Note: If forgot to vary off vg before install PowerPath,devices will stay AIX hdisk and may result in errors.
To fix this:
# varyoffvg vgname
# powermt config
# varyonvg vgname

3. # pprootdev on
Enable PowerPath load balance and failover on boot device;enable bosboot function correcctly with PowerPath.
The off/fix may generate the following warning message can be ignore
0301-168 bosboot: The current boot logical volume,
/dev/hd5, does not exist on /dev/hdiskX
Note: bosboot won't work after reboot, since bosboot expect hdisk instead of hdiskpower. "pprootdev fix" will fix this problem(after reboot). Run "pprootdev fix" once after system restart from PowerPath, bosboot then function until next system restart.

4. Reconfigure appllication
Sometimes application access AIX hdisks directly, rather than through a vg(DBMS), you must reconfigure application to use PowerPath hdiskpower.
# powermt display dev=all    (determine the correspondence between hdiskpower and hdisk)

Upgrade AIX
1. Uninstall PowerPath
2. Upgrade AIX
3. Install PowerPath

Add more paths
1. # pprootdev fix
2. Add path
3. # cfgmgr
4. # powermt config
5. # savebase
6. # bosboot -ad /dev/ipldevice
7. add addition device to bootlist
8. restart the host


Uninstall PowerPath


Before uninstall
1. Close any application that is using hdiskpower
2. Vary off vg using hdiskpower
3. If solutions enabler are running(storwatchd/storapid), type "stordaemon shutdown <daemon>"
4. If EMC ControlCenter is running, shut it down

Uninstall
1. If it's a boot device, run "pprootdev off", then restart host. If it's not, then goto step 2.
2. # installp -u EMCpower
3. # bosboot -ad /dev/ipldevice            To create a boot image


Note:
1. Delete hdiskpower device won't erase the relationship between disk and path. To complete rebuild, you must unconfigure the powerpath0 device.
2. Hdisk doesn't have to be deleted to make them redo their PVID. rmdev -del hdiskx and cfgmgr will do the work.
3. To have PVIDs on hdiskpower devices, you need only put the hdisks into the Available state. You do not need to delete them,and you do not need to first get the PVID to appear in lspv output. You do, however, need to ensure the associated path
hdisks are not in use and the device is not reserved.