Operating System - HP-UX
1838642 Members
2182 Online
110128 Solutions
New Discussion

Re: TAR and correct device file for DLT

 
M_7
Occasional Contributor

TAR and correct device file for DLT

If I want to use tar, with a DLT tape as the destination, how do I know for sure which is the correct device file? The man pages for tar give /dev/rmt/0m in exanples. Is this a safe bet? Eg:

tar cvf /dev/rmt/0m directory1 directory2 directory3 directory4

Thanks.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: TAR and correct device file for DLT

Hi:

Do an 'ioscan' and look for a description that includes the string "DLT", as for instance:

# ioscan -kfnC tape

Beneath each entry will be the associated device files.

...JRF...
Mark Mitchell
Trusted Contributor

Re: TAR and correct device file for DLT

#ioscan -fnC tapeClass I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/1/0.3.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/0m /dev/rmt/c0t3d0BESTn
/dev/rmt/0mb /dev/rmt/c0t3d0BESTnb
/dev/rmt/0mn /dev/rmt/c0t3d0DDS
/dev/rmt/0mnb /dev/rmt/c0t3d0DDSb
/dev/rmt/c0t3d0BEST /dev/rmt/c0t3d0DDSn
/dev/rmt/c0t3d0BESTb /dev/rmt/c0t3d0DDSnb
tape 1 0/4/0/1.1.0 stape CLAIMED DEVICE QUANTUM DLT8000
/dev/rmt/1m /dev/rmt/c6t1d0BEST
/dev/rmt/1mb /dev/rmt/c6t1d0BESTb
/dev/rmt/1mn /dev/rmt/c6t1d0BESTn
/dev/rmt/1mnb /dev/rmt/c6t1d0BESTnb
tape 2 0/7/0/1.3.0 stape CLAIMED DEVICE QUANTUM DLT8000
/dev/rmt/2m /dev/rmt/c9t3d0BEST
/dev/rmt/2mb /dev/rmt/c9t3d0BESTb
/dev/rmt/2mn /dev/rmt/c9t3d0BESTn
/dev/rmt/2mnb /dev/rmt/c9t3d0BESTnb

Mark Mitchell
Trusted Contributor

Re: TAR and correct device file for DLT

that got jumbled , the command is
ioscan -fnC tape
you can look at the back of the DLT in the lower right hand corner and match the
scsi id if you have more than 1 drive.