Devices

Unix systems address their devices via device-files which are located under /dev.

/dev/dsk holds block-devices for disks. Block devices are used for addressing the disk as file-system.

/dev/rdsk holds character-devices for the same disks as in /dev/dsk.
Character devices are used to address the disk as raw-device e.g. when used
as database device of for formatting it.

/dev/rmt holds tape devices (raw magnetic tape)

uname -a
Show system and OS data
dmidecode –type memory
Show memory hardware configuration. Other types are e.g. processor or bios (linux)
lshw -C memory
List hardware from Class memory. Other classes are e.g. disk or network.

HP_UX

devicefiles (HP-UX 10)
c<controller>t<target(=SCSI-id)>d<logical unit(raid)>
insf -e
Install Special Files, recreate all device file’s
stm
Support Tool Manager, nice tool for device management. It comes in 3 flavours.

xstm
X-windows interface
mstm
Non-graphical menu-base interface
cstm
Commandline interface
ioscan -fn
Show all devices with devicefiles

SUN Solaris

devicefiles
c<controller>t<target)>d<logical unit>s<slice>where: <controller> is the SCSI interface
<target)> is the SCSI id of the disk or lun
<logical unit> is the lun number (???)
<slice> is the id of the partition on the disk
prtdiag
List devices, to be sure you use the correct version use /usr/platform/`uname -i`/sbin/prtdiag
prtconf -D
List configuration and attached drivers

-pv
Lists about everything including devaliases and bootpath from the EEPROM (search for a lines containing things like ‘/pci@1c,600000/scsi@2/disk@0,0:a’
-V
Show OBP (Open Boot Prompt) version
psrinfo -v
Show processor information
sysdef
System definition

If new devices are added at the OK prompt:

ok> reset-all

ok> probe-scsi-all

ok> boot -r

More info on console commands available.

To configure new devices from the commandline

drvconfig
Create files in /devices
disks
Create files for disks in /dev
tapes
Create files for tape-drives in /dev

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.