Root disk mirroring - alternate boot

Posted on 2006-06-12
Last Modified: 2013-12-27
I have made a root disk mirroring on a SUN Netra 240.
I have configured the metadb using the file and vfstab file as well, the mirroring is working fine as I configured.
But, I would like the server to be able to boot up from the 2nd HD (slot/target 1).

How do I do that ?


Question by:barlevi

Expert Comment

ID: 16885037
At the OK prompt you can just type boot disk1 to boot from the 2nd disk.  By default the boot params will boot off of disk0 first, then try a boot net.  You can modify those paramaters so that you first boot off of disk0, then if disk0 fails, set it so it tries disk1 next.  

To make the change permanent, do a 'man eeprom'

Author Comment

ID: 16886553
I didnt mean to do it manually, how can I configure the server to do it automatically ?
I have tried:
ok> setenv boot-device disk0 disk1

but it didnt work as well

Expert Comment

ID: 16886829
Well, if you want to boot off of disk 1 as the primary, then you would swap the order of those.  Plus you should issue an 'nvstore' after those commands.  Also, I'm not sure if you need to specify disk0, could be just disk.

setenv boot-device disk1 disk

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

LVL 11

Assisted Solution

jekl2000 earned 100 total points
ID: 16887650
ok> devalias
Will show you the aliases of your boot devices. Someone may have named the mirror disk different. Make sure the device path in the alias is correct.

ok> printenv boot-device
Will show you the current boot device name (disk or disk0) and the name of the mirror if configed as a boot device.
LVL 38

Accepted Solution

yuzh earned 400 total points
ID: 16890963
1) you need to make sure that you have done installboot for the 2nd disk, eg:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0

2) when you change the OBP, you need to remember to set:
   # eeprom "use-nvramrc?=true"
    PS: a lot of online doc miss it out !

3) have a look at the example in the following page for detail procedures:

Author Comment

ID: 16893250
ok guys, thanks.

it will take me some days to test it, please bare with me


Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now