LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2015, 05:18 AM   #1
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Rep: Reputation: Disabled
Tape Error on Red hat Linux Server


DUMP: End of tape detected
DUMP: Closing /dev/nst0
DUMP: Volume 1 completed at: Fri Jan 2 12:18:38 2015
DUMP: Volume 1 58128680 blocks (56766.29MB)
DUMP: Volume 1 took 3:46:57
DUMP: Volume 1 transfer rate: 4268 kB/s
DUMP: Change Volumes: Mount volume #2
DUMP: fopen on /dev/tty fails: No such device or address
DUMP: The ENTIRE dump is aborted.


what is problem in tape drive???
 
Old 01-04-2015, 05:20 AM   #2
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
please any can advice me? why above error is happen???
 
Old 01-04-2015, 10:37 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Can you tell us anything about what kind of tape drive you have and the exact command you're running that produces this error?
 
Old 01-04-2015, 03:36 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
The problem is not with the tape drive but with the lack of a tty on which to ask the user to change the tape. Is this backup being run from a cron or at job (for which there is no controlling tty)? If there are multiple tape drives available, was dump told about all of them? The only "problem" with the tape drive is that you have run out of space on the tape.

Last edited by rknichols; 01-04-2015 at 03:38 PM.
 
Old 01-04-2015, 05:45 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by imran.khanmca@yahoo.com View Post
DUMP: End of tape detected
DUMP: Closing /dev/nst0
DUMP: Volume 1 completed at: Fri Jan 2 12:18:38 2015
DUMP: Volume 1 58128680 blocks (56766.29MB)
DUMP: Volume 1 took 3:46:57
DUMP: Volume 1 transfer rate: 4268 kB/s
DUMP: Change Volumes: Mount volume #2
DUMP: fopen on /dev/tty fails: No such device or address
DUMP: The ENTIRE dump is aborted.

what is problem in tape drive???
...and, ONLY TWO MINUTES LATER....
Quote:
Originally Posted by imran.khanmca@yahoo.com
please any can advice me? why above error is happen???
Please read the LQ Rules, and both the "Question Guidelines" and "How to ask a Smart Question" links in my posting signature. This is a VOLUNTEER forum...expecting people to hurry up and answer you after TWO MINUTES is fairly rude. Second, you have not provided ANY of the details we would need in order to be able to effectively help you. You don't tell us what version/distro of Linux (all we know is "Red Hat", and that's only from the subject), what kind of tape drive, attached how, if this is a new drive/server, what (if anything) has changed recently, etc.

rknichols gave you as much info as anyone here can. Since you're using Red Hat, and seem to need an urgent answer, you should contact Red Hat support if you're using Red Hat Enterprise....since you are PAYING for RHEL, right????
 
Old 01-04-2015, 07:10 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,093
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
How about stepping into the twenty first century and buying an electric car, whoops I mean SSD or BDRW or sever-whatever...

Last edited by jamison20000e; 01-04-2015 at 07:14 PM.
 
Old 01-05-2015, 04:34 AM   #7
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
check backup code

below comman is used to take the backup into tape

<hr>
<a name="Dump1">/u05</a>
<pre>
END
dump -u$level -e 11,1015809 /u05 >>$log 2>&1
res=$[ $res || $? ]

tape status
SCSI 2 tape drive:
File number=1, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x47 (TR-5).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
 
Old 01-05-2015, 04:41 AM   #8
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
power failure

Actually tape is successfully done

/u05

DUMP: Date of this level 3 dump: Mon Jan 5 06:30:02 2015
DUMP: Date of last level 0 dump: Thu Jan 1 06:30:02 2015
DUMP: Dumping /dev/mapper/VolGroup_ID_17711-LogVolU05 (/u05) to /dev/nst0
DUMP: Label: none
DUMP: Writing 10 Kilobyte records
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 35726154 blocks.
DUMP: Volume 1 started with block 1 at: Mon Jan 5 06:32:43 2015
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 1.07% done at 1142 kB/s, finished in 8:33
DUMP: 3.11% done at 1756 kB/s, finished in 5:27
DUMP: 5.64% done at 2159 kB/s, finished in 4:19
" " "
" " "
DUMP: 94.55% done at 3991 kB/s, finished in 0:08
DUMP: 96.79% done at 3946 kB/s, finished in 0:04
DUMP: 99.11% done at 3907 kB/s, finished in 0:01
DUMP: Closing /dev/nst0
DUMP: Volume 1 completed at: Mon Jan 5 09:04:35 2015
DUMP: Volume 1 35727030 blocks (34889.68MB)
DUMP: Volume 1 took 2:31:52
DUMP: Volume 1 transfer rate: 3920 kB/s
DUMP: 35727030 blocks (34889.68MB) on 1 volume(s)
DUMP: finished in 9111 seconds, throughput 3921 kBytes/sec
DUMP: Date of this level 3 dump: Mon Jan 5 06:30:02 2015
DUMP: Date this dump completed: Mon Jan 5 09:04:35 2015
DUMP: Average transfer rate: 3920 kB/s
DUMP: DUMP IS DONE


(power failure)out of battery power forthat reason Manually shut database

after startup database i can't restore from the tape, it is giving below error
[root@central ~]# pwd
/root
[root@central ~]# cd /u05/motorsc
[root@central motorsc]#
[root@central motorsc]# mt status
SCSI 2 tape drive:
File number=0, block number=-1, partition=0.
Tape block size 512 bytes. Density code 0x47 (TR-5).
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN
[root@central motorsc]#
[root@central motorsc]# mt rewind
[root@central motorsc]#
[root@central motorsc]# mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x47 (TR-5).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
[root@central motorsc]# /sbin/restore -i -f /dev/nst0
/sbin/restore: Tape read error on first record


what is the reason !!!
 
Old 01-05-2015, 06:51 AM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Could be a number of things. The power failure may have damaged the transport (though unlikely). Trash buildup on the read heads? It is even conceivable that the tape itself is old, and the first block flaked off the tape?

How about testing with a different tape just to see that the drive is functioning correctly. Try using dd to read the first few blocks from the "bad" tape. Cleaning the heads might help.

One other thing, though this is really unlikely, is it possible the tape wasn't positioned properly before the dump was written? Sincd /dev/nst0 directs the tape to not be rewound, if it wasn't at the beginning of the tape then it is possible that there was some other junk on it at the very beginning (like a tape mark) which would cause a read error on the first record. This could be recoverable by skipping past the beginning (there should be a tape mark just before the backup - I have seen this happen with cartridge tapes, as there is no obvious way to know the real position).

Last edited by jpollard; 01-05-2015 at 06:57 AM.
 
Old 01-05-2015, 07:00 AM   #10
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
tape error

I checked one more tape

same error happen

yesterday it working fine

server and database not down( battery working) for reason power failuer

we Manually shut the db when battery was going too low (5%-10min)
 
Old 01-05-2015, 08:19 AM   #11
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
That begins to sound like the transport failed.
 
Old 01-05-2015, 09:52 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by imran.khanmca@yahoo.com View Post
I checked one more tape

same error happen yesterday it working fine server and database not down( battery working) for reason power failuer we Manually shut the db when battery was going too low (5%-10min)
Again, you need to read the LQ Question Guidelines, the link is in my posting signature. You are STILL not answering any questions you've been asked, and haven't provided any relevant or useful details.

Without details, there is NOTHING we can help you with. If you won't answer questions, then the only real suggestion would be for you to contact Red Hat support and/or a local consultant, and pay them to solve the problem.
 
Old 01-06-2015, 01:35 AM   #13
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
We are using

SCSI 2 tape drive

below command using to write to tape

<hr>
<a name="Dump1">/u05</a>
<pre>
END
dump -u$level -e 11,1015809 /u05 >>$log 2>&1
res=$[ $res || $? ]

tape status
SCSI 2 tape drive:
File number=1, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x47 (TR-5).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
 
Old 01-06-2015, 05:37 AM   #14
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,167

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
DUMP: Volume 1 completed at: Fri Jan 2 12:18:38 2015
DUMP: Volume 1 58128680 blocks (56766.29MB)
DUMP: Volume 1 took 3:46:57
DUMP: Volume 1 transfer rate: 4268 kB/s
DUMP: Change Volumes: Mount volume #2
I may be wrong, but your original dump backed up more data. It then asked for a second tape which appears not to have been loaded, hence the failure?

Quote:
DUMP: Volume 1 completed at: Mon Jan 5 09:04:35 2015
DUMP: Volume 1 35727030 blocks (34889.68MB)
DUMP: Volume 1 took 2:31:52
DUMP: Volume 1 transfer rate: 3920 kB/s
DUMP: 35727030 blocks (34889.68MB) on 1 volume(s)
Your second Dump, which worked, was for a smaller amount of data which fitted on a single tape.

Play Bonny!

 
Old 01-06-2015, 05:50 AM   #15
imran.khanmca@yahoo.com
LQ Newbie
 
Registered: Jan 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks

thanks your responces

thanks very much
 
  


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
When did I backup data to tape (cpio, Red Hat Enterprise Linux ES release 4)? jnai Linux - General 4 12-29-2011 12:15 AM
grub error 13 while choosing Red Hat Linux Server mehdiee Linux - Newbie 4 02-17-2008 02:25 PM
getting a tape drive to work with Red Hat 9 jalsk Linux - Newbie 4 01-09-2004 06:09 PM


All times are GMT -5. The time now is 04:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration