Thanks, Alan:
EEprom only gives the device type for boot-device, boot-from or diag-device params. I try to find the device name in /dev/dsk/ctds format.
/etc/vfstab have a entry for "/" but the colume for "mount on boot" is usually "no".
So can I use "mount" command? Is it possible the mnttab will be different from vfstab? Thanks
Hi, y_p:
Thanks for this. The problem for this is that prtconf gives the first one in the list and it is not neccessarily the CURRENT boot device. Certainly it is vulnerable for non-activated reconfiguration.
Is it safe to use the device mounted to "/" currently?
Also I found a utility called "lubootdev" from Sun's Live Upgrade product. It seems does the trick. Ho w do u think? THanks
> Hi, y_p:
>
> Thanks for this. The problem for this is that prtconf
> gives the first one in the list and it is not
> neccessarily the CURRENT boot device.
Which list are you talking about?
I'm not sure what you mean by a *current* boot device. The system may have booted from a particular disk, and root may be currently mounted from one or more disks. They may not be the same.
Do you want the device that did the initial boot, or do you want a device that is currently backing root?
> Certainly it is
> vulnerable for non-activated reconfiguration.
Can you explain that more? I've often used the bootpath value and would like to know how it might be incorrect.
> Is it safe to use the device mounted to "/"
> currently?
Safe for what purpose?
--
Darren
if you use normal block device then just a df -k will do
if you use disk suite, then first do a df -k, then followed by a metastat -p to look at how your os disk is configured
#df -k
Filesystemkbytesusedavail capacity Mounted on
/dev/md/dsk/d020174761 6186559 1378645531%/
/proc 0000%/proc
mnttab 0000%/etc/mnttab
fd 0000%/dev/fd
swap22573008168 225728401%/var/run
swap22573168328 225728401%/tmp
# metastat -p
d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4
d3 -m d13 d23 1
d13 1 1 c1t0d0s3
d23 1 1 c1t1d0s3
d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0
if you use volume manager < ver 4 run the vxdisk list command to see which disks configured as your rootdg
c1t0d0s2slicedrootdiskrootdgonline
c1t1d0s2slicedrootdisk01rootdgonline
c2t3d0s2sliceddatadg03datadgonline
c2t8d0s2sliceddatadg04datadgonline
hope it helps
I am required to find out the same thing. How do you identify what boot device is prior to boot. What will showup. Or will the system comeup (just check script prior reboot). I think lubootdev does some tricks. I am still trying to get information how it works.
So my goal is -- execute some commands that to ensure the system will boot. If you have 30-40 admins and 3000 servers and people make changes bad/good. You are required to do simple /etc/system change and that requires reboot (you give the ops and say I changed the /etc/system) reboot the server. Now the server does not come up.
> I am required to find out the same thing. How do you
> identify what boot device is prior to boot.
Do you want to know the device that the system last booted from or the one that it will try to boot from in the future?
> What will
> showup. Or will the system comeup (just check script
> prior reboot). I think lubootdev does some tricks. I
> am still trying to get information how it works.
> So my goal is -- execute some commands that to ensure
> the system will boot. If you have 30-40 admins and
> 3000 servers and people make changes bad/good. You
> are required to do simple /etc/system change and that
> requires reboot (you give the ops and say I changed
> the /etc/system) reboot the server. Now the server
> does not come up.
Things like lubootdev and other utilities may change these values between the time that you check and the time that you reboot. So you have to account for that.
You can use 'prtconf -vp' to see the device aliases and you can use 'eeprom' to see the boot settings.
The physical keyswitch or the 'diag-switch?' setting may put the machine into diag mode. If so, it will try to boot from the devices in 'diag-device' in order.
If the machine is not in diag mode, it will try to boot from the devices listed in 'boot-device' in order.
The devices may be listed as either a hardware path or an nvalias. Hardware defined aliases are listed in the 'prtconf -vp' output. Other aliases may be defined at power-on in the 'nvramrc' section.
--
Darren