- 论坛徽章:
- 0
|
5、将Cable重新连上,并按3步所测出的Drive地址及AIX测出的Library地址(Drive地址也可通过lsdev -C -s scsi查出),通过\r\n smitty device\r\n ADSM device\r\n Optical R/W DISK Drive\r\n Tape Drive\r\n Library/Autochanger\r\n 加入[6,0]生成/dev/lb0,加入[1,0]、[2,0]生成/dev/op0、/dev/op1\r\n6、进入root用户\r\n #cd /usr/lpp/adsmserv/bin\r\n #cp dsmserv.opt.smp dsmserv.opt\r\n #cd /var/adsmserv/ or cd /usr/lpp/adsmserv\r\n #rm db.dsm\r\n #rm log.dsm\r\n #dsmfmt -m -db /usr/lpp/adsmserv/bin/dbvol1 5(表示5MB,如果比较小,则可适当扩大)\r\n #dsmfmt -m -db /usr/lpp/adsmserv/bin/logvol1 9\r\n #dsmfmt -m -data backvol 21 archvol 8 spmgvol 20\r\n #dsmserv install 1 /usr/lpp/adsmserv/bin/logvol1 1 /usr/lpp/adsmserv/dbvol1\r\n #nohup dsmserv quiet &(启动ADSM SERVER)\r\n #export DSMSERV_DIR=/usr/lpp/adsmserv/bin\r\n #export DSMSERV_CONFIG=/usr/lpp/adsmserv/bin/dsmserv.opt\r\n #dsm_rmv_itab(使ADSM SERVER不能随系统启动)\r\n #dsm_update_itab(使ADSM SERVER能随系统启动)\r\n #dsmadmc\r\n USER ID:admin\r\n PASSWORD:admin\r\n adsm>define volume backuppool backvol\r\n adsm>define volume archivepool archvol\r\n adsm>define volume spmgpool spmgvol\r\n adsm>register admin elaine plsence\r\n adsm>grant authority elaine classes=system\r\n adsm>query admin * format=detailed\r\n adsm>register node name password\r\n adsm>qurey log\r\n adsm>query db\r\n adsm>register license xxxxxxxxxxxx(此项参数可看/usr/lpp/adsmserv/bin/README文件,并根据自己的要求选定)\r\n adsm>define library ICBCLIB libtype=SCSI dev=/dev/lb0\r\n adsm>define driver ICBCLIB RWDRV01 device=/dev/rop0 element=1(此项参数必须为/dev/rop0,而且 element参数可参考/usr/lpp/adsmserv/bin/README中关于设备的描述)\r\n adsm>define driver ICBCLIB RWDRV02 device=/dev/rop2 element=2\r\n adsm>define devclass ICBC_ADSM devtype=optical format=driver library=ICBCLIB estcapacity=26G\r\n adsm>define stgpool ICBCPOOL ICBC_ADSM mountlimit=10\r\n adsm>update stgpool backuppool next=ICBCPOOL\r\n adsm>define volume(有关此命令可通过help define volume查出,如果为libvolume则用checkin libvolume命令所得libvolume)\r\n adsm>quit\r\n 用/usr/lpp/adsmserv/bin/dsmlabel应用软件将光盘format并label volume。然后进入ADSM进行\r\n checkin libvol命令将labeled volume checkin进来。\r\n dsmlabel命令帮助信息:\r\n This program writes labels to storage volumes in preparation for using\r\n them with the ADSM server. It supports the following arguments:\r\n\r\n -drive=DEVICE[,ELEMENT] Specifies a drive to use.\r\n -library=DEVICE Specifies a library device to use.\r\n -trace=TRACEFILE Enable tracing to the specified file.\r\n -overwrite Allows overwrite of an exiting label.\r\n -search Search library for volumes to label.\r\n -keep Keep labeled volumes in the library.\r\n -format Format media if media supports it.\r\n -help Display this information.\r\n\r\nAt most one library can be specified; if none is specified, you will\r\nbe prompted to manually load volumes.\r\n\r\nAt least one drive must be specified. If the drive is in a SCSI\r\nlibrary, the drive\'s element address must be provided as well. The\r\nmaximum number of drives you can specify is 8.\r\n\r\nWhen the -search argument is used, the program searches for all usable\r\nvolumes within the library and attempts to label them. The -keep\r\noption is forced on in this case, so all volumes remain in the library. |
|