BootPath in X86

From: Mossey Fahey (oab111@gmail.com)
Date: Tue Mar 11 2008 - 17:54:53 EST


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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:50 EDT