Solaris Tips : Check current active boot device, when used in volume manager (SDS / SVM / VxVM)

During regular maintenance It is often a requirement  to us to determine which  disk we actually boot from when the root volume is under volume manager control.

 

Solaris on SPARC

 

Sparc with SVM 

# prtconf -pv|grep bootpath:
bootpath: ‘/sbus@3,0/SUNW,fas@3,8800000/sd@1,0:a’

Sparc with VxVM Root Volume

# eeprom |grep boot-device
boot-device=vx-rootdisk vx-mirrordisk net

If Any alias used to define boot-device then check the alias with

# eeprom |grep alias
nvramrc=devalias cdrom /ssm@0,0/pci@1f,700000/pci@1/SUNW,isptwo@4/sd@6,0:f
devalias vx-mirrordisk /ssm@0,0/pci@1f,700000/pci@1/SUNW,isptwo@4/sd@0,0:a
devalias vx-rootdisk /ssm@0,0/pci@1b,700000/pci@1/SUNW,isptwo@4/sd@0,0:a

Solaris on X86

 

X86 with SVM

Check the value field to determine the bootpath

# prtconf -v | sed -n ‘/bootpath/{;p;n;p;}’
name=’bootpath’ type=string items=1
value=’/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:a’

Check for the Bootpath to device mapping with below command

# ls -ltr /dev/rdsk |grep ‘/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:a’
lrwxrwxrwx 1 root root 63 Feb 20 02:12 c0t0d0s0 -> ../../devices/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:a,raw

that actually says boot device is c0t0d0s0

 

Alternatively you can use below procedure

# prtconf -vp |grep bios-boot-device
bios-boot-device: ’80’

# /sbin/biosdev
0x80 /pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0
0x81 /pci@0,0/pci10de,377@a/pci1000,1000@0/sd@1,0
0x82 /pci@0,0/pci10de,375@b/pci1000,1000@0/sd@0,0
0x83 /pci@0,0/pci10de,375@b/pci1000,1000@0/sd@1,0

# ls -ltr /dev/rdsk/*p* |grep ‘/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0
lrwxrwxrwx 1 root root 63 Feb 20 02:12 /dev/rdsk/c0t0d0p0 -> ../../devices/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:q,raw
lrwxrwxrwx 1 root root 63 Feb 20 02:12 /dev/rdsk/c0t0d0p1 -> ../../devices/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:r,raw
lrwxrwxrwx 1 root root 63 Feb 20 02:12 /dev/rdsk/c0t0d0p2 -> ../../devices/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:s,raw
lrwxrwxrwx 1 root root 63 Feb 20 02:12 /dev/rdsk/c0t0d0p3 -> ../../devices/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:t,raw
lrwxrwxrwx 1 root root 63 Feb 20 02:12 /dev/rdsk/c0t0d0p4 -> ../../devices/pci@0,0/pci10de,377@a/pci1000,1000@0/sd@0,0:u,raw

that shows out boot device is c0t0d0

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/

5 Responses

  1. Yogesh Raheja says:

    HI Ram, Very useful information about x-86. /sbin/biosdev cleared my doubt to determine No. 80.

  2. chetantare says:

    Hi,

    the server went to HUNG state due “fork error” so i reset the server from rsc promt.
    on server at OK promt i fire “sync” commands to generate crash dump but it will give following error,

    Ok> sync
    No callback routine has been installed
    Ok>

    Please help me……

    • vishu says:

      No call routine has been installed means Operating system is down. You can only get crashdump generated through SYNC when OS is instance is up, You should check the output of “showplatform” before you invoke sync at OBP

  3. putrafatih says:

    after replace the disk,
    bootpath in eeprom and prtconf not same,
    please help
    ======
    bash-3.2# eeprom|grep bootpath
    bootpath=/pci@0,0/pci8086,340a@3/pci1000,3050@0/iport@ff/disk@w5000cca0258e9cad,0:a ==> new disk
    bash-3.2#
    bash-3.2# prtconf -v|sed -n ‘/bootpath/{;p;n;p;}’
    name=’bootpath’ type=string items=1
    value=’/pci@0,0/pci8086,340a@3/pci1000,3050@0/iport@ff/disk@w5000c500430d1ddd,0:a’ ==> old disk
    bash-3.2#
    ====

  1. September 16, 2015

    […] Read – Check current active boot device, when used in volume manager (SDS / SVM / VxVM) […]

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