|
|
|
||||||||||||||||||||||||
|
Unix FAQ Menu |
The ConsoleUnder Solaris the console is refered to by the generic device /dev/console. The physical devices(s) this actually relates to varies according to whether the keyboard was attached when the system was last switched on. It is NOT possible to change this whilst the system is running. Under no circumstances attach a keyboard whilst the system is switched on - the PS/2 connector carries power and thus such action may cause physical damage and will crash the system. If the keyboard was attached then input to /dev/console comes from /dev/kb, this is the PS/2 style connector on the main system board. Output is to the the framebuffer (/dev/fb) If there was no keyboard attached input and output is via the first on-board serial (RS232) port - /dev/term/a. Physically this usually consists of a 25-pin D-type female connector on the main system board and is marked 'Serial A'. The serial configuration can be changed using Openboot commands but is usually 9600 Baud, 1 stop bit, and no parity. Solaris will react to a RS232 break signal on it's console port by suspending
the Unix kernel and dropping to an Openboot 'ok' prompt. The signal is
typically sent when an RS232 device is powered up. Thus it is wise to
power such a device on BEFORE connecting the serial cable. There is no
power carried by a standard 3 or 5 wire RS232 cable. If you forget to
do this and find yourself with a halted system and an 'ok' prompt, type
'go' to the OpenBoot 'ok' prompt and your system should continue
running, thus; Advice and tips
One day you will need a console on your Solaris system, one day the power will fail, or someone will accidently disconnect the power. When this happens you may well be left with a Solaris system in single user mode most likely waiting at an fsck prompt and no way to interact with it. Most likely also will be a constantly ringing telephone with irrate users on the other end. I advise you therefore to always keep some serial device permanently in the vicinty of your Solaris system(s). This should be accompanied by a serial cable and a power cord, and possibly a notice warning of dire consequences should anyone remove them. A laptop PC even a PDA may suit the task, but by far the best device is a simple old dumb terminal - a DEC VT100 is perfect. The temptation to remove a laptop in times of need is great, a dumb terminal is however of little use elsewhere. Large sites with many Solaris system to administer often connect the serial console port to a terminal server. This allow remote access to the console via the network. This is a convenient approach but does have its hazards;
Disk DevicesDisk device files are probably the most involved and difficult to understand of all Unix devices. Understanding a few key points will help a lot;
Consider this /etc/vfstab entry for a single filesystem on a Solaris
machine; The first 2 fields list the same disk device as both a block device ("dsk") and character device ("rdsk"). The block device is used by mount(1m) when mounting the filesystem, the character device by fsck when checking it. Both must be present in vfstab. The final portion of both device files identify the controller, target, LUN and slice/partition;
/etc/vfstab is covered in more details in Installing a new Disk under Solaris - /etc/vfstab |
||||||||||||||||||||||||
|
|||||||||||||||||||||||||