how can findout boot disk from at the root prompt

Dear,how can we findout which is current boot disk from at prompt is there any command to findout the samethankssiva
[151 byte] By [sivabaskaran] at [2007-11-25 23:40:46]
# 1
Do you mean "from the ok prompt" or "from a prompt"?
Red_Oregon at 2007-7-5 18:48:31 > top of Java-index,General,Sys Admin Best Practices...
# 2
# eeprom | grep -i boot
timevans at 2007-7-5 18:48:31 > top of Java-index,General,Sys Admin Best Practices...
# 3

Hi,

# eeprom | grep -i boot

Will tell you what the OBP is set to boot, if you get a "boot-device rootdisk rootmirror net" among other output, then the device booted from could be any of them.

To find out which disk the system booted from in the current running environment, I found the following command very useful:

# prtconf -vp | grep bootpath

This will give you the pysical path to the boot device, you can work out which disk it is from the /devices and /dev dirs.

HTH

Tom

P.S. If anyone else knows a better one, please let me know, it took me long enough to work that one out.

tbeardsell1978 at 2007-7-5 18:48:31 > top of Java-index,General,Sys Admin Best Practices...
# 4
Dear,if can tell me both way might be betterthankssiva
sivabaskaran at 2007-7-5 18:48:31 > top of Java-index,General,Sys Admin Best Practices...
# 5
Hi, not too sure what you are getting at with the last post, but if you mean from the OBP / ok> prompt then:ok> printenv boot-deviceHTHTom
tbeardsell1978 at 2007-7-5 18:48:31 > top of Java-index,General,Sys Admin Best Practices...
# 6

To determine which mirror you are booted off of, use:

#prtconf -vp | grep bootpath eeprom | grep devalias

vx-rootdisk means the primary submirror or c0t0. vx-rootmirror means the secondary submirror or c1t0.

vx-rootdisk and vx-rootmirror are the aliases set at the OBP.

If this is not the right command, kindly let me know what you are searching in more detail.

Regards

Britto

bravobritto at 2007-7-5 18:48:31 > top of Java-index,General,Sys Admin Best Practices...