Question

Boot to different disks from Open Boot Prompt

Asked by: barthalamu

I have a Sun Enterprise E3500 on Solaris 8 that have 3 identical internal Sun 18G fiber channel disks.  The problem is that, they look IDENTICAL so I don't know how to boot to a different disk from the Open Boot Prompt.  Here is what they look like from the format command:

AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717a582,0

       1. c0t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717533a,0

       2. c0t2d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203718a707,0


I would like to boot from disk number 2 (c0t2d0) as it is a copy of disk number 0.
From the Open Boot Prompt, this is what shows up:

{a} ok devalias
screen                   /sbus@2,0/cgsix@1,0
disk                     /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@0,0
disksocal                /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@0,0
disk                     /sbus@3,0/SUNW,fas@3,8800000/sd@0,0
diskbrd                  /sbus@3,0/SUNW,fas@3,8800000/sd@a,0
diskisp                  /sbus@3,0/QLGC,isp@0,10000/sd@0,0
net                      /sbus@3,0/SUNW,hme@3,8c00000
cdrom                    /sbus@3,0/SUNW,fas@3,8800000/sd@6,0:f
tape                     /sbus@3,0/SUNW,fas@3,8800000/st@4,0
scsi                     /sbus@3,0/SUNW,fas@3,8800000
disk0                    /sbus@3,0/SUNW,fas@3,8800000/sd@0,0
disk1                    /sbus@3,0/SUNW,fas@3,8800000/sd@1,0
disk2                    /sbus@3,0/SUNW,fas@3,8800000/sd@2,0
disk3                    /sbus@3,0/SUNW,fas@3,8800000/sd@3,0
disk4                    /sbus@3,0/SUNW,fas@3,8800000/sd@4,0
disk5                    /sbus@3,0/SUNW,fas@3,8800000/sd@5,0
tape0                    /sbus@3,0/SUNW,fas@3,8800000/st@4,0
tape1                    /sbus@3,0/SUNW,fas@3,8800000/st@5,0
ttya                     /central/fhc/zs@0,902000:a
ttyb                     /central/fhc/zs@0,902000:b
keyboard                 /central/fhc/zs@0,904000
keyboard!                /central/fhc/zs@0,904000:forcemode


When I try to 'boot disk' or 'boot disksocal', it boots to the first disk (c0t0d0) every time.
Here is when I see from a show-disks at the OBP:

{a} ok show-disks
a) /sbus@7,0/QLGC,isp@0,10000/sd
b) /sbus@7,0/SUNW,fas@3,8800000/sd
c) /sbus@6,0/QLGC,isp@1,10000/sd
d) /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd
e) /sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd
f) /sbus@3,0/QLGC,isp@0,10000/sd
g) /sbus@3,0/SUNW,fas@3,8800000/sd
h) /sbus@2,0/SUNW,socal@d,10000/sf@1,0/ssd
i) /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd
q) NO SELECTION


Please let me know if you have any ideas.  I'm sure it's something minor that I am just missing.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-09-30 at 15:55:02ID21580377
Tags

boot

,

solaris

,

prompt

,

disk

,

open

Topic

Sun Solaris

Participating Experts
5
Points
500
Comments
21

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. solaris boot
    iam using solaris 2.7 for intel and i want to know about how to create a boot floppy from the command line. i.e from the # prompt,can anyone tell me how to do it since iam a novice to solaris.
  2. solaris booting
    Hi, When I boot the solaris OS on the blade 1000 machine. It is showing some error. It was working perfectly till yesterday. The error says Boot Device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@W2100002037e6bae9,0:a file an d args: ?{ok} What do I do now? will be waiting for...
  3. Sun approved keyboard
    Hi: I have a Solaris 10 x86 System. I have tried a few different keyboards but none of them work properly. I have looked at the Sun HCL but it doesn't seem to list any approved keyboards. I am looking for the manufacturer and model of a keyboard that is guaranteed to work ...
  4. Accessing the OK prompt without a Sun keyboard
    Have a Sunfire 240V and am attempting to add a DVD drive to the machine - Steps I understood needed to do this was physically insert the drive when the machine was off - Boot the machine and go to the OK prompt using STOP-A - Then do a reconfiguration reboot by typing boot -r...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Fireside_ChatPosted on 2005-09-30 at 19:58:38ID: 14997377

Have you tried boot disk1, or disk2, or disk3?

Also I noticed that you have to alias's for "disk."

It is late and I had a SUPEr long day - so I am not sure if I am thinking straight.  I will take another look at this tomorrow.

 

by: barthalamuPosted on 2005-09-30 at 20:19:02ID: 14997403

Thanks for your help.

Yes, disk1, disk2, ... disk5 are scsi disks that just contain data, not a Solaris install. (They show up in the format command, but I just omitted those disks...sorry for the confusion)  The "disk" alias is the first fiber channel disk, which is the default boot device.  I would like to boot to the second one, but don't know how to create an alias that identifies the second fiber channel disk, based on the output I see from the format command.  All three fiber channel disks seem to have an almost identical phyical address.

Thanks.

 

by: Fireside_ChatPosted on 2005-09-30 at 20:57:11ID: 14997485

How good are you with openboot?  I got around this problem once by just pulling the "true" boot disk out of the system then the system found the other disk and I could create a new alias after the fact once I put the original boot disk back in place.  However.... I have also had a system that just won't find a boot disk once I pull the original boot disk.  

Here is a great openboot reference that sun offers online.

http://docs.sun.com/app/docs/doc/805-4434/6j46vcb4j?a=view

 

by: barthalamuPosted on 2005-09-30 at 21:02:52ID: 14997499

Thanks for the help.  Not very good with openboot.  I will check this out.
Unfortunately the system is in a colocation facility about 70 miles away and is a production server.  I would have to think of a better reason to try this :)

 

by: Fireside_ChatPosted on 2005-10-01 at 08:31:51ID: 14998760

Ouch you are right.

I would look through the open boot book on Sun's web page.  You are going to need to use open boot tools to make sure your alias is actually set correctly.

Specifcally research the "select" command in the openboot system as well as the "show-children" command.  With those commands you should be able to get the "true" address of those other disks and create a usable device alias.

 

by: yokelPosted on 2005-10-01 at 11:29:03ID: 14999338

Have you tried booting from the real dev address from the boot prom? ie.
{a} ok boot /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717533a,0

or

{a} ok boot  /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203718a707,0

or create aliases for the two disks and then boot using them. ie.

{a} ok nvalias disk6 /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717533a,0

and

{a} ok nvalias disk7 /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203718a707,0

then type;

boot disk6

or

boot disk7

Cheers

 

by: yuzhPosted on 2005-10-02 at 18:08:01ID: 15003682


You can also use "eeprom" commad to set the alias instaed of useing OBP promt command.

you can backup printer a copy of your OBP settings to a file:
eeprom > myOBP.txt

then au as root (or login as root) to set a disk alias for your mirror
boot disk.

have a look at the example in the following page to learn how to
do it:

http://www.batcom-it.net/index.php?option=com_content&task=view&id=41&Itemid=41

man eeprom

 

by: barthalamuPosted on 2005-10-04 at 08:08:38ID: 15014667

Fireside_Chat:
So far I have not found what I am looking for. Thank you for the help though.

yokel:
Unfortunately it does not recognize these as boot devices.  Thanks.

yuzh:
Thank you for the tip. I am still having problems booting from the second disk though.


Thanks for the help everyone.  Any other ideas?  I haven't found any other help online about this either, unless I'm not looking in the right places.

 

by: yokelPosted on 2005-10-04 at 08:14:32ID: 15014724

These 3 disks are mirrored are they? Do you know they are bootable?
What is outputted to the screen when you try to boot using the 2nd and 3rd disks?

 

by: barthalamuPosted on 2005-10-04 at 11:08:43ID: 15016257

yokel:

The second disk is a copy of the first.  The message I receive is:
Can't open boot device

 

by: yuzhPosted on 2005-10-04 at 18:36:27ID: 15018871

Is the disk you want to boot up a bootable disk? (eg, have
you done

installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/your-disk-name

if the 2nd disk is a identical one to your primary boot disk, you need
to edit the vfstab in your 2nd disk to use the correct disk devices.
(mount points, the file is under etc dir).

 

by: barthalamuPosted on 2005-10-04 at 18:42:32ID: 15018919

Yes, a good thought.  I did do an installboot though.  Thanks for the thought.

 

by: yuzhPosted on 2005-10-10 at 20:40:01ID: 15057515

1. Make sure you have created a device alias for your 2nd boot disk
2. Add the new device alias  to "boot-device"
3. Edit  the vfstab in your 2nd disk to use the correct disk devices.

   see:
   http://www.batcom-it.net/index.php?option=com_content&task=view&id=41&Itemid=41
   
   also "Using show-disks to create devalias for Ultra[TM] disk board boot drive":
   http://www.filibeto.org/sun/lib/hardware/enterprise_4500/diskbrd_aliases.html

 

by: jephilcPosted on 2005-10-28 at 16:52:50ID: 15183450


Hi
Assuming your alias is correct, such as disk2, then you also need to say which partition you are going to boot from.

So for example,
you can either setup your OpenBoot variable "boot-device" to be disk2:a (to boot from slice 0 of this disk)

or you can type "boot disk2:a" from the ok prompt.
This should explain why you get the message
"Can't open boot device"

You would also need to edit your /etc/vfstab to point root (/) at the correct /dev/ device (such as c0t2d0s0)

Good luck

John

 

by: barthalamuPosted on 2005-10-28 at 17:23:09ID: 15183555

jephilc:
So what would I need to do and what is the syntax to boot to c0t1d0s0 instead of c0t0d0s0?  The following three disks (listed from the format command) seem identical from the Open Boot Prompt:

# format
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717a582,0

       1. c0t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717533a,0

       2. c0t2d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203718a707,0


Thank you very much for your help.

 

by: shivsaPosted on 2005-10-29 at 13:00:00ID: 15186013

try
at ok prompt.
ok nvalias disk1 /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@1,0
ok nvalias disk2 /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@2,0

Now if these 2 other disk has installable os, then they should boot to different disk than the c0t0d0

to check if they have installable os, u may want to check it first from c0t0d0.
boot system to default disk c0t0d0

then mount the partition like this.
#mount /dev/dsk/c0t1d0s0 /mnt
#cat /mnt/etc/release

see if it shows the installed os on other disk.

 

by: jephilcPosted on 2005-10-29 at 15:49:33ID: 15186373


I would test this out first, so if you want to be able to boot from c0t1d0s0, then set up the following alias

ok  nvalias testboot /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203717533a,0:a

You would also want to modify your /etc/vfstab to make /dev/dsk/c0t1d0s0 (and /dev/rdsk...) mount the "/" file system
as well as any other file systems that reside on the root disk (such as swap and maybe /var?)

Back at the ok prompt you should be able to run
ok  boot testboot


If that works OK then you can create proper aliases for the disks you want, I sometimes call them
vxbootdisk and vxmirror if I have a VXVM mirrored boot disk.
Having created the proper aliases and run "nvstore" to save them, then edit the OpenBoot variable "boot-device"
to go to vxbootdisk vxmirror, so that it tries each in turn (going to the mirror if the primary disk is unavailable)


Hope this helps

John

 

by: jephilcPosted on 2006-01-20 at 15:35:12ID: 15753770

You could always share out the points. I answered the question but the author hasn't responded.

Cheers

John

 

by: barthalamuPosted on 2006-01-20 at 15:38:38ID: 15753782

I'm very sorry about the delay.  Thanks for everyone's help.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...