免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1938 | 回复: 0
打印 上一主题 下一主题

Solaris: 设置磁盘别名以及多重启动盘 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-25 16:26 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP