xfs
[Top] [All Lists]

Re: Question: Old Irix tape backup. Recovery on Linux (xfsdump/xfsrestor

To: Anthony l <Martinezant2141@xxxxxxxx>
Subject: Re: Question: Old Irix tape backup. Recovery on Linux (xfsdump/xfsrestore)
From: Roger Willcocks <roger@xxxxxxxxxxxxxxxx>
Date: Fri, 01 Jul 2016 20:28:59 +0100
Cc: Andrew Ho <andrewho@xxxxxxxxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <SN1PR05MB23179FAACBDA0B885FE11D06CC250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <SN1PR05MB231785E5196A5D31D0D833EACC230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <SN1PR05MB23175D5BF190CCC3F22E2EB0CC240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4d9d00ef-82d5-a658-e88c-ba75fb7a6023@xxxxxxxxxxx> <SN1PR05MB2317E464B2CFB5A06CC4B66BCC240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <dc20d8ae-d57f-53f1-72b8-d623529c695b@xxxxxxxxxxx> <20160630220737.GS12670@dastard> , <BFF5CB1A-BA65-4212-9607-2F25F427433B@xxxxxxxxxxxxx> <SN1PR05MB23179FAACBDA0B885FE11D06CC250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
xfsrestore: tape op: reading 245760 bytes
xfsrestore: tape op read of 245760 bytes short: nread == 4096

I think this is the crux -- regardless of the record size xfsrestore
expects, it only ever gets the first 4k block.

This is probably a limitation of the tape drive or the driver.

I'd try:

# mt -f /dev/nst0 setblk 0
# xfsrestore -m -b 245760 -v5 -f /dev/nst0 .


--
Roger



On Fri, 2016-07-01 at 18:23 +0000, Anthony l wrote:
> Thanks for the suggestions again. 
> 
> Still banging my head against a wall. 
> 
> So  I was trying a bunch of xfsrestore commands anything from -m -k -b
> to all three but still the same result every time. 
> 
> xfsrestore -K -m -b 4096 -f /dev/nst0 ./
> 
> xfsrestore  -K -r -f /dev/nst0 ./ 
> 
> 
> I don't think this is a corrupt tape or anything because I have around
> 7 -10 tapes that are all made on the irix machine, but all behave the
> same. I have tried tar before but I get this is not a tar file or gzip
> file something like that. 
> 
> But I do have an observation. I had a tape (not made on the irix
> system) and I was able to pull a direct transfer of files with the dd
> command. i.e dd if=/dev/nst0 of=./somefile1 ibs =64k 
> 
> And I would only have to do this 3 -4 times to get like 30+ GBs of
> data off the tapes and a simple tar xvf command extracted these files
> just fine. But my question is how come when I try to do these with the
> tapes made on the Irix machine I only get about 200 mb at a time and
> there are like 190+ files on each tape. Is this normal for an xfs file
> system on a tape drive?
> 
> 
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs


<Prev in Thread] Current Thread [Next in Thread>