LVM and VxVM

Identifying / Labelling Tape Volume

 
SOLVED
Go to solution
Sanjay Verma
Super Advisor

Identifying / Labelling Tape Volume

Friends, Iâ m looking for the command line options through which I can label a tape or identify the tape volum
Co-operation - The biggest chain reaction
7 REPLIES 7
Rajeev  Shukla
Honored Contributor

Re: Identifying / Labelling Tape Volume

hi,
Can you describe more, what backup software are you using and where are the tapes, are they in a library or a standalone drive.
Sridhar Bhaskarla
Honored Contributor

Re: Identifying / Labelling Tape Volume

Hi Sanjay,

It depends on the tool you use to backup your data.

For fbackup, look at -V option in it's man page.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay Verma
Super Advisor

Re: Identifying / Labelling Tape Volume

Rajeev/Sridhar,
The backup software I'm using: OmniBack-II & Veritas Netbackup.
The tapes are both: Standalone drive & Tape library.
Backup is done by: fbackup, tar, OmniBack-II or through Netbackup.
Co-operation - The biggest chain reaction
Rajeev  Shukla
Honored Contributor

Re: Identifying / Labelling Tape Volume

In omniback, you can label the media by using omniminit command (this command formats the media and labels it)
and to query the media either do a library scan or drive scan in which media is present using omnimm command.
Have a look at both the commands (omniminit and omnimm) for more detailed information.
Sanjay Verma
Super Advisor

Re: Identifying / Labelling Tape Volume

I'm still trying but no success. I don't want to modify the data but want to see the volume name only!!
Co-operation - The biggest chain reaction
Rajeev  Shukla
Honored Contributor
Solution

Re: Identifying / Labelling Tape Volume

Hi,
If you do
#omnimm -list_pool
that will show you all the medias with their media label in that pool
and if you do
#omnimm -repository_barcode_scan
this will scan all the media in the library and show with their media label.
or do
#omnimm -repository
this will list all media in the library

Let me know if you want to find something else from what i have given.
Rory R Hammond
Trusted Contributor

Re: Identifying / Labelling Tape Volume

You can label tapes and read them manually.
the trick is to stack fileset.

Remember a label is just a file at the beginning of a tape. The problem is you may want it in a standard format. That you will lookup becuase I unsure myself.

Hear is a homemade-up example. Let say the label format is 20 char.
The tape label name is "W000001"
And We want to put 2 file systems on the tape
via cpio.
------12345678901234567890
echo "W0000001 " > /dev/rmt/0mn
medium density----------------|^
NO REWIND ---------------------|
cd /opt
find . -print |cpio -o > /dev/rmt/0mn
cd /user
find . -print |cpio -o > /dev/rmt/0mn

rewind the tape
rm -t /dev/rmt/0mn
read the label with via shell. no "N" so tape is rewound after read
LABEL=$(cat /dev/rmt/0m)

Recover /usr (the second filesystem)
move the tape past the header and the first filesystem:
mt -t /dev/rmt/0mn fsf 2
recover usr in a temp directory
cd /usr/tmpi
recover data.
cpio -idmu < /dev/rmt/0mn

Hope this helps. Other subject that should be researched are blocksize, buffering, tape life, other backtools.

Rory
There are a 100 ways to do things and 97 of them are right