Saturday, August 6, 2011

AiX Commads

  1. ssa_ela -h 7 ; To get SRN Status for ssa (output
    ssa0 SRN 45002
    enclosure0 SRN 80221)
  2.  lscfg -vlpdisk3 -- To get details of pdisk3
  3.   lsdev –C –c pdisk –s ssar –H –To list all pdisks or use smit Devices->SSA Disks—>SSA Physical Disks->List All Defined SSA Physical Disks 
  4. lsdev –C –t hdisk –c disk –s ssar –H – To list SSA Logical Disks or use smit Devices->SSA Disks—> SSA Logical Disks->List All Defined SSA Logical Disks
  5.   smit -> SSA Dsks—>SSA Physical Disks ->Show Physical to Logical SSA Disk Relationship or--for I in $(lsdev –CS1 –c pdisk –ssar –F name); do; echo “$i: “$ssaxlate –l $i);done
  6.  lsdev -P -H  --To list all devices in the Predefined Devices object class with column headers, type--The system displays a message similar to the following:(class type  subclass   description--logical_volume vgtype vgsubclass Volume group
  7.  To Remove pdisk3 follow the steps below 

    pdisk3, which is  hdisk5
    go into diags
    Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.
    SSA Service Aids
    Set Service Mode
    <ServerName>:pdisk3
    Do Identify on pdisk3 to find out where it's located

    Once you find it backout to the service mode menu  again and do
    Set or Reset Service Mode on pdisk3

    This is when the drive light should come on solid and can be replaced
    Pull old drive out and put new drive in

    Then
    rmdev -l pdisk3 -d
    rmdev -l hdisk5 -d

    cfgmgr

    lscfg -vl pdisk3

    You should see the new pdisk3