|
在银行部门每天都有大量数据需要备份,磁盘和磁带备份都需要大量时间,并且这类介质反复使用后稳定性较差,备份数据量也较小。采用光盘备份即能解决这些问题。怎样在UNIX系统SCSI接口下安装读写光盘。现介绍如下:
一、 配置SCSI控制器
#mkdev hd
1.your rootdisk is attached to
a scsi contronller.The only available choice is to add another SCSI
disk.Do you want to add another SCSI disk?(y/n)选y回车
2.Enther the prefix of the SCSI host
adapter that supports this device or press<return>for the deaault:'bhba'
Enther h for a list of host adapters
or enter q to quit:输入bhba回车
3which 'bhba' SCSI host adapter supports this device?
select 0-1,or
enter q to quit:选0回车
4.what is the target ID for this device?
select 0-7(narrow)or
0-15(wide),or h for help,or q to quit :选5回车
5what
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回车
6you
are about to add the following SCSI device:
update SCSI configuration?(y/n)选y回车
The SCSI configuration file has been
updated.
A new kernel must be built and reboot before disk
configuration can continue.
此步完成后,重构环境和系统核心SCSI控制器构造完毕。在第四步应选择机器内空闲ID号,同时应将光盘跳线调到相应位置。但ID号选择不能为7,因为SCSI硬盘已将此ID号占用。
二、 初始化读写光盘
将光盘插入读写光区。重复第一部份操作直到第5步,此时机器提示:
Do you wish to continue?(y/n)选y回车
将整个分区全部给UNIX
选(2)use Entire disk for unix
此时系统调用子分区表:
Enter your choice or q to quit:选择n回车
Which division?(0 through7):选择0回车
what do you want to call it?给所建系统取名后回车。
系统再次调用子分区表:
Enter your choice or q to quit:键入C回车
which division?(0 through 6):选0回车
此时系统退回到子分区表:
Enter your choice or q to quit:选q回车
please enter your choice:输i回车
making filesystems.
此时系统开始安装光盘上文件系统。等待系统提示:Hard disk initialization procedure completed整个安装过程全部结束。此时光盘可作为文件系统mount到一目录视同硬盘的一部分进行操作,这时备份数据到光盘速度与磁带、磁盘比较将会有很大提高,需卸下光盘时采用umount命令。由于光盘容量很大,也可将整个UNIX系统备份到光盘中,系统出现故障时将光盘作为文件系统搭结上恢复根文件系统。
作者单位:王利川(农业银行四川都江堰市分行)
|