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-1001617.1
Update Date:2010-07-19
Keywords:

Solution Type  Problem Resolution Sure

Solution  1001617.1 :   Disk Device Links in /dev/[r]dsk Do Not Get Created  


Related Items
  • Sun Storage A5000 Array
  •  
  • Solaris SPARC Operating System
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Modular Disk - Other
  •  

PreviouslyPublishedAs
202203


Symptoms
Disk device links in /dev/[r]dsk do not get created.

This problem can manifest itself in a number of ways.

1. You run a 'boot -r' and the device links in /dev/dsk and
/dev/rdsk do not get created, even though the special files
do get created under the /devices directory.

2. Running the 'disks' or the 'luxadm' command gives a message in
the following format:

       Disk controller dsk/2 is linked to
../../devices/sbus@3,0/SUNW,fas@3,8800000 and
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0
Error: Could not run disks.

Note: Of course, the actual paths on your machine will be different.



Resolution
The problem here is a small discontinuity in either the /dev/dsk or the
/dev/rdsk directories (or both) that is easily fixed.

All of the devices that have the same controller number (i.e., c1, c2, ...)
must be on the same physical device, and therefore, contain the same
physical path. In other words, it is illegal to have a device, say
c2t0d0, be on a SPARCstorage(R) Array, and another device with the same
controller number, say c2t6d0, be on an internal scsi controller.

However, this is exactly what causes this problem. If there are
existing entries in the /dev/dsk or /dev/rdsk directories that conflict
like this, the /usr/sbin/disks program produces an error and refuses
to create any new entries until YOU fix the conflict.

Here is an abbreviated example of an 'ls -l' of an afflicted /dev/dsk
directory:

  1. ls -l /dev/dsk/*s2

lrwxrwxrwx 1 root root 74 Apr 20 1998 c2t0d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020370c5a91,0:c
lrwxrwxrwx 1 root root 74 Apr 20 1998 c2t18d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020370ca8d8,0:c
lrwxrwxrwx 1 root root 74 Apr 20 1998 c2t1d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020370cb964,0:c
lrwxrwxrwx 1 root root 74 Apr 20 1998 c2t20d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020370cb725,0:c
lrwxrwxrwx 1 root root 74 Aug 1 09:51 c2t22d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2200002037131dfd,0:c
lrwxrwxrwx 1 root other 74 Apr 28 1998 c2t2d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020370d3ef7,0:c
lrwxrwxrwx 1 root root 74 Apr 20 1998 c2t3d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w22000020370cbd32,0:c
lrwxrwxrwx 1 root root 74 Aug 1 09:51 c2t4d0s2 ->
../../devices/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2200002037131cf4,0:c
lrwxrwxrwx 1 root root 50 Sep 9 17:45 c2t6d0s2 ->
../../devices/sbus@3,0/SUNW,fas@3,8800000/sd@6,0:c

Notice how all the devices on c2 seem to be in a Sun StorEdge[TM] A5000,
except for c2t6d0, which is hanging off an internal SCSI bus. This is the
problem. Remove all the links that are "incorrect", for example:

       rm /dev/dsk/c2t6*

Then run the 'disks' command again to make sure no problems remain.
When the 'disks' command runs correctly, there should be no output.

Note:

In Solaris[TM] 2.5.1 Operating System and Solaris 2.6, the only way to add storage was to do a 'drvconfig;devlinks;disks'. In Solaris[TM] 8 and Solaris 7 with kernel patch 106541-08 and higher the devfsadm command replaces 'drvconfig;devlinks;xxxxx' and makes adding storage devices on the fly somewhat easier.



Product
Solaris 8 Operating System
Sun StorageTek A5200 Array
Solaris 9 Operating System
Solaris 7 Operating System
Solaris 2.6 Operating System
Solaris 10 Operating System

device links, disks
Previously Published As
18355

Change History
Still valid, Audited/updated 12/17/09 - Mahendra Prabhu, OS Content Team
Date: 2004-07-28
User Name: C139400
Action: Approved
Comment: Thank you for the addition Armand. completed KE procedures
Version: 4
Date: 2004-07-27
User Name: C139400
Action: Accept
Comment:
Version: 0
Product_uuid
2a83ce34-0a18-11d6-8498-8ec5d44f476b|Sun StorageTek A5000 Array
3285bfa4-224e-11d6-8eb3-843d3a923213|Solaris

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