Operating System - OpenVMS
1753687 Members
5438 Online
108799 Solutions
New Discussion юеВ

How to access the data inside a mounted tape?

 
SOLVED
Go to solution
Ronni_1
Occasional Contributor

How to access the data inside a mounted tape?

Hi everyone,

Recently, I have learned how to mount and dismount a unit tape by using the following commands:

To Mount, I use:

($ mount/foreing dra1: )

To Dismount, I use:

($ dismount mka500: )

In both cases, The operation is acomplished successfully.

The thing is that I have no idea about where the data inside the tape is placed in.

I need to know how to access that device unit once it is mounted in order to get all the content it has by using FTP.

Thanks in Advance...

Ronni.
5 REPLIES 5
Steven Schweda
Honored Contributor
Solution

Re: How to access the data inside a mounted tape?

How to read the tape depends on how it was
written. You could try:

mount /noassist /foreign mka500:
backup /noassist /list mka500:

and repeat the BACKUP command until it stops
doing anything new.

Or:

mount /noass /over = ident mka500:
directory /date /size mka500:

If BACKUP works (likely), then you need to do
a BACKUP restore operation to move the data
to some disk/directory/tree somewhere. If
not, then a COPY will probably work.

After you get the data onto a disk, you can
start to worry about FTP.
Daniel Fernandez Illan
Trusted Contributor

Re: How to access the data inside a mounted tape?

Ronni
When you mount a tape unit using /foreing or /over=id qualifier only can work with this unit user as mounted it.
If tape origin is a backup, a best option to manage files is use:
backup dra1:saveset.sav/sav *.* and after use ftp to get all files, else if tape origin is a copy then use moun/over=id dra1: and use ftp to get files from VMS prompt, like as:
ftp>get dra1:*.*
(last option i dont have checked).
Saludos.
Daniel.
Arch_Muthiah
Honored Contributor

Re: How to access the data inside a mounted tape?

Ronni,

If the mounted tape is not backup tape, you can mount/dismount/FTP the files in the following easy way.

If you know the tape lable, you can use this
$ MOUNT DQB0: lable_name

If you don't find a lable for the tape, then you can use as Mr.Dan suggestion
$ MOUNT/override=ID DQB0:

Once you mount, then you can access the mounted tape and files from any remote host using FTP using any user with reqd priv.

FTP> set def DQB0:[000000]

Note: DQB0 is the tape mounted in the remote host.

FTP> set def DQB0:[anydir/subdir]
FTP> get or mget [just the files_name]
working fine.

Archunan
Regards
Archie
Lawrence Czlapinski
Trusted Contributor

Re: How to access the data inside a mounted tape?

Ronni: dra1: would be a raid disk not a tape drive. Perhaps you meant
$mount/foreign mka500: !You would use a mount/foreign for a BACKUP tape.
Let us know if it is a BACKUP tape or a COPY tape.
If it is a BACKUP tape, then you need to do a restore to a disk before you can use FTP.
$BACKUP MKA500:saveset_name.BCK disk_name:[restore_directory_name...]/BY_OWNER=option_you_want
Lawrence
Ronni_1
Occasional Contributor

Re: How to access the data inside a mounted tape?

Steven, Daniel, Archunan and Lawrence,

First of all, thanks for answering my question...

Once I read all of your comments, I├В┬┤ll make the following statements:



1.-Depending of how the tape was written we have: Backup Tapes and Copy Tapes.




2.-To mount a Backup Tape I Should use the following...

A "mount" command combined with "foreign"
A "Backup" command

Some examples are:

$ mount /noassist /foreign mka500:
$ backup /noassist /list mka500:
"and repeat the BACKUP command until it stops doing anything new"

$ backup dra1:saveset.sav/sav *.*
"Once the tape has been mounted"

$ BACKUP MKA500:saveset_name.BCK disk_name:[restore_directory_name...]/BY_OWNER=option_you_want
"Once the tape has been mounted"




3.-To mount a copy Tape I should use the following...

A "mount" command combined with an "id" parameter or without it

Some examples are:

$ mount /noass /over = ident mka500:
$ directory /date /size mka500:

$ mount/over=id dra1:

$ MOUNT DQB0: lable_name
"If the tape lable is known"

$ MOUNT/override=ID DQB0:
"If the tape lable is unknown"




4.-Getting data using FPT

Directly from a vms prompt like:

ftp>get dra1:*.*
"I have to check this against the: backup dra1:saveset.sav/sav *.*"

FTP> set def DQB0:[anydir/subdir]
FTP> get or mget [just the files_name]
"considering DQB0 is the tape mounted"

Using an ftp client application

"I have it and I know how to use it, I just need the path with the files needed"




Now, I found this code:

$ mount/foreign dra1:
$ mount/foreign mka500:
$ backup/image/verify/log mka500: 10jun99.bck/save-set dra1:
$ dismount mka500:
$ dismount dra1:




finally...

1.-I have a Backup tape.
2.-You are right, i meant $mount/foreign mka500:
3.-I know all the labels
4.-I think with this information I can solve the problem.




Thanks all of you.

Ronni.