Monday, December 30, 2013

Administering Multipathing Devices Through mpathadm Commands

The Sun Solaris OS multipathing support can be determined and configured by using mpathadm commands. Starting with Solaris 10 Update 3, the mpathadm command enables multipathing administration through the ANSI standard Multipath Management API. The terms used in this chapter to denote a path, initiator port, target port, and logical unit are consistent with the T10 specification. This chapter contains the following sections:

To Get a List of Multipathing Support That Can Be Administered by the mpathadm Command

The multipathing support is identified with the Multipath Management API plug-in library name.
Run the mpathadm list mpath-support command.

# mpathadm list mpath-support
mpath-support: libmpscsi_vhci.so

(Only one result is shown in the preceding example.)

  To Get the Multipathing Support Properties

The multipathing support properties are associated with Multipath Management API plug-in properties.
1. Run the mpathadm list mpath-support command.

# mpathadm list mpath-support
mpath-support: libmpscsi_vhci.so

(Only one result is shown in the preceding example.)
2. Choose the mpath support name from the output list.
3. Run the mpathadm show mpath-support mpath-support-name command.

# mpathadm show mpath-support libmpscsi_vhci.so
mpath-support: libmpscsi_vhci.so
  Vendor: Sun Microsystems
  Driver Name:  scsi_vhci
  Default Load Balance:  round-robin
  Supported Load Balance Types:
    round-robin
    logical-block
  Allows To Activate Target Port Group Access:  yes
  Allows path Override:  no
  Supported Auto Failback Config: yes
  Auto Failback:  on
  Failback Polling Rate (current/max):  0/0
  Supported Auto Probing config: no
  Auto Probing:  NA
  probing Polling Rate (current/max):  NA/NA
  Supported Devices:
    Vendor:  SUN
    Product:  T300
    Revision:
    Supported Load Balance Types:
      round-robin
    Vendor:  SUN
    Product:  T4
    Revision:
    Supported Load Balance Types:
      round-robin

The command output also shows a list of device products that is supported by the multipathing support software. The multipathing support libmpscsi_vhci.so supports T10 target port group compliant devices by default.

  To Get a List of Initiator Ports Discovered on the System

An initiator port is part of a path that consists of an initiator port, target port, and a logicalunit.
Run the mpathadm list initiator-port command.

# mpathadm list initiator-port
Initiator-Port: iqn.1986-03.com.sun:01:080020b7ac2b.437a3b3e,4000002affff
Initiator-Port: 2000000173018713


  To Get the Properties of a Particular Initiator Port

The properties of an initiator port can be displayed through the show command.
1. Run the mpathadm list initiator-port command.

# mpathadm list initiator-port
Initiator-Port: iqn.1986-03.com.sun:01:080020b7ac2b.437a3b3e,4000002affff
Initiator-Port: 2000000173018713

2. Select an initiator port to use from the output.
3. Run the mpathadm show initiator-port initiator-port-name command.

# mpathadm show initiator-port 2000000173018713
initiator-port: 2000000173018713
 Transport Type: Fibre Channel
 OS Device File: /devices/pci@1f,2000/SUNW,gle@4/fp@0,0


To Get a List of Logical Units Discovered on the System

The mpathadm list lu command displays the list of logical units attached to the initiator. This list displays the number of paths and the operational path count to each logical unit listed.
Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2


To Get the Properties and Associated Path Information of a Particular Logical Unit by Name

The list of logical units, along with the properties for each logical unit, can be displayed through the mpathadm command. The list of logical units contains logical unit names that in turn can be used to display the properties of a particular logical unit.
1. Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2

2. Select a logical unit name from the output.
3. Run the mpathadm show lu logical-unit-name command.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State:  standby
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State:  active
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0


  To List All Logical Units Associated With a Particular Target Port

A list of paths through a target port can be displayed through the show command of a logical unit. First, retrieve the list of target ports associated with a logical unit. Then use the target port to list all logical units associated with this target port.
1. Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2

2. Select a logical unit name from the output.
3. Run the mpathadm show lu logical-unit-name command.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State:  standby
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State:  active
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0

4. Select a target port from the output list.
5. Run the mpathadm list lu -t target-port-name command.

# mpathadm list lu -t 20030003ba27d212
  /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
    Total Path Count: 2
    Operational Path Count: 2
  /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
    Total Path Count: 2
    Operational Path Count: 2


To List a Logical Unit With a Particular Name Derived From the Hardware Used by the System

1. Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2

2. Select a logical unit name from the output.
3. Run the mpathadm show lu logical-unit-name command.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State:  standby
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State:  active
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0

4. Select an inquiry-string-name from the output.
5. Run the mpathadm list LU -n inquiry-string-name command.

# mpathadm list LU -n 60003ba27d2120004204ac2b000dab00
mpath-support: libmpscsi_vhci.so
  /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
    Total Path Count: 2
    Operational Path Count: 2


To Configure Auto-Failback for a Particular Multipathing Support

Symmetrical devices allow for automatic failback to a possible optimal path. If a failover occurs on the initial path, the standby path becomes the new online path. Usually the standby path is a suboptimal path. When Auto-Failback is enabled, the initial path comes back online, failover to the initial path automatically occurs.
1. Run the mpathadm list mpath-support command.

# mpathadm list mpath-support
mpath-support: libmpscsi_vhci.so

(Only one result is shown in the preceding example.)
2. Select an mpath support name from the output list.
3. Run the mpathadm modify mpath-support -a [on | off] mpath-support-name command.

# mpathadm modify mpath-support -a off libmpscsi_vhci.so

4. Run the mpathadm show mpath-support mpath-support-name command to check the change.

# mpathadm show mpath-support libmpscsi_vhci.so
mpath-support: libmpscsi_vhci.so
  Vendor: Sun Microsystems
  Driver Name:  scsi_vhci
  Default Load Balance:  round-robin
  Supported Load Balance Types:
    round-robin
    logical-block
  Allows To Activate Target Port Group Access:  yes
  Allows path Override:  no
  Supported Auto Failback Config: yes
  Auto Failback:  on
  Failback Polling Rate (current/max):  0/0
  Supported Auto Probing config: no
  Auto Probing:  NA
  probing Polling Rate (current/max):  NA/NA
  Supported Devices:
    Vendor:  SUN
    Product:  T300
    Revision:
    Supported Load Balance Types:
      round-robin
    Vendor:  SUN
    Product:  T4
    Revision:
    Supported Load Balance Types:
      round-robin



Note - The Auto-Failback display initiated by the mpathadm modify command setting is effective while the system is running. However, to keep the changed setting persistent, you must update the /kernel/drv/scsi_vhci.conf file. Refer to Configuring Automatic Failback.



  To Fail Over a Logical Unit

This operation is applicable only to devices that fall under the following two categories:
  • Asymmetric devices with a proprietary failover mechanism recognized and supported by multipathing support
  • Devices conforming to the T10 Standard Target Port Group Support libmpscsi_vhci.so and providing explicit mode asymmetric logical unit access
1. Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2

2. Select a logical unit name from the output.
3. Run the mpathadm show lu logical-unit-name command.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State:  standby
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State:  active
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0

4. Run the mpathadm failover LU logical-unit-name command.

# mpathadm failover LU /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2

If this operation is successful, the access state of the devices' target port groups changes. This is a result of the logical unit failover.
5. Run the mpathadm show lu logical-unit-name command to verify the access state change.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State: active
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State: standby
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0


To Enable a Path

If the path to a logical unit is disabled, the enable command changes the path back to enabled. The full path must be specified using the initiator port name, target port name, and the logical unit. To verify the change, run the show command for the logical unit.
1. Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2

2. Select a logical unit name from the output.
3. Run the mpathadm show lu logical-unit-name command.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State:  standby
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State:  active
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0

