23.10.2014 Views

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STATUS=`lspath -l $n | grep Failed | awk '{print $1}'`<br />

if [ $STATUS ]<br />

then<br />

ADAPTER=`lspath -l $n | grep Failed | awk '{print $3}'`<br />

echo $n has $ADAPTER with Failed status. Enabling path.<br />

chpath -s ena -l $n -p $ADAPTER<br />

# Check new status<br />

echo New status:<br />

lspath -l $n<br />

else<br />

echo Status:<br />

lspath -l $n<br />

fi<br />

else<br />

d<strong>on</strong>e<br />

echo "Redundancy with dual VIO Server, Fiber Channel SAN disks and AIX MPIO<br />

"is NOT used.<br />

fi<br />

# 3 Network redundancy using "Network interface backup".<br />

# Find out if this is being used and if so which interface number(s).<br />

echo<br />

echo 3 Checking if Network redundancy using "Network interface backup" is being used.<br />

ECH=`lsdev -Cc adapter -s pseudo -t ibm_ech -F name | awk -F "ent" '{print $2}'`<br />

if [ -z "$ECH" ]<br />

then<br />

echo No EtherChannel is defined.<br />

else<br />

# What is the status<br />

for i in $ECH<br />

do<br />

echo EtherChannel en$i is found.<br />

ETHCHSTATUS=`entstat -d en$i | grep Active | awk '{print $3}'`<br />

if [ "$ETHCHSTATUS" = "backup" ]<br />

then<br />

# switch back to primary (requires AIX5.3-ML02 or higher)<br />

echo Backup channel is being used. Switching back to primary.<br />

/usr/lib/methods/ethchan_c<strong>on</strong>fig -f en$i<br />

# Check the new status<br />

NEWSTATUS=`entstat -d en$i | grep Active | awk '{print $3}'`<br />

echo Active channel: $NEWSTATUS adapter<br />

#<br />

else<br />

echo Active channel: $ETHCHSTATUS adapter.<br />

fi<br />

320 <str<strong>on</strong>g>Advanced</str<strong>on</strong>g> <str<strong>on</strong>g>POWER</str<strong>on</strong>g> <str<strong>on</strong>g>Virtualizati<strong>on</strong></str<strong>on</strong>g> <strong>on</strong> <strong>IBM</strong> <strong>System</strong> <strong>p5</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!