Example of creating a no rewind device file
This topic provides an example of how to create a no rewind device file on AIX for NetBackup. Assume the device files for the wanted SCSI 8-mm tape drive (controller 1, SCSI ID 5) do not exist.
To create a no rewind device file for SCSI ID 5
- Determine the logical identifier for the SCSI controller as follows:
/usr/sbin/lsdev -C -c adapter | grep SCSI
The following output shows that scsi0 is the logical name for SCSI controller 1:
scsi0 Available 00-01 SCSI I/O Controller
- Determine if the device files exist for any device at SCSI ID 5.
/usr/sbin/lsdev -C -s scsi
The following output shows that some device files exist for tape and disk. However, a device files does not exist for the 8-mm tape drive at controller 1 (scsi0) and SCSI ID 5 (5,0):
hdisk0 Available 00-01-00-0,0 400 MB SCSI Disk Drive hdisk1 Available 00-01-00-1,0 400 MB SCSI Disk Drive rmt0 Available 00-01-00-3,0 Other SCSI Tape Drive
- Create the device file by using the following command:
mkdev -c tape -t ost -s scsi -p scsi0 -w 5,0
- Display the device files by issuing the following command:
/usr/sbin/lsdev -C -s scsi hdisk0 Available 00-01-00-0,0 400 MB SCSI Disk Drive hdisk1 Available 00-01-00-1,0 400 MB SCSI Disk Drive rmt0 Available 00-01-00-3,0 Other SCSI Tape Drive rmt1 Available 00-01-00-5,0 Other SCSI Tape Drive
- To ensure that the tape device is configured for variable-mode and extended file marks, use the following commands:
chdev -l rmt1 -a block_size=0 chdev -l rmt1 -a extfm=yes
- To configure the drive manually in NetBackup, enter the following device file pathname:
/dev/rmt1.1