home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 13141 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.6 KB  |  55 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!swan
  3. From: swan@austin.ibm.com (Randal C. Swanberg)
  4. Subject: Re: Adding SCSI OSDISK
  5. Originator: swan@swan2.austin.ibm.com
  6. Sender: news@austin.ibm.com (News id)
  7. Message-ID: <C0JIv9.Gx9@austin.ibm.com>
  8. Date: Fri, 8 Jan 1993 14:57:09 GMT
  9. References: <1993Jan6.105119.1266@yvax.byu.edu> <19930107.062511.795@almaden.ibm.com> <C0I05H.1A5I@austin.ibm.com> <uk19il4@zuni.esd.sgi.com>
  10. Organization: IBM
  11. Lines: 42
  12.  
  13.  
  14. In article <uk19il4@zuni.esd.sgi.com>, olson@anchor.esd.sgi.com (Dave Olson) writes:
  15. > In <C0I05H.1A5I@austin.ibm.com> swan@austin.ibm.com (Randal C. Swanberg) writes:
  16. > | In article <19930107.062511.795@almaden.ibm.com>, russotto@vnet.ibm.com (Matthew T. Russotto) writes:
  17. > | > 
  18. > | > Many disks have a jumper which set whether they spin-up on power-on
  19. > | > or only when they receive a SCSI start.  Would an request to spin up
  20. > | > when the disk was already spun up give that result code?
  21. > | > 
  22. > | > Some disks always spin up on power up, and probably wouldn't like SCSI
  23. > | > start at all... will such disks work with AIX?
  24. > | 
  25. > | All of the SCSI disks that we have experience with (i.e. IBM Japan 160MB, IBM
  26. > | Havant 857MB, IBM Rochester 320MB, 400MB, 1 GB, MAXTOR 355MB, 670MB, Seagate 1GB,
  27. > | ...and I'm sure there are others) basically no-op a SCSI Start-Unit if the disk
  28. > | is already spun-up.
  29. > | 
  30. > | If a disk will not allow a Start-Unit when already spun-up, then the answer
  31. > | is NO, it won't work with AIX.  The SCSI disk driver issues a Start-Unit command
  32. > | on the first open() to the disk.  Basically I guess the assumption that the AIX
  33. > | SCSI Driver makes is that a)the disk may be spun down and b)if it isn't the 
  34. > | Start-Unit command will be a no-op, not an error.
  35. > But why fail at that point?  The obvious thing to do is to follow
  36. > a startunit (failed or successful!) with a testunitready, and only
  37. > cause a failure if the testunitready says the drive isn't ready...
  38.  
  39. I agree, that sounds like a more robust method.  Actually, you could issue the
  40. testunitready first to see if the startunit was even needed. 
  41.  
  42. You could also ask the same question of the disk implementation: Why fail at that
  43. point?  The obvious thing to do is to see that you are already spun-up and act as
  44. though you successfully completed the startunit.
  45.  
  46.  
  47. -- 
  48. _____________________________________________________________________________
  49.  
  50. Randy Swanberg                                            swan@austin.ibm.com
  51. AIX Kernel Development                                    512-838-3363
  52.