I seem to have answered my own question with the following one liner:

luxadm display /dev/rdsk/<device> |head -19| egrep "Controller|Device
Address" | sed 's,.*Controller.*/devices,boot-device=,' | xargs | sed
's, Device Address ,/disk@w,' | sed 's/\(,[0-9]*\)$/\1:a/'

This only grabs the first device.  Trimming the "head  -19" off and
doing a little more around
the sed "boot-device=" replacement for handling multiple paths is
probably needed. I have
4 paths.

Thoughts?

Ben

On Wed, Jun 29, 2011 at 10:46 AM, Ben Taylor <[email protected]> wrote:
> Been through the documentation and admin guide.  Realize that one set of 
> T5440's
> LDOM's I've got setup are using a non-mpxio path in the eeprom as the
> boot device.
>
> Has anyone got a script or something to hand a ctd device in a Solaris
> LDOM using
> an IO domain, and have it emit the proper path for an eeprom boot-device path?
>
> Does anyone know if using the mpxio path (/devices/scsi_vhci/xxxxx) will work?
>
> Thanks,
>
> Ben
>
_______________________________________________
ldoms-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss

Reply via email to