SUMMARY: BootPath in X86

From: Mossey Fahey <oab111_at_gmail.com>
Date: Fri Sep 19 2008 - 07:35:33 EDT
Hi All,
        Apologies for the delay, but it has taken me a while to get to the
bottom of this
issue. I am not sure if someone else has already posted this but here it is
anyways.

First get the device number of the bootpath

prtconf -vp | grep bios-boot-device

This gives something like
    bios-boot-device:  '80'

Then use the  /sbin/biosdev command to get the list of possible devices:
E.g
0x80 /pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@0,0
0x81 /pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@1,0
0x82 /pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@2,0
0x83 /pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@3,0

Match the numbers ==> 0x80 and that is the boot device. The only thing is
that
I cannot get the slice number.

Regards

oab111

===============================================================
Original Question
-------------------------

Hi Managers,
                   I am looking for a way to determine the bootpath on my
Solaris 10 (08/07) X86
server. In the sparc world, I would give the command the usual 'prtconf
-vp|grep bootpath'.

        bootpath:  '/ssm@0,0/pci@1a,600000/pci@2/scsi@2,1/disk@0,0:a'

>From this path I could work out which which is the boot device e.g.
/dev/dsk/c0t0d0s0

The reason I get the path in this way is because I do not know of any other
way in a bash
script, of correctly determining the boot device, given that the script
could be run on a
server that may or may not have its boot disks mirrored under SVM.

After calculating the boot device boot, I then use this to pass the '-C'
parameter to an lucreate
command. This works fine in the sparc world.

We are in the process of starting to support X86 in our business, so I would
like things to work as
before where possible. But here is where I am stuck. I cannot seem to
determine what the
bootpath is when the root disks are mirrored under SVM. 'prtconf' does not
report the bootpath
as it did in sparc architecture

The bootpath in the /boot/solaris/bootenv.rc file just shows the SVM pseudo
device

setprop bootpath '/pseudo/md@0:0,10,blk'


I don't know how to convert/translate it to a path similar to the format
from sparc world.

Any ideas/hints/advice etc. would be greatly appreciated

Thanking you in advance

oab111

P.S. I will summarise
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Sep 19 07:38:10 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:12 EST