免费注册 查看新帖 |

Chinaunix

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

[SCO UNIX] 疑惑:RAID0+1 加arrayB sco507如何加? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-27 19:01 |只看该作者 |倒序浏览
HP380 G5

smart array p400 in slot 1
sas array A
Logical drive 1 ((286080 MB,RAID 1+0)
sas array B
Logical drive 2 (286080 MB,RAID 1+0)

我mkdev hd                      target id 选了很多  lun也选了很多
但是却还是加不了arrayB的磁盘。。。求助呀。。  我哪里错了?

论坛徽章:
0
2 [报告]
发表于 2011-04-27 21:12 |只看该作者
HP380 G5 + p400卡下,SCO 5.0.7添加第二个SCSI硬盘
安装过程中,主要涉及以下几点:
1、        在选择SCSI host adapter时,需要输入安装系统时的btld驱动名称,如hpsas。
2、        选择Target ID时,需要输入1,依次类推,如第三个硬盘为2。
3、        需要执行二次mkdev hd,第一次执行之后,需要重启。

# mkdev hd

Your rootdisk is attached to a SCSI controller.

Pick one of the choices below or you may quit and
invoke mkdev hd -u for a detailed usage message.

                1) Add a hard disk to an IDE controller
                2) Add a hard disk to a SCSI controller
                3) Add a hard disk to an IDA controller
                4) Add a hard disk to a  USB controller

Enter 1, 2, 3, 4or enter 'q' to quit: 2

Enter the prefix of the SCSI host adapter that supports this device
or press <Return> for the default: 'wd'
Enter h for a list of host adapters or enter q to quit:hpsas

Which 'hpsas' SCSI host adapter supports this device?
Select 0-1, or enter q to quit: 0

The Host Adapter parameters will be automatically configured

What SCSI Bus is this device attached to?
Press <Return> to use the default:0
Select 0-n, or h for help, or q to quit: 0

What is the Target ID for this device?
Select 0-15, or h for help, or q to quit: 1

What is the LUN of this device?
Press <Return> to use the default: 0
Select 0-7, or h for help, or q to quit: 0

You are about to add the following SCSI device:

      Host              Adapter
Type  Adapter  Device   Number  ID      LUN     Bus
-------------------------------------------------------
SCSI  hpsas    disk     0       1       0       0

注:以上对应到/etc/conf/cf.d/mscsi里的条目:
*ha     attach  number  ID      lun     bus *表示备注
*
wd      Srom    0       0       0       0  光驱
hpsas   Sdsk    0       0       0       0  第一个硬盘
hpsas   Sdsk    0       1       0       0  第二个硬盘
hpsas   Sdsk    0       2       0       0  第三个硬盘

Update SCSI configuration? (y/n) y

The SCSI configuration file has been updated.


A new kernel must be built and rebooted before disk configuration can continue.
Would you like to relink at this time? (y/n) y

        The UNIX Operating System will now be rebuilt.
        This will take a few minutes.  Please wait.

        Root for this system build is /

        The UNIX Kernel has been rebuilt.


Do you want this kernel to boot by default? (y/n) y
Backing up unix to unix.old
Installing new unix on the boot file system

The kernel environment includes device node files and /etc/inittab.
The new kernel may require changes to /etc/inittab or device nodes.


Do you want the kernel environment rebuilt? (y/n) y

The kernel has been successfully linked and installed.
        To activate it, reboot your system.

Setting up new kernel environment

After the system is rebooted with the new kernel,
reinvoke mkdev hd to initialize the new hard disk.

# shutdown -y -g0 -i6

# mkdev hd

Your rootdisk is attached to a SCSI controller.

Pick one of the choices below or you may quit and
invoke mkdev hd -u for a detailed usage message.

                1) Add a hard disk to an IDE controller
                2) Add a hard disk to a SCSI controller
                3) Add a hard disk to an IDA controller
                4) Add a hard disk to a  USB controller

Enter 1, 2, 3, 4or enter 'q' to quit: 2

Enter the prefix of the SCSI host adapter that supports this device
or press <Return> for the default: 'hpsas'
Enter h for a list of host adapters or enter q to quit:hpsas

Which 'hpsas' SCSI host adapter supports this device?
Select 0-1, or enter q to quit: 0

The Host Adapter parameters will be automatically configured

What SCSI Bus is this device attached to?
Press <Return> to use the default:0
Select 0-n, or h for help, or q to quit: 0

What is the Target ID for this device?
Select 0-15, or h for help, or q to quit: 1

What is the LUN of this device?
Press <Return> to use the default: 0
Select 0-7, or h for help, or q to quit: 0

During installation you may choose to overwrite all
or part of the present contents of your hard disk.

Do you wish to continue? (y/n) y

The hard disk installation program will now invoke /etc/fdisk.
Entering 'q' at the following menu will exit /etc/fdisk,
and the hard disk installation will continue.

If you wish to exit the entire installation at this menu,
press the <DEL> key.


        1. Display Partition Table
        2. Use Entire Disk for UNIX
        3. Use Rest of Disk for UNIX
        4. Create UNIX Partition
        5. Activate Partition
        6. Delete Partition
        7. Create Partition

Enter your choice or 'q' to quit: 1

Current Hard Disk Drive: /dev/rdsk/1s0

        +-------------+----------+-----------+---------+---------+---------+
        | Partition   | Status   | Type      |   Start |     End |    Size |
        +-------------+----------+-----------+---------+---------+---------+
        +-------------+----------+-----------+---------+---------+---------+

Total disk size: 4550475 tracks (256 reserved for masterboot and diagnostics)

Press <Return> to continue

到此就可以进行正常分区了。以后可以使用以下命令:

# fdisk -f /dev/rhd00 第一个硬盘
# fdisk -f /dev/rhd10 第二个硬盘
# fdisk -f /dev/rhd20 第三个硬盘

HP ML350G3添加硬盘的过程类似。
*ha     attach  number  ID      lun     bus *表示备注
*
wd      Srom    0       0       0       0
ad160   Sdsk    0       0       0       0
ad160   Sdsk    0       1       0       0

论坛徽章:
0
3 [报告]
发表于 2011-04-27 22:01 |只看该作者
执行sconf -v来查看你的第二个raid组对应磁盘的target id

论坛徽章:
0
4 [报告]
发表于 2011-04-28 10:06 |只看该作者
谢谢大家 !! 我试试看吧

论坛徽章:
0
5 [报告]
发表于 2011-05-06 12:11 |只看该作者
可以了, 是不是要重启以后 再一次MKDEV hd  才可以呢?

论坛徽章:
0
6 [报告]
发表于 2011-05-11 22:21 |只看该作者
可以了, 是不是要重启以后 再一次MKDEV hd  才可以呢?
bohuangcn 发表于 2011-05-06 12:11


对的。需要执行2次mkdev hd才能成功添加硬盘

论坛徽章:
0
7 [报告]
发表于 2011-05-21 09:26 |只看该作者
太感人了。。。。  好人哪。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP