Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2001 > February 2001
Questions and Answers

Jim McKinstry and Amy Rich

I recently answered a Solaris question and said that you should get to an "ok" prompt to set an eeprom variable. I received a couple of emails letting me know that a "better way" is to use the eeprom command (e.g., eeprom boot-device='disk1:a disk net'). Todd A. Fiedler sent me a better, well-written explanation than what I originally provided:

The fourth question deals with determining the logical name (of a disk) from the instance name. While the author's answer was correct, I don't feel that it was really the answer the writer was looking for. A better way to illustrate this is to point out the relationship between the devices under /dev/dsk and the path into/devices that the symbolic links point to. An example is outlined below (some elements of the p output are omitted):

   
    $ ls -l c*t*d*s2
   
    c0t0d0s2 -> ../../devices/pci@1f,0/pci@1,1/ide@3/dad@0,0:c
    c0t1d0s2 -> ../../devices/pci@1f,0/pci@1,1/ide@3/dad@1,0:c
    c0t2d0s2 -> ../../devices/pci@1f,0/pci@1,1/ide@3/sd@2,0:c
    
You can then look in the /etc/path_to_inst file for the disk in question.

    $ grep dad@0,0 /etc/path_to_inst


    "/pci@1f,0/pci@1,1/ide@3/dad@0,0" 0 "dad"
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^  ^^^
             physical path            |   |
                                      |   +--< device type
                                      |
                                      ^
                                instance number
    
You can see that the instance name for the logical device c0t0d0 is therefore dad0. The instance name is useful when viewing the output of commands like iostat -x and sar -d. Listing 1 is a script I like to use for determining this relationship between disks.



MarketPlace

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Automate Software Builds with Visual Build Pro
Easily create an automated, repeatable process for building and deploying software.

WinDev 12 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.

Wanna see your ad here?