InfoDoc ID   Synopsis   Date
21101   How to Replace an A5x00 Disk Under AP 2.1 and Volume Manager (VxVM or SEVM)   22 Mar 2002

Status Issued

Description
Describe the procedures to replace an A5x00 (photon) disk under the control of 
alternate_pathing AP and Volume Manager (Sun Enterprise Volume Manager[TM] or VxVM).  
Because the disk is controlled by two software products and the Solaris OE, it is 
necessary to first take the disk out of the control of Volume Manager and the OS, 
then replace the disk and rebuild the path under AP.  Then re-enable the disk under 
Volume Manager again.  

These steps are summarized, and focus chiefly on the AP aspect of the disk 
replacement. For an additional reference regarding normal A5x00 disk replacement, 
please see infodoc 17003.

                 
SOLUTION SUMMARY:
1) Prepare Veritas Volume Manager for disk replacement:
        - Select option 4 in vxdiskadm (prepare disk for replacement)
    - Select option 11 in vxdiskadm option 11 (disk offline)
       - offline the meta device, ie. mcxtxdx
    - vxdctl enable

2) Remove Solaris disk device nodes, and remove disk from tray:
    - luxadm remove_device -F [boxname,drive position] (see luxadm 
      reference manual)
     - physically remove disk from tray when prompted by luxadm.
       
3) Insert new disk and build Solaris device nodes:
    - luxadm insert_device [boxname,drive position] (see luxadm ref manual)
       - insert disk into tray when prompted by luxadm.
    - touch /devices

4) Reconfigure ap devices:
    - apdisk -u -p sf[instance#] -a sf[instance#] 
       * get sf instance# from apconfig -S
    - apdb -C
      commit AP database
    - apconfig -S
          Verify Status and rebuilt AP paths
    - drvconfig -i ap_dmd
    - apconfig -R
      Verify status again to confirm apconfig -R worked
    - apconfig -S
    
5) Add replaced disk to Veritas Volume manager configuration: 
    - vxdctl enable
    - select option 5 in vxdiskadm  (replace disk that was removed)

6) If hotspare was used to replace failed disk, swap replaced disk back into volume(s):
    - If vxsparecheck is enabled,
        vxevac [hotspare] [replaced disk]
    - If using vxrelocd,
        Use GUI to drag hotspare subdisks and drop onto replaced disks.      

Keywords: SEVM, VxVM, Volume Manager, upgrade, upgrading, install, installing, installation, recovery, recover      
APPLIES TO: Hardware/Ultra Enterprise/Servers, Hardware/Disk Storage Subsystem/StorEdge Disk Array/StorEdge A5000, Hardware/Disk Storage Subsystem/StorEdge Disk Array/StorEdge 5100, Hardware/Disk Storage Subsystem/StorEdge Disk Array/StorEdge 5200, Storage/Veritas, Storage/Volume Manager ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.