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

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.

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

Domain Name Registrations, Web Hosting, Email
Pay less for Domain Names, Increase your company's bottom line - get a raise. Accredited domain name registrar, ZippyNames.us : Discount bulk transfers, email, webhosting, dedicated servers. Earn money as a domain name reseller - better discounts!

Wanna see your ad here?