SRDB ID   Synopsis   Date
27960   luxadm remove_device error "SCSI Error - Sense Byte: Check condition"   21 Aug 2001

Status Issued

Description

When attempting to remove a failed disk with the "luxadm remove_device," you get an error like:

Please verify the above list of devices and

then enter 'c' or <CR> to Continue or 'q' to Quit. [Default: c]:

stopping: Drive in "c" rear slot 6.... SCSI Error - Sense Byte:(0x2) Check condition

Error: Retry failed. - c,r6.

The device paths are not removed by the "luxadm remove_device" command when this occurs; therefore, the "luxadm insert_device" for the replacement disk will fail.

CAUSE:

The "luxadm remove_device" command handshakes with the drive to be removed. If the disk does not handshake, the command will fail.

SOLUTION SUMMARY:

To correct this, the following edits and device path removals that "luxadm remove_device" does behind the scenes must be done proactively. In our example below, the failed drive is c20t86d0s2:

STEP 1

Determine the world wide number of the disks.

# cd /dev/dsk

# ls -l c20t86d0s2

lrwxrwxrwx 1 root root 61 Jul 24 14:15 c20t86d0s2 ->

../../devices/pci@6,4000/SUNW,ifp@2/ssd@w2200002037c2ce13,0:c

The unique WWN digits we will use are "2037c2ce13".

STEP 2

Determine if the drive is multi-pathed and what the paths are.

# cd /dev/dsk

# ls -l *s2 | grep 2037c2ce13

lrwxrwxrwx 1 root root 61 Jul 24 14:15 c20t86d0s2 ->

../../devices/pci@6,4000/SUNW,ifp@2/ssd@w2200002037c2ce13,0:c

lrwxrwxrwx 1 root root 61 Jul 24 14:15 c23t86d0s2 ->

../../devices/pci@6,2000/SUNW,ifp@1/ssd@w2100002037c2ce13,0:c

The disk is multi-pathed; therefore we will have to clear both paths.

STEP 3

Remove the physical paths for c20t86d0s2 and c23t86d0s2.

# cd /devices/pci@6,4000/SUNW,ifp@2

# rm -i *2037c2ce13*

rm: remove ssd@w2200002037c2ce13,0:a (yes/no)? y

Confirm each of the rm commands to remove the physical path for this controller. Next, remove the second physical path.

# cd /devices/pci@6,2000/SUNW,ifp@1

# rm -i *100002037c2ce13*

rm: remove ssd@w2100002037c2ce13,0:a (yes/no)? y

Confirm each of the rm commands to remove the physical path for this controller.

STEP 4

Remove the logical paths. Confirm each of the rm commands to remove the logical paths for the controllers.

# cd /dev/dsk

# rm -i c20t86d0*

rm: remove c20t86d0s0 (yes/no)? y

# rm -i c23t86d0*

rm: remove c23t86d0s0 (yes/no)? y

# cd ../rdsk

# rm -i c20t86d0*

rm: remove c20t86d0s0 (yes/no)? y

# rm -i c23t86d0*

rm: remove c23t86d0s0 (yes/no)? y

STEP 5

Edit the /etc/path_to_inst file.

# cd /etc

# cp path_to_inst path_to_inst-073101 (example, use current date)

# vi path_to_inst

Remove the lines (two of them) containing the WWN "2037c2ce13" saved earlier.

STEP 6

Physically remove the faulty disk.

STEP 7

Install the replacement disk.

STEP 8

Create the device paths.

# luxadm insert c,r6

Notice: c,r6 may already be present.

The drive is now available for use.

INTERNAL SUMMARY:

SUBMITTER: Edward Norton APPLIES TO: ATTACHMENTS:


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