cleanup of stale device special files thru devfsadm

Hi

The device special files (/dev/rdsk/*) files are not gettling cleaned up properly thru "devfsadm -C" command after a lun has been made unvisible to the host. Basically, open to such stale entries fail. Is there any other way to cleanup these other than using "rm" command. Following is the sequence followed:

.

1. Presented a RAID-0 EVA disk array lun to aSolaris 10 host

2. Executed "devfsadm -C" command in the Solaris 10 host.

3. Executed "format" command in the Solaris 10 host and created partition on the presented replica.

4. "ls /dev/rdsk/*s2" lists the replica cxtydzs2 entry in the Solaris 10 host.

5. Un-presented replica to the Solaris 10 host.

6. Executed "devfsadm -C" command in the Solaris 10 host several times with some delay in between.

7. "ls /dev/rdsk/*s2" still lists the un-presented replica cxtydzs2 entry in the Solaris 10 host.

Thanks

Vasanthi

[949 byte] By [vasanthita] at [2007-11-27 0:47:58]
# 1

'devfsadm' doesn't look at physical connections. All it does is ask all the drivers to clean up for themselves. Some understand what that means, some don't.

The 'sd' driver is relatively inflexible. It doesn't really support removing devices during a boot. The 'ssd' driver is much more flexible and does properly support that.

If you were using the SAN drivers, you'd probably go in with 'cfgadm' and disable the device first. With the 'sd' drivers, I don't know any way to remove the device from view short of a reboot.

--

Darren

Darren_Dunhama at 2007-7-11 23:16:37 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

hi,

I am facing the same problem. devfsadm -C not cleaning stale entries.

Is it "cfgadm -c unconfigure c2" and "cfgadm -c configure c2" that I should use to refresh the devices in SAN?

But "cfgadm -al" is not listing my controller id. (c2).

so unconfigure/configure cmds fails.

Pls let me know the sequence of cmds to use.

I have tried to add the entry using "cfgadm -c configure <physical-device-name>::dsk/c2t0d0" but it says Attachment-point not found.

Is this the cmd to use?

Thanks in advance,

Sudheer

Message was edited by:

Sudheer

geracia at 2007-7-11 23:16:37 > top of Java-index,Solaris Operating System,Solaris 10 Features...