Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1003234.1
Update Date:2010-09-13
Keywords:

Solution Type  Problem Resolution Sure

Solution  1003234.1 :   Unable to remove a disk using `luxadm remove_device enclosure,dev`  


Related Items
  • Sun Storage A5000 Array
  •  
  • Sun Storage A5200 Array
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Modular Disk - Other
  •  

PreviouslyPublishedAs
204444


Symptoms
Unable to remove a disk using `luxadm remove_device <enclosure>,<dev>`.


Resolution
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 ^^^^^^^^^^^^

Using the disk's WWN which was obtained from the long listing of the device, check for alternate paths.

# 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

You should see two entries (one for each disk port).

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

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

# 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:*

Backup your existing /etc/path_to_inst file.

# cp /etc/path_to_inst /etc/path_to_inst.bak

Remove all of the lines containing the disk's WWN from the /etc/path_to_inst file.

# sed '/000020370709ec/d' /etc/path_to_inst > /etc/path_to_inst.new

Compare the new /etc/path_to_inst file to the old one.

# diff /etc/path_to_inst /etc/path_to_inst.new

The only results should be lines similar to these:

< "/sbus@1f,0/SUNW,socal@1,0/sf@1,0/ssd@w21000020370709ec,0" 27 "ssd"

If so, then move this new copy of /etc/path_to_inst over the old one.

# mv /etc/path_to_inst.new /etc/path_to_inst
Physically remove the disk from the array.   Optionally, replace the disk.


Product
Sun StorageTek A5100 Array
Sun StorageTek A5000 Array
Sun StorageTek A5200 Array


luxadm remove_device, luxadm insert_device
Previously Published As
22446

Change History
Date: 2006-01-19
User Name: 31620
Action: Update Canceled
Comment: *** Restored Published Content *** SSH AUDIT
Version: 0
Date: 2006-01-19
User Name: 31620
Action: Update Started
Comment: SSH AUDIT
Version: 0
Date: 2003-05-20
User Name: Administrator
Action: Migration from KMSCreator
Comment: updated by : Alan Pereira
comment : Reviewed against Validation Checklist. Minor editorial changes.
date : Jun 26, 2001

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback