I have an Opteron-based OpenSolaris system running Nevada build 134. I have an Adaptec SCSI controller in it, with a DAT drive connected to that controller. It's been working great for a long time, including on build 134.
After a recent reboot (unrelated to this device), I got a surprising message from my regular tape back-up cron job: tar: /dev/rmt/0n: Read-only file system On investigation, I found that this happened because the device node has disappeared: % ls -Ll /dev/rmt/0n /dev/rmt/0n: No such file or directory % ls -sl /dev/rmt/0n 2 lrwxrwxrwx 1 root root 58 Jun 21 2009 /dev/rmt/0n -> ../../devices/p...@0,0/pci1022,7...@b/pci9005,6...@3/s...@0,0:n % It appears to have been destroyed by the reboot. And doing devfsadm -C causes those "stale" links to go away, and blows the "/dev/rmt" directory itself away for good measure. I can see the SCSI adapter itself in cfgadm: % cfgadm -lv c12 Ap_Id Receptacle Occupant Condition Information When Type Busy Phys_Id c12 connected unconfigured unknown unavailable scsi-bus n /devices/p...@0,0/pci1022,7...@b/pci9005,6...@3:scsi % But doing "-c configure" doesn't seem to work. It takes a few seconds to run (so it must be doing "something"), but the system state is the same after running it as it was before. I tried doing "unconfigure" and "disconnect" and then "connect" and "configure", and that also took a few seconds (seeming to do something), but the result was the same as before. No tape device. There's nothing that seems to be related in the log messages, nor anything interesting added to the log messages when running any of those commands. The disconnect/connect sequence just got me this: Jun 28 08:36:57 carlson genunix: [ID 408114 kern.info] /p...@0,0/pci1022,7...@b/pci9005,6...@3 (adpu3200) quiesced Jun 28 08:37:10 carlson genunix: [ID 408114 kern.info] /p...@0,0/pci1022,7...@b/pci9005,6...@3 (adpu3200) online % cfgadm -al Ap_Id Type Receptacle Occupant Condition c12 scsi-bus connected unconfigured unknown usb5/1 unknown empty unconfigured ok usb5/2 usb-storage connected configured ok usb5/3 unknown empty unconfigured ok usb6/1 unknown empty unconfigured ok usb6/2 unknown empty unconfigured ok usb6/3 usb-miscell connected configured ok % cfgadm -x insert_device c12::rmt/0 cfgadm: Attachment point not found % Shouldn't there be a "c12::rmt/0" here? How can I make the system see the tape device that's connected? Is there any other information I should gather? I've read through the cfgadm and mtio documentation, and it certainly seems like this should "just work." -- James Carlson 42.703N 71.076W <[email protected]> _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
