Wednesday, April 2, 2008

AIX Tape Operation

To change block size
# chdev -l rmt0 -a block_size=512
# chdev -l rmt0 -a block_size=0 ##if need to use dd command for tape

The most common tctl subcommands are: fsf Moves the tape forward the number of file marks specified by Count.
# tctl -f bsf
Moves the tape backwards the number of file marks specified by Count.
# tctl -f rewind
Rewinds the tape.
# tctl -f erase
Erases all contents on the tape and rewinds it.
# tctl -f retension
Fast-forwards, then rewinds the tapeBackupsAIXbackup_AIXAIXBackupsbackup_AIX

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...