Solved

ufsdump parameters for 4mm (DAT) tape

Posted on 1997-06-03
3
451 Views
Last Modified: 2013-12-27
I use the following command line in my backup script for
the first Exabyte 8mm tape drive on sunOS:
/etc/dump 0udsbf 54000 12000 126 /dev/nrst1 /dev/sd3h

What is the corresponding command line for the first SCSI
4mm (DAT) tape drive connected to a SUN Enterprise server
running Solaris 2.5 ?
0
Comment
Question by:domino050797
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
jlms earned 100 total points
ID: 2006358
/usr/sbin/ufsdump 0ubf 126 /dev/rmt/0un /dev/dsk/c0t0d0s7

Now the explanation:

As you can see the new command is ufsdump.

The options " 0ubf"  mean the same (check man page).

You don't need the options "ds" because the command detect the end of media and combined with the name of the device you use (read next paragraphs) the size and density are implicitly given in the command. Anyway, you can still use these command's opttions.

The tape devices are in /dev/rmt, une number is assigned to each tape, so one tape will have assigned the number 0, the next the number 1 and so on. To specify wich density you are using you write a letter chossen from "l,m,h,c or u" , indicating "low, medium, high, compressed or ultrahigh" densities. If you want to use the non rewind device you append a "n" to the end of the name of the device. Please check the man page for "st" for further details.

About your hard disk partitions, they are named now /dev/dsk/cNtMdXsY
where:
N: number of the scsi controller (0,1,2, etc.)
M:scsi target or ID of your device(valid numbres 0 to 6).
X: usually 0.
Y: number of slice (partition). Old SunOS's partitions (a,b,c,d,e,f,g,h) become numbers (0,1,2,3,4,5,6,7).
Check the sd man page for more details.

Note that your tape could have a different name, if you are unsure remove all the entries in /dev/rmt, shutdown and in the ok> prompt type:
boot -r
this should detect your tape and you will find the right names in place.


0
 

Author Comment

by:domino050797
ID: 2006359
Thanks !
0
 
LVL 4

Expert Comment

by:jlms
ID: 2006360
You're welcome.
And by the way, maybe you could rate my answer  so I get some points!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now