Saturday, October 20, 2012

How to install bootblk


root@pr01smx # uname -m
sun4v
root@pr01smx # cd /usr/platform/sun4v/lib/fs/ufs
root@pr01smx # installboot bootblk /dev/rdsk/c0t1d0s0
root@pr01smx #vi /etc/system (and make entry in last line set md:mirrored_root_flag=1)
root@pr01smx # more /etc/system
root@pr01smx #
root@pr01smx # init 0
{0} ok printenv boot-device
boot-device =           disk net
{0} ok printenv
Variable Name           Value                          Default Value

ttya-rts-dtr-off        false                          false
ttya-ignore-cd          true                           true
keyboard-layout         US-English
reboot-command
security-mode           none                           No default
security-password                                      No default
security-#badlogins     0                              No default
verbosity               min                            min
pci-mem64?              true                           true
diag-switch?            false                          false
local-mac-address?      true                           true
fcode-debug?            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-mode               9600,8,n,1,-                   9600,8,n,1,-
output-device           virtual-console                virtual-console
input-device            virtual-console                virtual-console
auto-boot-on-error?     false                          false
load-base               16384                          16384
auto-boot?              false                          true
network-boot-arguments
boot-command            boot                           boot
boot-file
boot-device             disk net                       disk net
multipath-boot?         false                          false
boot-device-index       0                              0
use-nvramrc?            false                          false
nvramrc
error-reset-recovery    boot                           boot

{0} ok nvalias mirror-disk /pci@0,600000/pci@0/scsi@1/disk@0,0:a


{0} ok devalias
ttya                     /ebus@c0/serial@0,ca0000
net3                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0,                                                                                                                                                             3
net2                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0,                                                                                                                                                             2
net1                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0,                                                                                                                                                             1
net0                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0
net                      /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0
cdrom                    /pci@400/pci@0/pci@9/pci@0/usb@0,2/hub@2/storage@3/disk                                                                                                                                                             @0:f
disk3                    /pci@400/pci@0/pci@1/scsi@0/disk@3
disk2                    /pci@400/pci@0/pci@1/scsi@0/disk@2
disk1                    /pci@400/pci@0/pci@1/scsi@0/disk@1
disk0                    /pci@400/pci@0/pci@1/scsi@0/disk@0
disk                     /pci@400/pci@0/pci@1/scsi@0/disk@0
scsi                     /pci@400/pci@0/pci@1/scsi@0
virtual-console          /virtual-devices/console@1
name                     aliases
{0} ok setenv boot-device disk0 disk1
boot-device =           disk0 disk1
{0} ok devalias
ttya                     /ebus@c0/serial@0,ca0000
net3                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0,                                                                                                                                                             3
net2                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0,                                                                                                                                                             2
net1                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0,                                                                                                                                                             1
net0                     /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0
net                      /pci@400/pci@0/pci@8/pci@0/pci@8/pci@0/pci@c/network@0
cdrom                    /pci@400/pci@0/pci@9/pci@0/usb@0,2/hub@2/storage@3/disk                                                                                                                                                             @0:f
disk3                    /pci@400/pci@0/pci@1/scsi@0/disk@3
disk2                    /pci@400/pci@0/pci@1/scsi@0/disk@2
disk1                    /pci@400/pci@0/pci@1/scsi@0/disk@1
disk0                    /pci@400/pci@0/pci@1/scsi@0/disk@0
disk                     /pci@400/pci@0/pci@1/scsi@0/disk@0
scsi                     /pci@400/pci@0/pci@1/scsi@0
virtual-console          /virtual-devices/console@1
name                     aliases
{0} ok printenv boot-device
boot-device =           disk0 disk1
{0} ok boot disk0

No comments:

Post a Comment