UPDATE: unloading a specific "sd" driver instance on Solaris-6 for unused disk?

From: rob.de.langhe@belgacom.be
Date: Fri Mar 11 2005 - 05:38:32 EST


Some update to my problem:
Thx already to Darren Dunham, Adam Tomkinson, Casper Dik and Pascal
Grostabussiat for their initial replies.

I wanted till now, to allow our storage administrators to really
unconfigure the access to the LUNs in question from the EMC cabinets.
This is done now, and I have the following situation now:

For example, a disk formerly accessed as "c2t0d10", via path
/sbus@48,0/fcaw@1,0/sd@0,a

"format" shows me for those disks that
"drive type unknown"
-> logical, since there is no longer such a drive accessible to find its
type

"prtconf -v" still shows me the driver instance :
sd, instance #106
lun value 0x0000000a
target value 0x00000000
name value 0x617461706900
driver pm-hardware-state value 0x..................

/var/adm/messages still shows me
Mar 11 06:01:54 ... unix: WARNING: /sbus@48,0/fcaw@1,0/sd@0,a (sd106):
Requested Block: 0 Error Block:
...

Veritas' "vxdisk list" command shows (no longer, since I removed them)
anything for this disk.

Dik says that the disk would still be in use, that where the errors come
from.

There were remarks to use "devfsadm" to remove such particular ("sd")
driver instances, but that's not (yet) available on Solaris-6.

The suggestion to use "cfgadm" for the same purpose gives me a problem:
the command exists, the man-pages describes it fully (e.g. find the
configured devices with the "-l" option) but running the command always
gives me

# cfgadm -l
cfgadm: Configuration administration not supported

Trying with a particular disk:

# cfgadm -c unconfigure c2::dsk/c2t0d10
cfgadm: No library found

So like Dik says, something is still trying to access those disks,
because they are still present in the device-configuration of the
machine: appear in "format", driver "sd106" still loaded.

-> How can I get rid of this driver "sd106" without a reboot ?
Solaris-6, remember...

Thx a lot in advance for any hints and tips !!

Rob

________________________________

From: DE LANGHE Rob (ITD/OSD)
Sent: 02 March 2005 09:31
To: sunmanagers@sunmanagers.org
Subject: unloading a specific "sd" driver instance on Solaris-6 for
unused disk?

Hi,

we have an E10K running Solaris-6, with several external (SAN) disks
that are no longer required by the machine but for which individual "sd"
driver instances were loaded/attached during its previous boot (months
ago, and not expected to be rebooted for a long time neither).

We want to unassign those SAN-disks from this machine, to be able to
assign them to another server.
But when we would do so, the individual "sd" instances will start
generating tons of messages about no longer being able to access their
disk, thereby very likely slowing down dramatically this server.

Is there any way to manually (i.e. without a reboot) unload those unused
"sd" driver instances from the kernel for the disks that we want to make
unavailable from this machine?

The "modunload" command works for the entire "sd" driver (so all its
instances) and is obviously useless.

TIA for any replies !!

Rob

**** DISCLAIMER ****
http://www.belgacom.be/maildisclaimer
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:19 EDT