Thursday, February 11, 2016

Removing and Replacing the disk on Sun Fire 280R , V480 ,V490 ,V880 ,V880z or V890 Hot-Pluggable Internal Disk Drives using luxadm command


Procedures for replacing the drive:

1) Inform Volume Manager you wish to remove the disk:

# vxdiskadm -> option 4 (Remove a disk for replacement)

2) Offline the device:

# vxdiskadm -> option 11 (Disable (offline) a disk device)
(use the cXtXdX name)

3) Remove the device and device nodes:


/usr/sbin/luxadm remove_device /dev/rdsk/cXtXdXsX 

Or

# luxadm remove_device <enclosure_name>,sx

where x is the slot number. (Use luxadm display <enclosure_name> to find the slot number. To find the <enclosure_name> do a luxadm probe .)

The picld daemon notifies the system that the disk has been removed.  If you receive any errors during this step physically pull the bad disk from the host and run the following commands (changing the values for “X” accordingly):

             # vxdisk rm cXtXdXsX                         
             # luxadm -e offline /dev/rdsk/cXtXdXsX


If the disk is multipathed, run the 'luxadm -e offline' on the second path as well.

Note: The  picld  daemon notifies the system that the disk has been removed.
Initiate devfsadm cleanup subroutines by entering the following command:
# /usr/sbin/devfsadm -C
The default devfsadm operation is to attempt to load every driver in the system and attach these drivers to all possible device instances. devfsadm then creates device special files in /devices and logical links in /dev.
The -C option cleans up the /dev directory and removes any lingering logical links to the device link names.



4) Run the following command, When new disk is inserted.

# /usr/sbin/devfsadm

or

# /usr/sbin/luxadm insert_device <enclosure_name>,sx



This will create the new device and device nodes.

5) Inform Volume Manager of the configuration changes with the command

# vxdctl enable

6) Bring the disk back online in Volume Manager:

# vxdiskadm option 5 (Replace a failed or removed disk)

No comments:

Post a Comment