4. Select an initiator port and a target port name.
5. Run the mpathadm enable path -i initiator-port-name -t target-port-name
-l
logical-unit-name command.

# mpathadm enable path -i 2000000173018713 -t 20030003ba27d095 -l
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2


  To Disable a Path

This operation makes the path unavailable for the logical unit, regardless of its operational state.
1. Run the mpathadm list lu command.

# mpathadm list lu
 /dev/rdsk/c4t60020F20000035AF4267CCCB0002CEE2d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
  Total Path Count: 2
  Operational Path Count: 2
 /dev/rdsk/c4t60003BA27D2120004204AC1A000F1D6Cd0s2
  Total Path Count: 2
  Operational Path Count: 2

2. Select a logical unit name from the output.
3. Run the mpathadm show lu logical-unit-name command.

# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
logical unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
 mpath-support libmpscsi_vhci.so
  Vendor:  SUN
  Product:  T4
  Revision:  0301
  Name Type:  SCSI Inquiry VPD page 83 type 3
 Name:  60003ba27d2120004204ac2b000dab00
  Asymmetric:  yes
  Current Load Balance:  round-robin
  Logical Unit Group ID:  NA
  Auto Failback:  on
  Auto Probing:  NA
 
  Paths:
    Initiator Port Name:  2000000173818713
    Target Port Name:  20030003ba27d212
    Override Path:  NA
    Path State:  OK
    Disabled:  no
 
   Initiator Port Name:  2000000173018713
    Target Port Name:  20030003ba27d095
    Override path:  NA
    Path State:  OK
    Disabled:  no
 
  Target Port Groups:
    ID:  2
    Explicit Failover:  yes
    Access State:  standby
    Target Ports:
      Name:  20030003ba27d212
      Relative ID:  0
  
    ID:  5
    Explicit Failover:  yes
    Access State:  active
    Target Ports:
      Name:  20030003ba27d095
    Relative ID:  0

4. Select an initiator port and a target port name.
5. Run the mpathadm disable path -i initiator-port-name -t target-port-name
-l
logical-unit-name command.

# mpathadm disable path -i 2000000173018713 -t 20030003ba27d095 -l
 /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2



Note - The disabled state is not persistent across rebooting. If the path is operational before the next boot sequence, it is enabled by default.




Note - This operation is not allowed when the given path is the last operational path remaining.

Wednesday, December 18, 2013

syscheck stability script for AIX

#!/usr/bin/ksh
#
#--------------------------------------------------
# Script to validate the rootvg and OS information
#
# Written by : Rameshkumar Pitchairaj
#          : IBM Singapore Ptd Ltd
#--------------------------------------------------
# Instruction on usage
#
# 1. Ensure execute permission for the script is there. If not, execute "chmod 755 syscheck_stability.sh"
# 2. ./syscheck_stability.sh > `hostname`_syscheck.txt 2>&1
# -------------------------------------------------
#
# Get common values
#
hname=`hostname`
osversion=`oslevel -r`
dttim=`date '+%Y%m%d-%H:%M'`
#
# Variables
#
tmp_dir=/tmp
tmpfile=${tmp_dir}/rootcheck.$$
#
echo "Checking for rootvg related information....Pls wait...."

lsvg rootvg > ${tmpfile}.lsvg
lsvg -l rootvg | sed '1,2 d' > ${tmpfile}.lsvgl
lsvg -p rootvg | sed '1,2 d' > ${tmpfile}.lsvgp
for i in `awk '{print $1}' ${tmpfile}.lsvgp`
do
 lspv -l $i > ${tmpfile}.lspvl${i}
done

header()
{
 param=$1
 echo "\n----------------------------------------------------------------------"
 echo " Check for : $param"
 echo "----------------------------------------------------------------------\n"
}

footer()
{
 echo "----------------------------------------------------------------------\n"
}

alert()
{
 param=$1
 echo "*** ALERT *** : $param"
}

info()
{
 param=$1
 echo "$param"
}

info "*******************************************************************"
info "System stability check for `hostname` run on `date`"
info "*******************************************************************"

header "Software version AIX, AIX patch level, HACMP, TSM"
info "\nOS version : ${osversion}"
info "OS level : `oslevel -s`"
instfix -i | grep ML

info "\nChecking fileset inconsistencies\n"
lppchk -v > /dev/null 2>&1
if [ $? -ne 0 ]
then
 alert "Inconsistent filesets noticed in the system"
 lppchk -vm3
 else
  info "All filesets are consistent"
 fi

info "\nHACMP version :\n"
lslpp -cL cluster.* | cut -d: -f2,3 | grep server.rte > ${tmpfile}.version 2> /dev/null
if [ $? -eq 0 ]
then
 cat ${tmpfile}.version
else
 info "HACMP not installed"
fi

header "rootvg exclude file"
if [ -f /etc/exclude.rootvg ]
then
 alert "rootvg has exclude file and the content(s) is/are\n"
 cat /etc/exclude.rootvg
else
 info "rootvg does not have exclude file"
fi

header "boot list"
bootlist -m normal -o
footer

header "rootvg disks"
echo "Disk  Status  Total PP  Free PP\n"
awk '{print $1,$2,"  ",$3,"  ",$4}' ${tmpfile}.lsvgp
footer
header "rootvg lv info"
cat ${tmpfile}.lsvgl
footer
header "rootvg lv not in stable condition"
grep -i stale ${tmpfile}.lsvgl
footer
header "rootvg lv not mirrored (Otherthan sysdump devices)"
cat ${tmpfile}.lsvgl | grep -v sysdump | awk '{if ($5 !=2) print $0}'
footer
header "rootvg quorum Should be 1"
quo=`grep QUORUM ${tmpfile}.lsvg | cut -d ":" -f3| sed 's/ [ ]*//g'`
if [ $quo -ne 1 ]
then
  alert "Mirroring will not work due to Quroum value."
  alert "Quorum value : $quo"
else
  info "Quorum value is $quo"
fi
footer
header "rootvg disk lv info (in diskX and not in diskY)"
info "rootvg disks are :\n"
cat ${tmpfile}.lsvgp
for i in `lsvg -l rootvg | sed '1,2 d' | awk '{print $1}'`
do
 lvmirror=`lslv -m $i | tail -1`
 disk1=`echo $lvmirror|awk '{print $3}'`
 disk2=`echo $lvmirror|awk '{print $5}'`
 if [ "X${disk2}" == "X" -o "X${disk1}" == "X" ]
 then
   if [ "X${disk2}" == "X" ]
   then
      alert "lv ${i} is in ${disk1} and does not have mirror copy in other rootvg disks"
   else
      alert "lv ${i} is in ${disk2} and does not have mirror copy in other rootvg disks"
   fi
 fi
done
footer

header "System dump devices"
info "System dump devices configured\n"
sysdumpdev -l
info "\nSystem dump device availability\n"
for j in `grep sysdump ${tmpfile}.lsvgl | awk '{print $1}'`
do
 devi=`lslv -l $j | sed '1,2 d' | awk '{print $1}'`
 info "dump device $j available in disk ${devi}"
done
header "dump device size"
size=`sysdumpdev -e | cut -d: -f2 | awk '{print $1/1048576}'`
info "\nEstimated dump size $size MB\n"
size=`grep SIZE ${tmpfile}.lsvg | cut -d: -f3 | awk '{print $1}'`
for j in `grep sysdump ${tmpfile}.lsvgl | awk '{print $1}'`
do
 lvsize=`grep $j ${tmpfile}.lsvgl | awk '{print $3}'`
 let totsize=${lvsize}*${size}
 info "dumpdevice $j size is $totsize MB"
done
footer
header "Paging space status"
lsps -a
footer