Wednesday, February 19, 2014

LUN Migration on Sun Solaris 10 with Sun Cluster 3.3 -Replacing a Quorum device as well.



/dev/did/dsk/d9s2 is a quorum device and also db runs on it. It needs to be replaced with the New LUN.
The new lun has to be added to both the nodes and we need to ensure the same.

1. Check the old lun on the system.
echo |format ; powermt display dev=all; zpool status GRID

2.Check the new lun and label it.
devfsadm -Cv ; echo |format

We can run the below commands to both the nodes.
cldevice populate - update the global device namespace.
cldevice list -v - Verify that a device ID (DID) has been assigned to the disk drive.

3. Check the status of the pool
zpool status GRID

4. Attach the new lun
zpool attach -f GRID <device> <new-device>
#zpool attach -f GRID /dev/did/dsk/d9s2 <new-device> (New Device will be a DID device)


5. Detach the old lun after the mirroing gets completed. (Important -Ensure that it has completed )
zpool detach GRID /dev/did/dsk/d9s2 (OLD LUN)

6. Add a Quorum device.
scsetup , Answer the questions... then verify the quorum device by running cluster status (We should have the new device in place as a quorum disk)

VERY Important: After ensuring that the Quorum disk is in place in cluster status output.
# luxadm remove_device -F /dev/rdsk/cNtXdYsZ
# devfsadm -C
# cldevice clear

Test the Failover by running.
clrg switch -n Nodename RG