How to identify a bad disk under Veritas Volume Manager?
  • # more /var/adm/messages |grep "WARNING:"
  •     Look for error messages pointing to a disk
     
  • # echo | format | more
  •     Look for: unknown drive, You can also check here the wwn # for the disk
     
  • # ls -l /dev/rdsk/*2 |grep /sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w210000203716cf41,0
  •     lrwxrwxrwx 1 root root 74 Feb 24 1999 /dev/rdsk/c3t0d0s2 ->
        ../../devices/sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w210000203716cf41,0:c,raw
        This command will give you the device address of the disk as here is /dev/rdsk/c3t0d0s2
     
  • # vxprint | egrep "DISA|DET|SYNC|STALE|NEEDSYNC|NODEVICE|RECOVER|FAIL"
  •     a. Disabled Volume / Plex
        b. Detached Plexes
        c. Syncing is in progress
        d. Volumes are in stale stat
        e. Volumes needs manual syncing or recovering
        f. Volume Manger can't recognize some disks or Device not found
        g. Volumes are recovering
        h. Failed Disk
     
  • vxdisk list -> will show all the failed disks at the bottom of the output

  •  
  • Storedge specific commands can also be used to verify the bad disk
  •     i.e ssaadm, luxadm, fru list, fru stat etc..
 
 
  How to replace photon disk under veritas?
  • vxdiskadm option # 4 -> Remove a disk for replacement
  •  
  • Offline the disk by using vxdiskadm option # 11
  •  
  • Remove the disk using luxadm
  •     # luxadm remove_device enclosurename,[f/r]slot
        OR
        # luxadm remove_device /dev/rdsk/c?t?d?s2
     
  • Replace the disk physically in the photon
  •  
  • Insert the device using luxadm command
  •     # luxadm insert_device enclosurename,[f/r]slot
        OR
        # luxadm insert_device /dev/rdsk/c?t?d?s2
     
  • Run vxdctl enable to enable all the disk by veritas
  •     # vxdctl enable
     
  • Use vxdiskadm option # 5 -> Replace a failed or removed disk
  •  
    Work Around
    luxadm probe -p To probe all the attached photon
    luxadm display c1 Display the properties of C1
    luxadm display 200002037001246 This will display the information for disk having WWN#2200002037001246
    luxadm led_blink /dev/dsk/c?t?d?s2 Will Blink the Disk on Photon
    OR  
    luxadm led_blink b,r8  
 
 
  Table of target id assignment in photon
Box-id Front Drives Rear Drives Front Drives Rear Drives
- 7 Units 7 Units 7 Units 7 Units
0 t0-t6 t16-t22 t0-t10 t16-t26
1 t32-t38 t48-t54 t32-t42 t48-t54
2 t64-t70 t80-t86 t64-t75 t80-t90
3 t96-t102 t112-t118 t96-t106 t112-t122
 
 
  How to replace a SSA disk under veritas?
  • Identify the disk
  •  
  • Use vxdiskadm option 4. -> Remove the disk
  •  
  • Shutdown the machine
  •     # shutdown -y -g0 -i0
     
  • Replace Disk Physically
  •  
  • Boot the machine using boot -r option
  •     boot -r
     
  • Run vxdctl enable to enable all the volume manager disk
  •     # vxdctl enable
     
  • Use vxdiskadm option # 5 -> Replace a failed or removed disk
  •  
  • Start all Volumes if it is unmirrored
  •     # vxvol -g diskgroup startall
        Note: If Volumes are mirrored, you dont need to start the Volumes.
     
  • If Volumes are in NEEDSYNC State, You need to recover them fast, do the following:
  •     # vxprint |grep NEEDSYNC
        # vxrecover Vol_Name
     
  • Enable the fast_write on the disk, if required

  Procedure to replace a disk under veritas for RSM/D1000/A1000
  • Identify the disk
  • vxdiskadm option 4 --> Remove a disk for replacement
  • Replace Disk Physically (Hot swapable)
  • vxdiskadm option 5 --> Replace a failed or removed disk


For comments or suggestions about this website
Mail To:
Webmaster@Bhuwan.COM