From: sean@coombs.anu.edu.au (Sean Sebastian Batt)
Newsgroups: comp.sys.hp
Subject: sysdiag(1m) and LDEV for SCSI disks
Date: 11 Nov 92 05:54:37 GMT
Organization: Australian National University
NNTP-Posting-Host: 150.203.76.2
Summary: I can't get they syntax right for specifying a SCSI disc as an LDEV
Keywords: sysdiag(1m), LDEV, PDEV, SCSI discs

Dear Colleagues,

In trying to solve a problem with bad blocks on a 3rd party SCSI disc
(described in <sean.721458579@coombs>), I had an abortive play with
sysdiag(1m) and the SCSIDSK2 diagnostic program (for which I have no
documentation :-| ). I couldn't get anything interesting (well,
anything at all, actually) out of it because I don't know how to
specify an LDEV or PDEV for the disc device in question. The disc is
at SCSI id 2 on the internal SCSI port of my 9000/750.

The disc I want to look at is a Hitachi DK516C at SCSI id 2, the disc
at SCSI id 6 is a Micropolis 1528 supplied by HP as the boot disc for
our '750. Note that the HP disc would have been tested before
installation, probably on July 3rd (from the date on the
/dev/diag/dsk/c32d6 file). So the /dev/diag files seem to be OK.

root> ls -l /dev/dsk/[26]s0
brw-r-----   1 root     sys        7 0x201200 Dec 27  1991 /dev/dsk/2s0
brw-r-----   1 root     sys        7 0x201600 Dec 26  1991 /dev/dsk/6s0
root> ls -l /dev/rdsk/[26]s0
crw-r-----   1 root     sys       47 0x201200 Nov  9 14:27 /dev/rdsk/2s0
crw-r-----   1 root     sys       47 0x201600 Nov  5 12:45 /dev/rdsk/6s0
root> ls -l /dev/diag/dsk/c32d[26]
crw-r--r--   1 root     other     47 0x201200 Dec 27  1991 /dev/diag/dsk/c32d2
crw-r--r--   1 root     other     47 0x201600 Jul  3 15:32 /dev/diag/dsk/c32d6

In sysdiag(1m) I've tried the following lines for LDEV:

DUI> scsidsk2 ldev 2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev dsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=dsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev rdsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=rdsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev /dev/dsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=/dev/dsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev /dev/rdsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=/dev/rdsk/2s0
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev c32d2
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=c32d2
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev dsk/c32d2
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=dsk/c32d2
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev diag/dsk/c32d2
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev=diag/dsk/c32d2
*** LDEV SPECIFICATION EXPECTED (DUISERR 536)
DUI> scsidsk2 ldev /dev/diag/dsk/c32d2
*** INVALID LDEV SPECIFIED (DUIERR 322)
DUI> scsidsk2 ldev=/dev/diag/dsk/c32d2
*** INVALID LDEV SPECIFIED (DUIERR 322)

So I'm getting close, but not quite close enough :-(

Any help in solving this minor annoyance would be really appreciated!

Sean Batt
--
------------- Sean Sebastian Batt - sean@coombs.anu.edu.au --------
-------- Coombs Computing Section - Telephone: +61 6 249 3296 -----
-- Australian National University - GPO Box 4 Canberra City 2601 --
-------------------------------------------------------------------