SRDB ID   Synopsis   Date
22446   Unable to remove a disk using `luxadm remove_device enclosure,dev`   26 Jun 2001

Status Issued

Description

SOLUTION SUMMARY:

The following example uses the device c1t0d0s2.

Spin the disk down using luxadm stop /dev/rdsk/c1t0d0s2.

Remove the disk. Replace it with a good disk (one that has valid communicating ports).

Run luxadm remove_device /dev/rdsk/c1t0d0s2 (remove the disk once prompted)

Run luxadm insert_device /dev/rdsk/c1t0d0s2 (insert disk once prompted)

IF THE ABOVE SOLUTIONS DON'T WORK, DO THE FOLLOWING:

Do a long listing of the disk device.

# ls -l /dev/dsk/c1t0d0s2
lrwxrwxrwx   1 root     other         71 May 12 16:51 /dev/dsk/c1t0d0s2 ->
../../devices/sbus@1f,0/SUNW,socal@1,0/sf@1,0/ssd@w21000020370709ec,0:c                                                   ^^^^^^^^^^^^                                                        
# ls -l /dev/dsk/c?t0d0s2 | grep 000020370709ec
lrwxrwxrwx   1 root     other         71 May 12 16:51 /dev/dsk/c1t0d0s2 ->
../../devices/sbus@1f,0/SUNW,socal@1,0/sf@1,0/ssd@w21000020370709ec,0:c
lrwxrwxrwx   1 root     root          71 Feb 24 09:49 /dev/dsk/c2t0d0s2 ->
../../devices/sbus@1f,0/SUNW,socal@3,0/sf@0,0/ssd@w22000020370709ec,0:c                                                        

Remove all of the /dev/[r]dsk entries for these devices.

# rm /dev/dsk/c1t0d?s?
# rm /dev/rdsk/c1t0d?s?
# rm /dev/dsk/c2t0d?s?
# rm /dev/rdsk/c2t0d?s?                                                        
# rm /devices/sbus@1f,0/SUNW,socal@1,0/sf@1,0/ssd@w21000020370709ec,0:*
# rm /devices/sbus@1f,0/SUNW,socal@3,0/sf@0,0/ssd@w22000020370709ec,0:*                                                        
# cp /etc/path_to_inst /etc/path_to_inst.bak                                                        
# sed '/000020370709ec/d' /etc/path_to_inst > /etc/path_to_inst.new                                                        
# diff /etc/path_to_inst /etc/path_to_inst.new                                                        
< "/sbus@1f,0/SUNW,socal@1,0/sf@1,0/ssd@w21000020370709ec,0" 27 "ssd"                                                        
# mv /etc/path_to_inst.new /etc/path_to_inst

Physically remove the disk from the array.  Optionally, replace the disk.
                                                  
INTERNAL SUMMARY:

SUBMITTER: Jay Hajj APPLIES TO: 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 ATTACHMENTS:


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