Tuesday, July 27, 2010

D3 Tape Configuration using the dev-make command

For each physical tape drive, several devices can be created with different characteristics to deal with
different situations.
The tape type is optionally followed by a label size for compatibility with tapes generated on other
platforms, typically a tape written on a Pick licensee’s machine. For example, to read a 4mm tape made
on a machine with a label size of 80 bytes, create a device with a tape type of d80. The users may also
have several DAT devices which can deal with a label size of 50 or 512 bytes.
The TCL command dev-make allows creating devices immediately. There is no need to stop and restart
the D3 VME service. The general syntax is:
dev-make -t tape -a “tape.name,tape.type{label size}{,density}”
where tape.name is the device name as defined in Windows Tape Devices (i.e. tape0. Tape1).
and tape.type is one of the following:
f for floppy } optionally followed by the floppy density
p for pseudo tape
q for quarter inch QIC/SCT
h for half inch
d for 4mm DAT } optionally followed by
v for 8mm/Video } a numeric tape label size
label size can be any number. Example:
a 4mm DAT with 80-byte label: dev-make -t tape -a “tape0,d80”
and density is for tape density.
For floppy: q=quad (1.44)
h=high (1.2)
o=octal (2.88)
d=standard (360),
s=single (180).
For other tape devices, densities are included for information only, not for functionality. Possible
densities are: h=high, m=medium, l=low, and s=standard.
The following three commands can be entered at TCL or added to the user coldstart proc to create three
Pick tape devices, if tape0 is a DAT drive in the NT registry, in the example:
dev-make -t tape -a “\\.\tape0,d80,h” (80-byte label)
dev-make -t tape -a “\\.\tape0,d50,h” (50-byte label)
dev-make -t tape -a “\\.\tape0,d,h” (defaults to 512)
Note: ALL dev-make commands are lost once D3 has been shutdown or stopped. All dev-make
commands should be added to the user-coldstart proc so that the tape devices will be available again
once the D3 service is restarted.

No comments: