Platform Notes: Using luxadm Software

Replacing the Disk Drive

  1. Use the luxadm remove_device command to remove the disk.

    The luxadm remove_device command is interactive. You will be guided through the procedure for removing a device or chain of devices.


    # luxadm remove_device macs1,f1
    
    
      WARNING!!! Please ensure that no filesystems are mounted
    on these device(s).
      All data on these devices should have been backed up.
    
    
    
    The list of devices which will be removed is:
    
      1: Box Name "macs3" rear slot 1
    
    Please enter 'q' to Quit OR <Return> to Continue: 
    
    stopping:  Drive in "macs1" front slot 1....Done 
    offlining: Drive in "macs1" front slot 1....Done
    
    Hit <Return> after removing the device(s).
    

  2. Remove the disk drive and then hit any key.


    Note -

    The yellow LED on the designated disk drive(s) should be flashing.


    The following is displayed:


     
    Drive in Box Name "macs1" front slot 1
        Removing Logical Nodes: 
    	Removing c2t18d0s0
    	Removing c2t18d0s1
    	Removing c2t18d0s2
    	Removing c2t18d0s3
    	Removing c2t18d0s4
    	Removing c2t18d0s5
    	Removing c2t18d0s6
    	Removing c2t18d0s7
    #
    

  3. Use the luxadm insert_device command to add the new device.

    This command is interactive. You will be guided through the procedure for inserting a new device or chain of devices.


    # luxadm insert_device macs1,f1
    
    The list of devices which will be inserted is:
      1: Box Name "macs1" front slot 1
    
    Please enter 'q' to Quit or <Return> to Continue: 
    
    Hit <Return> after inserting the device(s).

  4. Insert the disk drive and then hit Return.

    The following is displayed:


      Drive in Box Name "macs1" front slot 1
      Logical Nodes under /dev/dsk and /dev/rdsk :
    	c2t1d0s0
    	c2t1d0s1
    	c2t1d0s2
    	c2t1d0s3
    	c2t1d0s4
    	c2t1d0s5
    	c2t1d0s6
    	c2t1d0s7
    #
    

The new disk drive is now available for use as a block or character device. Refer to the sd(7) man page for further details.

Recreating a Volume Manager Configuration on the New Drive

To re-create the replaced disk on the new drive:

  1. Configure the Volume Manager to recognize the disk drive.


    # vxdctl enable
    

  2. Use the vxdiskadm utility to replace the failed disk.

    Select the "Replace a failed or removed disk" option.

    This operation requires user confirmation. When prompted for a disk name to replace, use the disk media name from Step 4 of "Preparing to Replace the Disk Drive".

    vxdiskadm supplies a list of available disks to be used as replacements.

  3. Select the replacement drive.

    vxdiskadm automatically configures the replacement drive to match the failed drive.

    Redundant data is recovered automatically. Space for nonredundant data is created and identified. Nonredundant data must be recovered from backing store.

    See the vxdiskadm man page for further details.