- 论坛徽章:
- 0
|
2.4 磁盘系统准备\r\n\r\n当我们明确运行DataWare的基本条件后时,就可以开始磁盘系统的挂接工作,首先必须去作RAID设置。RAID设置的主要目的是规划磁盘存储空间,例如:设置RAID级别,作Array组到Lun的映射。关于RAID设置,请参考“双机容错硬件培训“。\r\n\r\n在RAID设置和初始化完成后,你可以将RAID系统挂接到服务器上。创建的文件系统路径和设备文件名称将决定DataWare的某些配置信息。\r\n\r\n在DataWare双机容错系统中,数据库空间全部在磁盘阵列柜RAID逻辑盘中。为了利用该数据空间,需要在UNIX操作系统上创建磁盘阵列柜RAID逻辑盘的设备文件名。\r\n\r\n系统进入单用户,运行“mkdev hd”,准备制作逻辑盘分区\r\n\r\n# mkdev hd\r\n\r\n\r\n\r\nYour rootdisk is attached to a SCSI controller.\r\n\r\nPick one of choices below or you may quit and\r\n\r\nInvoke nkdev hd -u for a detailed usage message.\r\n\r\n1) Add a hard disk to IDE controller\r\n\r\n2) Add a hard disk to SCSI controller\r\n\r\n3) Add a hard disk to IDA controller \r\n\r\nEnter 1, 2, 3 or enter ‘q’ to quit: 2 →选择2\r\n\r\n\r\n\r\nEnter the prefix of the SCSI host adapter that supports this device\r\n\r\nOr press <Return>; for the default:’alad’ →选择SCSI卡类型\r\n\r\nEnter h for a list of host adapters or enter q to quit:\r\n\r\n\r\n\r\nWhich ‘alad’ SCSI host adapter supports this device?\r\n\r\nSelect 0-6, or enter q to quit: 0 →选择SCSI卡号\r\n\r\nThe Host Adapter paramters will be automatically configured\r\n\r\nWhat SCSI Bus is this device attached to?\r\n\r\nPress <Return>; to use the default: 0 \r\n\r\nSelect 0-n, or h for help, or q to quit: →选择SCSI总线号\r\n\r\nWhat is the Target ID for this device?\r\n\r\nSelect 0-15, or h for help, or q to quit:2 →选择设备的ID号\r\n\r\nWhat is the LUN of this device?\r\n\r\nPress <Return>; to use the default: 0 \r\n\r\nSelect 0-7, or h for help, or q to quit:0 →选择LUN号\r\n\r\n硬盘挂接到操作系统,准备重构系统核心\r\n\r\n\r\n\r\nYou are about to add the following SCSI device:\r\n\r\nHost\r\n\r\nAdapter Adapter\r\n\r\nType Device Number ID LUN BUS\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \r\n\r\nalad Sdsk 0 2 0 0\r\n\r\nUpdate SCSI configuration? (y/n) y\r\n\r\nThe SCSI configuration file has been updated.\r\n\r\nA new kernel must be built and rebooted before disk configuration can continue \r\n\r\nWould you like to relink at this time? (y/n) y\r\n\r\nThe UNIX Operating System will now be rebuilt.\r\n\r\nThis will take a few minutes. Please wait.\r\n\r\nRoot for this system build is /\r\n\r\nThe UNIX kernel has been rebuilt.\r\n\r\nDo you want this kernel to boot by default? (y/n) y\r\n\r\nBacking up unix to unix.old\r\n\r\nInstalling new unix on the boot file system.\r\n\r\nThe kernel environment includes device node files and /etc/inittab.\r\n\r\nThe new kernel may require changes to /etc/inittab or device nodes.\r\n\r\nDo you want the kernel environment rebuilt? (y/n) y\r\n\r\nThe kernel has been successfully linked and installed.\r\n\r\nTo activate it, reboot your system.\r\n\r\nSetting up new kernel environment.\r\n\r\nAfter the system is rebooted with the new kernel,\r\n\r\nReinvoke mkdev hd to initialize the new hard disk.\r\n\r\n# |
|