LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2005, 03:34 PM   #1
s_malt
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Disaster recovery - identifying archive type


So, we had a muli-disk failure in a hardware RAID rendering our system down. No problem, we'll just slip in a new box, install Linux and recover our data from backup tape. Being called into this situation from the outside, the facts behind the backup method are very fuzzy - possibly "cpio". When I run "cpio -itv -I/dev/st0" on the tapes, I am treated to "cpio: read error: Cannot allocate memory" ... I've tested creating a cpio archive and reading from it - no problem. Every tape in their box yields the same result. The local admin says the results were displayed each morning - successful! Not sure how/what was being done to determine this. Now the basic question I'm posing: Is there any way to determine what the archive type on the tape is? In SCO I would have simply run: dtype /dev/rStp0 and it would spew the type of archive ... tar, cpio, unknown, etc. I am using RedHat Enterprise ES 4.0 - fully up2date. The tape drive is a Dell PowerVault 110 (DLT) and the controler is an Adaptec 7xxx (64-bit stuck into a 32-bit PCI slot).

Thanks in advance!
 
Old 10-21-2005, 01:49 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I'm familiar with some of backup methods used with linux. Probably the most popular is with tar. TAR stands for Tape ARchive. Most backups are raw, or tar. To get the data off the drive you can use "dd" and pipe the output to "tar". This is done like this:

<dd if=/dev/st0 ibs=<tapeblocksize> | tar xv | dd of=/dev/<diskdevice> obs=<diskblocksize> conv=notrunc,noerror>

If the tape is raw:

<dd if=/dev/st0 of=/dev/<diskdevice> ibs=<tapeblocksize> obs=<diskblocksize> conv=notrunc,noerror>

Block sizes for disks are 512. You can use a multiple also. obs=8b would be 8x512 or 4096 bytes. This is typically a good block size for disk.

I'm not sure which block size your tape drive uses. It is the size of one sector. I'm not sure if one can use multiple blocks at a time with a tape drive. Some tape drives have apparently weirdly conceived block sizes. I'm not sure why there is not standardization between tape and disk drive block sizes.
 
Old 10-21-2005, 01:50 AM   #3
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
if they are using RH enterprise, they probally are entitled to some tech support from rh?


if so, let us know what you come up with. if not, hopefully sombody who knows more than me about tape backups reads this soon :P
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disaster Recovery?, what to do? Motaro Linux - General 3 11-03-2005 03:04 PM
Disaster Recovery souperdad Linux - General 4 11-10-2004 02:11 PM
Disaster Recovery Suggestions kemplej Slackware 8 06-30-2004 01:28 PM
Disaster Recovery Analyst sphelpspsi AIX 1 05-04-2004 09:54 AM
disaster recovery steps AZDAVE Mandriva 5 04-16-2004 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:22 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