Solaris SVM – How to check on a running machine which disk was used to boot.

Solaris SVM - finding active boot disk used to bootIt is often possible that we boot from a Solaris machine from one of the root mirror disk, and after sometime we forget current active disk. And the information of active boot disk is important while we perform SVM maintenance disks. This post will help you to identify the active boot disk used to boot the Solaris.

First of all most easiest way to check the current active boot disk is look at the file – /boot/solaris/bootenv.rc . But, if you think this file might have been modified after the recent boot by some reasons, then probably you need below set of instruction to find the active disk.

To check which disk was accessed by BIOS to load GRUB and start the boot process, run these commands:

 
# prtconf -vp |grep bios-boot-device
    bios-boot-device:  ’80’
 
# /sbin/biosdev
0x80 /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0
0x81 /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
 
# format 
AVAILABLE DISK SELECTIONS:
       0. c0t2d0 <DEFAULT cyl 8872 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
       1. c0t3d0 <DEFAULT cyl 8872 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0
To check which disk was specified by the bootpath parameter in /boot/solaris/bootenv.rc, run these commands:
# prtconf -v | sed -n ‘/bootpath/{;p;n;p;}’
        name=’bootpath’ type=string items=1
            value=’/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0:a’
 
# format 
AVAILABLE DISK SELECTIONS:
       0. c0t2d0 <DEFAULT cyl 8872 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
       1. c0t3d0 <DEFAULT cyl 8872 alt 2 hd 255 sec 63>
          /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

3 Responses

  1. Anantha Shankarnarayan says:

    Hi Ram,

    Good and informative article. Do include procedure to check boot disk from OK prompt as well.
    Many thanks !!!

  1. September 16, 2015

    […] Read – How to check on a running machine which disk was used to boot […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us