$Id: INSTALL,v 1.3 2007/01/28 19:37:10 repeater Exp $ Backup Script Installation Note, if you do not have a CD burner on the irlp node system, you can still create an iso image that can be copied over to a system which as a burner attached. As long as the CD burner software supports ISO image support. To install the irlp CD backup programs, as root enter the following commands: # cd /root # tar zxf irlp_cd_backup_1.3.tar.gz Backup, cd image, and cd iso image directories are defined variables in the "backup.conf" file. Default Backup Directories: Variable Default Description BACKUP_CD_AREA /backup_cd_area Contains the backup files to be stored on CD or else where. ISO_BCKUP_DIR /cd_image_iso Contains the iso images for CDROM backup. BACKUP_CD_TMP /cd_image_tmp Contain temp files when creating the iso images. ----- Note: These can be configured if desired. Variable are defined in the beginning of the sys_backup script. "cdrecord" and "mkisofs" Utility Installation There are two ways to install the "cdrecord" utility. One method is using "yum". This will work if the yum configuration has been setup correctly. If you have been updating your FC3 node, it should be configured correctly. The other method is to install using the rpm utility. Yum Install To install the "cdrecord" utility, type in the following as root: # yum install cdrecord # yum install mkisofs RPM Install To install the "cdrecord" utility, type the following commands as root: # cd /root/backup/source/rpms # rpm -i cdrecord-2.0.1-5.i386.rpm # rpm -i mkisofs-2.01.1-5.i386.rpm "cdrecord" Utility The cdrecord utility needs to be configured based upon the cd burner device. To configure to use the local cd burner, follow the procedure below: 1. Enter the following command: # cdrecord -scanbus scsidev: 'ATA' devname: 'ATA' scsibus: -2 target: -2 lun: -2 Linux sg driver version: 3.5.27 Using libscg version 'schily-0.8'. cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling'). scsibus1: 1,0,0 100) 'OPTORITE' 'CD-RW CW5207 ' '140E' Removable CD-ROM 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * 2. Based upon the above information, change the CDRECORD_OPT in the backup.conf file as follows: CDRECORD_OPT="dev=ATAPI:1,0,0 speed=12 fs=16m" Note, the speed should be below the max rw speed. The "fs" variable should not be changed. 3. Temporarily add the -dummy argument to the CDRECORD_OPT variable found in "backup.conf" as follows for testing purposes: CDRECORD_OPT="dev=ATAPI:1,0,0 speed=12 fs=16m -dummy" The "-dummy" argument will turn off the laser when writing, therefore the CD will not actually be burned, but testing. 4. The the device information may help to determine which device driver to try. Enter the following: # cdrecord dev=help Note: most CD IDE drivers use ATAPI. Supported SCSI transports for this platform: Transport name: sg Transport descr.: Generic transport independent SCSI Transp. layer ind.: Target specifier: bus,target,lun Target example: 1,2,0 SCSI Bus scanning: supported Open via UNIX device: not supported Transport name: pg Transport descr.: SCSI transport for ATAPI over Parallel Port Transp. layer ind.: Target specifier: bus,target,lun Target example: 1,2,0 SCSI Bus scanning: supported Open via UNIX device: not supported Transport name: ATA Transport descr.: ATA Packet specific SCSI transport Transp. layer ind.: ATAPI: Target specifier: bus,target,lun Target example: ATAPI:1,2,0 SCSI Bus scanning: supported Open via UNIX device: not supported Transport name: ATA Transport descr.: ATA Packet specific SCSI transport using sg interface Transp. layer ind.: ATA: Target specifier: bus,target,lun Target example: 1,2,0 SCSI Bus scanning: supported Open via UNIX device: not supported Transport name: RSCSI Transport descr.: Remote SCSI Transp. layer ind.: REMOTE: Target specifier: rscsi@host:bus,target,lun Target example: REMOTE:rscsi@host:1,2,0 SCSI Bus scanning: supported Open via UNIX device: not supported -------------------------------------------------------------------- 5. To test the cdrecord configuration, you need to create a ISO image first. a. To create an ISO image, execute the "sys_backup script and answering "no" to: Do you want use the local CD writer [y/n default=y]? b. At the next prompt: Do you want to create a ISO CD backup set (create ISO images) or create CPIO file backup set (CPIO files)? [I, C, Help default - ISO] press the "Enter" key or select "I". c. At the next prompt: Enter the desired directory to backup (ei, /home/user1) or ENTER for full system backup: Enter "/home/irlp", then "y" to continue. d. Once the backup is complete, the following message will be displayed: ISO images are stored in /cd_image_iso directory... Cleaning up /backup_cd_tmp... Backup to CDrom complete... Once completed, you will find an iso image at /cd_image_iso directory that you can use for testing. 6. Once the image is created, insert a blank CD and enter the following command: # cdrecord dev=ATAPI:1,0,0 speed=12 fs=16m -dummy -v \ -eject /cd_image_iso/ Where: = The name of the iso image file found in /cd_image_sio directory. Observe the operation of the CDrom and any output errors. Most problems occur due to the device not being set correctly, or the device is not supported. More info regarding "cdrecord": - look at the "man" page for "cdrecord". - look at the follow directory: /usr/share/doc/cdrecord-2.01.1 7. Once "cdrecord" utility is functioning, Verify the CDRECORD_OPT variable in the "backup.conf" and modify the variable based upon the options used in step 6. Make sure to remove the "-dummy" entry from CDRECORD_OPT variable in "backup.conf" file. 8. The following entries need to be verified/changed in the "backup.conf" file: cdr_size=650 # Nominal Mb capacity of CD-R MNT=/cdrom # Where you normally mount your cd drive DEV=/dev/cdrom # And it's device name For example, an FC4 system had to be changed to: MNT=/media/cdrecorder # Where you normally mount your cd drive DEV=/dev/hdd # And it's device name With FC3, the above values should be OK. ---------------------------------------------- $Log: INSTALL,v $ Revision 1.3 2007/01/28 19:37:10 repeater Updated script output text to match latest version. EOF