LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] accessing scsi devices

[ILUG] accessing scsi devices

Trish Murphy sive at csn.ul.ie
Fri Feb 8 11:14:37 GMT 2002


Ok I'm having a bit of a problem here.

Big picture is is that I'm running an application in a SPARC solaris 8
which queries scsi devices attached to the computer.
(when saying scsi devices I mean a storage system with raids created on
it).
The HBA in the system is a JNI ( though I don't think that matters). I'm
using the USCSI command interface to send scsi diagnostic commands down
to the raw devices through the sd driver and I am using ioctl() to send
them. This all works perfectly if there is already a raid on the storage
system.


However if there are no raids on the system then a dummy (2meg) raid is
present on the system in order to let the OS think that there is
something there.
No my problem is is that with Solaris, in order for me to be able to
send and receive commands from my scsi devices I need to  write a label
to the devices by running the format command and selecting the disk.

But the dummy raid is write protected so therefore solaris can't write a
label to it and I can access it.


Basically what I'm asking I suppose is is there any other way that I can
communicate with raw devices attached to the computer other than having
to format the device first.


any suggestions at all would be appreciated :)

--

Trish
 ____________________________________________________________


I am not an Athenian or a Greek, I am a citizen of the world. ~Socrates


Ever stopped to think, and forgot to start again?






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell