SUMMARY: boot off alternate root drive.

From: <egold_at_fsa.com>
Date: Fri Feb 04 2005 - 17:05:08 EST
Thanks to Lance and Anatoliy who helped me with the answer:

Lance gave me this excellent answer with all the info I needed.
Anatoliy and Ken notes to check the /etcc/vfstab on the second disk or it
wont be useable to boot from.

Thanks everyone!



SOLUTION:

do an ls -l of /dev/dsk/c1t1d0s0

should point to something like this:

../../devices/pci@9,600000/SUNW,qlc@2/fp@0,0/disk${WWN},0:a

where ${WWN} is your worldwide name for that disk.

so your current boot device is:
/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100000c50dcffef,0:a  (which is
c1t0d0s0)

your second disk will be whatever is after ../../devices from the ls -l of
/dev/dsk/c1t1d0s0

so then in prom do:

     ok nvalias disk1 ${string}

where ${string} is like /pci@9,600000/SUNW,qlc@2/fp@0,0/disk${WWN},0:a
(that you got from ls -l /dev/dsk/c1t1d0s0)

you should also be able to get the disk device path from:

     ok show-disks


but i like to get it from the OS side, just my preference

-----Original Message-----
Hi Gurus,
I have some sun sparc servers (280s, 480s) running solaris 8.
Instead of mirroring the root drives, i use ufsdump piped to ufsrestore,
prtvtoc and fmthard to copy the root disk (c1t0d0s0) to another drive in my
server (c1t1d0s0).
This works fine, but I have never tried booting off the second disk to
test.


My question is this:

How would I know what device to boot from at the ok prompt if i want to
boot off the second disk?

If the answer is to "boot disk1", what if there was no devalias of disk1 or
disk0 already setup.

How would I know the full device path to use?

Thank you in advance.


Here are my OK prompt settings:

{3} ok printenv
Variable Name         Value                          Default Value

test-args
diag-passes           1                              1
local-mac-address?    false                          false
silent-mode?          false                          false
scsi-initiator-id     7                              7
oem-logo                                             No default
oem-logo?             false                          false
oem-banner                                           No default
oem-banner?           false                          false
ansi-terminal?        true                           true
screen-#columns       80                             80
screen-#rows          34                             34
ttya-rts-dtr-off      false                          false
ttya-ignore-cd        true                           true
ttya-mode             9600,8,n,1,-                   9600,8,n,1,-
output-device         ttya                           ttya
input-device          ttya                           ttya
auto-boot-on-error?   false                          false
load-base             16384                          16384
auto-boot?            true                           true
boot-command          boot                           boot
diag-file
diag-device           /pci@9,600000/SUNW,qlc@2 ...   net
boot-file
boot-device           /pci@9,600000/SUNW,qlc@2 ...   disk net
use-nvramrc?          false                          false
nvramrc
security-mode         none                           No default
security-password                                    No default
security-#badlogins   0                              No default
fcode-debug?          false                          false
diag-out-console      false                          false
post-trigger          error-reset power-on-res ...   error-reset
power-on-res ...
diag-script           normal                         normal
diag-level            min                            min
diag-switch?          false                          false
obdiag-trigger        error-reset power-on-res ...   error-reset
power-on-res ...
error-reset-recovery  boot                           boot

{3} ok
{3} ok
{3} ok printenv boot-device
boot-device =
/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100000c50dcffef,0:a disk net
{3} ok show-devs
/pci@9,600000
/pci@9,700000
/pci@8,600000
/pci@8,700000
/memory-controller@3,400000
/SUNW,UltraSPARC-III+@3,0
/memory-controller@2,400000
/SUNW,UltraSPARC-III+@2,0
/memory-controller@1,400000
/SUNW,UltraSPARC-III+@1,0
/memory-controller@0,400000
/SUNW,UltraSPARC-III+@0,0
/virtual-memory
/memory@m0,a0
/aliases
/options
/openprom
/chosen
/packages
/pci@9,600000/SUNW,qlc@2
/pci@9,600000/network@1
/pci@9,600000/SUNW,qlc@2/fp@0,0
/pci@9,600000/SUNW,qlc@2/fp@0,0/disk
/pci@9,700000/network@2
/pci@9,700000/usb@1,3
/pci@9,700000/ebus@1
/pci@9,700000/ebus@1/serial@1,400000
/pci@9,700000/ebus@1/rsc-console@1,3083f8
/pci@9,700000/ebus@1/rsc-control@1,3062f8
/pci@9,700000/ebus@1/pmc@1,300700
/pci@9,700000/ebus@1/gpio@1,300600
/pci@9,700000/ebus@1/rtc@1,300070
/pci@9,700000/ebus@1/i2c@1,30
/pci@9,700000/ebus@1/i2c@1,2e
/pci@9,700000/ebus@1/power@1,30002e
/pci@9,700000/ebus@1/bbc@1,0
/pci@9,700000/ebus@1/flashprom@0,0
/pci@9,700000/ebus@1/i2c@1,30/rscrtc@0,d0
/pci@9,700000/ebus@1/i2c@1,30/fru@0,ae
/pci@9,700000/ebus@1/i2c@1,30/fru@0,a8
/pci@9,700000/ebus@1/i2c@1,30/fru@0,a6
/pci@9,700000/ebus@1/i2c@1,30/fru@0,a2
/pci@9,700000/ebus@1/i2c@1,30/fru@0,a0
/pci@9,700000/ebus@1/i2c@1,30/temperature-sensor@0,9c
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,82
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,80
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,72
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,70
/pci@9,700000/ebus@1/i2c@1,30/temperature@0,52
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,4c
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,46
/pci@9,700000/ebus@1/i2c@1,30/ioexp@0,44
/pci@9,700000/ebus@1/i2c@1,30/temperature@0,34
/pci@9,700000/ebus@1/i2c@1,30/temperature@0,32
/pci@9,700000/ebus@1/i2c@1,30/temperature@0,30
/pci@9,700000/ebus@1/i2c@1,2e/fru@4,aa
/pci@9,700000/ebus@1/i2c@1,2e/fru@4,a8
/pci@9,700000/ebus@1/i2c@1,2e/idprom@4,a4
/pci@9,700000/ebus@1/i2c@1,2e/nvram@4,a4
/pci@9,700000/ebus@1/i2c@1,2e/fru@4,a2
/pci@9,700000/ebus@1/i2c@1,2e/fru@4,a0
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,ae
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,ac
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,aa
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,a8
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,a6
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,a4
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,a2
/pci@9,700000/ebus@1/i2c@1,2e/fru@3,a0
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,ae
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,ac
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,aa
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,a8
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,a6
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,a4
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,a2
/pci@9,700000/ebus@1/i2c@1,2e/fru@2,a0
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,ae
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,ac
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,aa
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,a8
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,a6
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,a4
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,a2
/pci@9,700000/ebus@1/i2c@1,2e/fru@1,a0
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,ae
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,ac
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,aa
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,a8
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,a6
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,a4
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,a2
/pci@9,700000/ebus@1/i2c@1,2e/fru@0,a0
/pci@8,600000/SUNW,qlc@2
/pci@8,600000/SUNW,qlc@1
/pci@8,600000/SUNW,qlc@2/fp@0,0
/pci@8,600000/SUNW,qlc@2/fp@0,0/disk
/pci@8,600000/SUNW,qlc@1/fp@0,0
/pci@8,600000/SUNW,qlc@1/fp@0,0/disk
/pci@8,700000/ide@6
/pci@8,700000/ide@6/cdrom
/pci@8,700000/ide@6/disk
/openprom/client-services
/packages/ufs-file-system
/packages/SUNW,fru-device
/packages/SUNW,i2c-ram-device
/packages/kbd-translator
/packages/obp-tftp
/packages/dropins
/packages/SUNW,debug
/packages/terminal-emulator
/packages/disk-label
/packages/deblocker
/packages/SUNW,builtin-drivers
{3} ok
{3} ok
{3} ok


{3} ok devalias
disk1                    /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0
disk0                    /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
disk                     /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
ide                      /pci@8,700000/ide@6
scsi                     /pci@9,600000/SUNW,qlc@2
cdrom                    /pci@8,700000/ide@6/cdrom@0,0:f
net                      /pci@9,700000/network@2
net1                     /pci@9,600000/network@1
net0                     /pci@9,700000/network@2
flash                    /pci@9,700000/ebus@1/flashprom@0,0
idprom                   /pci@9,700000/ebus@1/i2c@1,2e/idprom@4,a4
nvram                    /pci@9,700000/ebus@1/i2c@1,2e/nvram@4,a4
i2c1                     /pci@9,700000/ebus@1/i2c@1,30
i2c0                     /pci@9,700000/ebus@1/i2c@1,2e
bbc                      /pci@9,700000/ebus@1/bbc@1,0
rsc-console              /pci@9,700000/ebus@1/rsc-console@1,3083f8
rsc-control              /pci@9,700000/ebus@1/rsc-control@1,3062f8
ttya                     /pci@9,700000/ebus@1/serial@1,400000:a
pci9b                    /pci@9,700000
pci9a                    /pci@9,600000
pci8b                    /pci@8,700000
pci8a                    /pci@8,600000
ebus                     /pci@9,700000/ebus@1
name                     aliases
{3} ok banner
Sun Fire 480R, No Keyboard
Copyright 1998-2003 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.13.2, 16384 MB memory installed, Serial #59126299.
Ethernet address 0:3:ba:86:32:1b, Host ID: 8386321b.



{3} ok


____________________________________
This e-mail message is for the sole use of the intended recipient(s) and
may contain proprietary, confidential and/or privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.  If you
are not the intended recipient (or an employee or agent responsible to
deliver it to the intended recipient), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply e-mail.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


____________________________________
This e-mail message is for the sole use of the intended recipient(s) and
may contain proprietary, confidential and/or privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.  If you
are not the intended recipient (or an employee or agent responsible to
deliver it to the intended recipient), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply e-mail.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Feb 4 17:05:56 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:43 EST