From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,448ec0f11d600d81 X-Google-Attributes: gidfa528,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: number of h/ds Date: 2000/08/09 Message-ID: <8ms5dq$623$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 656434862 Distribution: world References: <8mrqjg$nqj$1@nnrp1.deja.com> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 965843194 6211 16.82.16.67 (9 Aug 2000 17:46:34 GMT) Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Date: 9 Aug 2000 17:46:34 GMT Newsgroups: comp.unix.tru64 In article <8mrqjg$nqj$1@nnrp1.deja.com>, thush2@my-deja.com writes: >How do I know exactly how may h/ds installed on my DEC-alpha system >(v4.0F). A few general rules... o Just because a disk is on a system doesn't mean it has special device files or is even seen by the driver. o Just because a device was once seen by the driver doesn't mean it is still there. o Just because a special file exists, doesn't mean there was ever a device there. If the question is what disks are physically attached, then go look at the system and count what disks are attached. Make allowances for array subsystems where some disks may be kept as spares or are in RAID arrays where the host only sees the array. For disks that are usable, the simplest (though not most reliable) is to run the file(1) command on all the raw C partitions (/dev/rrz*c /dev/rre*c /dev/rra*c). When devices are associated with the special device file, this will print the disk type for the ones that can be seen. Taking this list, you can examine the disklabel to see which are usable, in use and free. Don't trust the fstype field too much since some applications (non file systems usually) may not have an fstype to write. Or don't write it if they do. Disks which have failed will probably get I/O errors trying to read the label. Since the label may be cache by the kernel, force a read is a good check that the device is working. You'll notice from my list of device names that there are three types of disks devices that can be seen on Tru64 UNIX systems. These are only the supported disk drivers. A 3rd party product may provide its own driver. The drivers are: rz - SCSI connected devices. These are devices connected through a SCSI-2 controller of some sort or a controller pretending to be SCSI. On the newer systems, the CDROM is an IDE disk, but it shows up as an rz device. re - A backplane RAID controller device. While the back-end devices on these controllers are SCSI devices, it doesn't use the SCSI interface to communicate with the host. The controllers that present such devices are the KZESC, KZPSC and KZPAC. ra - Some older systems supported MSCP disks; the old Digital RA family. I'd expect to only see these on DEC 7000/10000 systems and maybe a few 8400/8200 systems with XMI busses. They could be connected through HSC family controllers or KDM70s. There was also a Futurebus adapter that allowed connecting the HSZ40 on the DEC 4000 systems. It presented the SCSI devices of the HSZ as MSCP disks. For the SCSI connected disks you can use the scu(8) command to scan and show all the devices found the SCSI driver. Since some subsystems allow very dynamic reconfiguration of devices, it is quite possible for devices to come and go without the kernel ever noticing. This is the reason that devices may not have special files and special files may not have devices. Using the scu(8) command "show edt" look for Direct Access devices. These are disks. If you compare this list with the file(1) list you may find differences. If you find devices that don't have special files you can create them by hand. See the SCSI(7) and MAKEDEV(8) for particulars. The backplane array controllers (re devices) may have host side utilities for doing configuration of the controller, so check that subsystem's documentation for what options exist to look for "new" devices. >I know rz*c means entire h/d, and rz4 means cdrom. Actually, rz4 only means the SCSI device on bus 0 with target ID 4. I have systems where the CDROM is target ID 5 (rz5) and 6 (rz6). It could also be on some bus other than 0. The only way to identify a CDROM is by device name from the file(1) command or assuming that a "Read-only Direct Access" device is a CDROM. >thanks. >thushara > > >Sent via Deja.com http://www.deja.com/ >Before you buy. > -- Alan Rollow alan@nabeth.cxo.dec.com