LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2009, 06:11 PM   #16
Lakki
Member
 
Registered: Jul 2008
Posts: 32

Original Poster
Rep: Reputation: 15

Rick,

Given the command "mt -f /dev/nst0 status" doesnt actually display any data. It just tells File Numbers as "0"

May be, should i try moving to the end of tape and issue an feof (after backing up the data)

By doing so, can we make sure the informix doesnt skip the end of file and stops at the marker?

Thanks,
Lakshmi
 
Old 03-10-2009, 11:25 AM   #17
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Given the command "mt -f /dev/nst0 status" doesnt actually display any data. It just tells File Numbers as "0"
Odd. What type/model of tape drive is it?

Quote:
By doing so, can we make sure the informix doesnt skip the end of file and stops at the marker?
Not exactly sure what this means. I can't see how Informix's backup utility would care about whether there's a tape mark at the end of the tape before trying to read it. Though, since you mentioned that it wants to use the rewinding interface (st0 as opposed to nst0) I wonder if it isn't confused by your tape label when you attempt to restore. By insisting on rewinding (by using /deb/st0), perhaps it's seeing your tape label instead of the beginning of the Informix dump.

Q: Any luck figuring out if you can override the default tape device that the "ontape" utility wants to use? If you can't, you may be outta luck trying to add a label to the tape.

Cheers...
Rick
 
Old 03-12-2009, 01:06 PM   #18
Lakki
Member
 
Registered: Jul 2008
Posts: 32

Original Poster
Rep: Reputation: 15
Hi Rick,

Instead of using fopen, fprint and fclose, i have used open, write and close to write a label to the tape. It works fine without any error!! :-)

Then i just put a "weof" and written the informix contents. This time, i used dbexport, (different from ontape as that requires tape in rewinding mode). With dbexport, i can specify the tape device, whether in rewinding/non-rewinding mode.

I am able to successfully do the database export and import operations along with the label too.

During import, as specified by you, i have used the "fsf" option to advance to the next contents and did the dbimport in non-rewinding mode.

Though i need to look into the ontape usage, its a different issue. But i am able to successfully do dbexport/dbimport.
Your suggestions really helped me a lot!!!!!!

Thanks,
Lakki

Thanks,
Lakshmi
 
Old 03-12-2009, 01:08 PM   #19
Lakki
Member
 
Registered: Jul 2008
Posts: 32

Original Poster
Rep: Reputation: 15
FYI, the tape model is "TANDBERG DATA - Tape Drive - 20/40 GB SLR7"
 
Old 03-13-2009, 03:35 PM   #20
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
With dbexport, i can specify the tape device, whether in rewinding/non-rewinding mode.

I am able to successfully do the database export and import operations along with the label too.

During import, as specified by you, i have used the "fsf" option to advance to the next contents and did the dbimport in non-rewinding mode.
Cool!

I suspect that because the "ontape" tool only (at least by default, anyway) knows how to use "st0" instead of "nst0" it's rewinding the tape before attempting to read and upon finding that label of yours gets horribly confused and errors out.

At least you're able to get the database backed up in some fashion.

Cheers...
Rick
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need scsi command to get serial number of a scsi tape romeshs Programming 1 09-04-2006 06:24 AM
scsi tape module F4ll0ut B0y Fedora 1 08-29-2005 04:07 PM
SCSI Tape Backup bfloeagle Linux - General 12 02-07-2005 12:48 PM
SCSI Tape Operation dkreines Linux - General 1 06-16-2002 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration