- 论坛徽章:
- 0
|
Solaris: 设置磁盘别名以及多重启动盘
soviet 发表于 2005年02月25日,16时19分
刚才我们在OK状态下设置了第二个引导盘。
下文是另外一种方法设置多盘启动。
例子中优先启动的本地盘是c0t0d0s2,第二启动的盘是c2t0d0s2.
Quick how-to on setting up Sun eeprom aliases for alternative boot disks.
Determining current booted disk
#prtconf -pv | grep bootpath
bootpath: '/pci@1f,4000/scsi@3/disk@0,0:a'
# ls -l /dev/dsk/c0t0d0s0
lrwxrwxrwx 1 root root 41 Jan 20 18:15 /dev/dsk/c0t0d0s2 ->;
../../devices/pci@1f,4000/scsi@3/sd@0,0:a
# ls -l /dev/dsk/c2t0d0s0
lrwxrwxrwx 1 root root 40 Jan 20 18:15 /dev/dsk/c2t0d0s2 ->;
../../devices/pci@4,4000/scsi@4/sd@0,0:a
# cat myaliases
devalias rootdisk /pci@1f,4000/scsi@3/disk@0,0:a
devalias rootmirror /pci@4,4000/scsi@4/disk@0,0:a
#
# eeprom nvramrc="`cat /myaliases`"
# eeprom boot-device='rootdisk rootmirror'
# eeprom diag-device='rootdisk rootmirror'
# eeprom "use-nvramrc?=true"
--
附件二:在OK状态下设置磁盘别名的方法
ok show-disks
a) /obio/SUNW,fdtwo@0,700000
b) /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd
c) /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd
q) NO SELECTION
Enter Selection, q to quit: b
/iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for
/iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd
ok
After typing show-disks, choose the letter that refers to the correct
controller (b in this example) then perform the nvalias command as shown by show-disks:
ok nvalias disk12 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd@2,0 ^ ^ ^ | (the control key and the y key pressed at the you will need to | same time will stuff this line up to /sd) add: "@target,0" | this is the alias that will be referenced for the boot-device
This example is shown for the drive being set to target 2 -otherwise change as needed.
then:
ok setenv boot-device disk12 ok reset |
|