* TAR on large file systems (gt 2GB)
@ 1998-08-18 6:31 Wes Bauske
1998-08-18 6:43 ` Michal Jaegermann
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Wes Bauske @ 1998-08-18 6:31 UTC (permalink / raw)
To: axp-list@redhat.com
I'm trying to save off a copy of one of my file systems.
It's larger than 2GB total size but there are no files
larger than 2GB. I've tried it several times now and it
always hangs. I moved some stuff out of the file system
to get it below 2GB and it works. This leads me to believe
there is some sort of limit in tar. I looked back thru
the RH list archives and found only references to slow
tar.
So, has anyone else been successful at creating a tar
file (on a 7GB 8mm??) larger than 2GB? I have successfully
read files larger than 2GB off of tape, but not in tar
format so I know one can transfer more than 2GB from the
device. Even can write files larger than 2GB with the 2.1.xxx
kernels on ext2 file systems.
Is there another command to use instead of tar??
Any info appreciated.
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: TAR on large file systems (gt 2GB)
1998-08-18 6:31 TAR on large file systems (gt 2GB) Wes Bauske
@ 1998-08-18 6:43 ` Michal Jaegermann
1998-08-18 7:39 ` Wes Bauske
1998-08-18 13:33 ` Jeff Sturm
1998-08-18 6:52 ` Barrett G. Lyon
1998-08-18 7:18 ` mgraffam
2 siblings, 2 replies; 15+ messages in thread
From: Michal Jaegermann @ 1998-08-18 6:43 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> I've tried it several times now and it
> always hangs. I moved some stuff out of the file system
> to get it below 2GB and it works. This leads me to believe
> there is some sort of limit in tar.
Tar probably considers its output always as a (seekable)
file. There is currently a limit of 2 GB on a file
unless you are using one of the latest development kernels
on Alpha or Sparc.
> Is there another command to use instead of tar??
What about cpio, afio and dump? I have no idea if they
have a similar limit and also I am only guessing why you
may have problems. It may be a VFS limitation. Does anybody
know for sure?
Michal
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 6:43 ` Michal Jaegermann
@ 1998-08-18 7:39 ` Wes Bauske
1998-08-18 7:57 ` Chris Wedgwood
1998-08-18 13:33 ` Jeff Sturm
1 sibling, 1 reply; 15+ messages in thread
From: Wes Bauske @ 1998-08-18 7:39 UTC (permalink / raw)
To: axp-list
Michal Jaegermann wrote:
>
> Wes Bauske wrote:
> >
> > I've tried it several times now and it
> > always hangs. I moved some stuff out of the file system
> > to get it below 2GB and it works. This leads me to believe
> > there is some sort of limit in tar.
>
> Tar probably considers its output always as a (seekable)
> file. There is currently a limit of 2 GB on a file
> unless you are using one of the latest development kernels
> on Alpha or Sparc.
>
I'm running 2.1.115, one patch for the X console switching.
One other possible restriction is I'm NFS mounting
the file system from an Intel Linux box so NFS could
be unhappy about things but it looks good from mount/df.
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda2 497699 42908 429087 9% /
/dev/hda4 1243751 700537 478954 59% /usr
/dev/hda1 7972 764 7208 10% /dos/c
/dev/sda1 8573747 6051207 2077943 74% /z/data5
wsb3:/z/home 5073462 2130201 2680600 44% /z/home
wsb3:/z/data3 15864375 2996502 12042197 20% /z/data3
pds04:/z/pds04a 33554432 29215344 4339088 87% /z/pds04a
pds04:/z/pds04 8601600 4896368 3705232 57% /z/pds04
wsb:/z/data 10999529 3975501 6452918 38% /z/data
Note I have some real big partitions cross mounted and
except for files over 2GB, NFS has been behaving OK.
> > Is there another command to use instead of tar??
>
> What about cpio, afio and dump? I have no idea if they
> have a similar limit and also I am only guessing why you
> may have problems. It may be a VFS limitation. Does anybody
> know for sure?
>
I knew about cpio but haven't tried it yet. Reason
being if it uses the same format, then it won't help.
dump is a possibility but I will need to read the tape
back on a non-linux system (AIX 4.3 or higher).
I was thinking about pax. Found some source for it on
an SGI ftp site. Working on compiling it but looks like
Linux's definitions of POSIX keywords is different than
what the source expects. Anyone have pax compiled clean
on Linux?
What is afio?? Which RPM is it in?
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 7:39 ` Wes Bauske
@ 1998-08-18 7:57 ` Chris Wedgwood
0 siblings, 0 replies; 15+ messages in thread
From: Chris Wedgwood @ 1998-08-18 7:57 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 1425 bytes --]
On Tue, Aug 18, 1998 at 07:39:06AM +0000, Wes Bauske wrote:
> I'm running 2.1.115, one patch for the X console switching.
>
> One other possible restriction is I'm NFS mounting
> the file system from an Intel Linux box so NFS could
> be unhappy about things but it looks good from mount/df.
>
> Filesystem 1024-blocks Used Available Capacity Mounted on
> /dev/hda2 497699 42908 429087 9% /
> /dev/hda4 1243751 700537 478954 59% /usr
> /dev/hda1 7972 764 7208 10% /dos/c
> /dev/sda1 8573747 6051207 2077943 74% /z/data5
> wsb3:/z/home 5073462 2130201 2680600 44% /z/home
> wsb3:/z/data3 15864375 2996502 12042197 20% /z/data3
> pds04:/z/pds04a 33554432 29215344 4339088 87% /z/pds04a
> pds04:/z/pds04 8601600 4896368 3705232 57% /z/pds04
> wsb:/z/data 10999529 3975501 6452918 38% /z/data
Which partition are you trying to write the tar file to?
If that parition is NFS mounted to the Intel, it won't work, but on a
local file system it shouldn't be a problem (assuming tar isn't
broken).
The attached program creates a 3GB sparse file on a local filesystem
(I just made this quick test now and don't have enough disk space
free for a real file).
If it doesn't work, please send me the output of strace over it or
echo $? after it terminates.
-cw
[-- Attachment #2: test program --]
[-- Type: text/plain, Size: 380 bytes --]
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#define GB (1024ul*1024ul*1024ul)
#define POS (3*GB)
int main()
{
int fd;
char zero = 0;
if((fd = open("big-file.test",O_RDWR|O_CREAT)) == -1)
return 1;
if((lseek(fd,POS,SEEK_SET) == -1))
return 2;
if((write(fd,&zero,1) == -1))
return 3;
close(fd);
return 0;
}
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 6:43 ` Michal Jaegermann
1998-08-18 7:39 ` Wes Bauske
@ 1998-08-18 13:33 ` Jeff Sturm
1 sibling, 0 replies; 15+ messages in thread
From: Jeff Sturm @ 1998-08-18 13:33 UTC (permalink / raw)
To: axp-list
On Tue, 18 Aug 1998, Michal Jaegermann wrote:
> Wes Bauske wrote:
> >
> > I've tried it several times now and it
> > always hangs. I moved some stuff out of the file system
> > to get it below 2GB and it works. This leads me to believe
> > there is some sort of limit in tar.
>
> Tar probably considers its output always as a (seekable)
> file. There is currently a limit of 2 GB on a file
> unless you are using one of the latest development kernels
> on Alpha or Sparc.
That's not true. Tar works fine just writing to a pipe:
tar -cvf - / | dd of=/dev/tape bs=10k
so it apparently has no need to seek, although it cannot detect
end-of-media this way.
Jeff
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 6:31 TAR on large file systems (gt 2GB) Wes Bauske
1998-08-18 6:43 ` Michal Jaegermann
@ 1998-08-18 6:52 ` Barrett G. Lyon
1998-08-18 7:18 ` mgraffam
2 siblings, 0 replies; 15+ messages in thread
From: Barrett G. Lyon @ 1998-08-18 6:52 UTC (permalink / raw)
To: axp-list
I just had the same problem. My SCSI host 0 went to reset. It feels like
the same problem I was having in BSD/OS on x86 with kmem_map buffers.
Any ideas? It crashes my box every time.
-Barrett
At 06:31 AM 8/18/98 +0000, you wrote:
>I'm trying to save off a copy of one of my file systems.
>It's larger than 2GB total size but there are no files
>larger than 2GB. I've tried it several times now and it
>always hangs. I moved some stuff out of the file system
>to get it below 2GB and it works. This leads me to believe
>there is some sort of limit in tar. I looked back thru
>the RH list archives and found only references to slow
>tar.
>
>So, has anyone else been successful at creating a tar
>file (on a 7GB 8mm??) larger than 2GB? I have successfully
>read files larger than 2GB off of tape, but not in tar
>format so I know one can transfer more than 2GB from the
>device. Even can write files larger than 2GB with the 2.1.xxx
>kernels on ext2 file systems.
>
>Is there another command to use instead of tar??
>
>Any info appreciated.
>
>
>Wes
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
--
Barrett G. Lyon
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 6:31 TAR on large file systems (gt 2GB) Wes Bauske
1998-08-18 6:43 ` Michal Jaegermann
1998-08-18 6:52 ` Barrett G. Lyon
@ 1998-08-18 7:18 ` mgraffam
1998-08-18 7:47 ` Wes Bauske
2 siblings, 1 reply; 15+ messages in thread
From: mgraffam @ 1998-08-18 7:18 UTC (permalink / raw)
To: axp-list@redhat.com
On Tue, 18 Aug 1998, Wes Bauske wrote:
> I'm trying to save off a copy of one of my file systems.
> It's larger than 2GB total size but there are no files
> larger than 2GB. I've tried it several times now and it
> always hangs. I moved some stuff out of the file system
> to get it below 2GB and it works. This leads me to believe
> there is some sort of limit in tar. I looked back thru
> the RH list archives and found only references to slow
> tar.
Hmm.. I can't say for sure, but I suspect someone is using a
signed 32-bit int somewhere (either in tar, or maybe in the
FS code, or something). 2^32 / 2 = 2g (divide out half of the
space for negative numbers, which we never use since a file size
of -1 is insane).
> Is there another command to use instead of tar??
Well, I don't know where this 2g file is supposed to get stored..
did you try doing something like: tar cvf - * > /dev/tape
This bypasses making any file on the drive, so if it is an FS problem I'd
think this would solve it. If the trouble is in tar itself, you can always
write a script to parse output of du, and tar up a series of directories
such that they are less than 2g, and then start a new tar.
Michael J. Graffam (mgraffam@mhv.net)
http://www.mhv.net/~mgraffam -- Philosophy, Religion, Computers, Crypto, etc
I think that we should be men first, and subjects afterward. It is not
desirable to cultivate a respect for the law, so much as for the right.
Henry David Thoreau "Civil Disobedience"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 7:18 ` mgraffam
@ 1998-08-18 7:47 ` Wes Bauske
1998-08-18 8:03 ` Chris Wedgwood
1998-08-18 16:46 ` Michal Jaegermann
0 siblings, 2 replies; 15+ messages in thread
From: Wes Bauske @ 1998-08-18 7:47 UTC (permalink / raw)
To: axp-list
mgraffam@mhv.net wrote:
>
> On Tue, 18 Aug 1998, Wes Bauske wrote:
>
> > I'm trying to save off a copy of one of my file systems.
> > It's larger than 2GB total size but there are no files
> > larger than 2GB. I've tried it several times now and it
> > always hangs. I moved some stuff out of the file system
> > to get it below 2GB and it works. This leads me to believe
> > there is some sort of limit in tar. I looked back thru
> > the RH list archives and found only references to slow
> > tar.
>
> Hmm.. I can't say for sure, but I suspect someone is using a
> signed 32-bit int somewhere (either in tar, or maybe in the
> FS code, or something). 2^32 / 2 = 2g (divide out half of the
> space for negative numbers, which we never use since a file size
> of -1 is insane).
>
> > Is there another command to use instead of tar??
>
> Well, I don't know where this 2g file is supposed to get stored..
> did you try doing something like: tar cvf - * > /dev/tape
>
I used "tar -cvf /dev/st0 ." in the appropriate directory
so it never touches the file system on output.
It surprises me that tar has the problem because the same
problem would exist on Cray's and under DEC UNIX so it should
have been sorted out a while back.
A while back I ran into a Fujitsu UNIX mainframe that
had a weird tar format. It could be cpio can use the
newest tar formats and tar doesn't.
cpio man page says it can do:
bin The obsolete binary format.
odc The old (POSIX.1) portable format.
newc The new (SVR4) portable format, which sup-
ports file systems having more than 65536 i-
nodes.
crc The new (SVR4) portable format with a check-
sum added.
tar The old tar format.
ustar The POSIX.1 tar format. Also recognizes GNU
tar archives, which are similar but not
identical.
I'll try cpio though and see what it can do with newc and ustar.
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: TAR on large file systems (gt 2GB)
1998-08-18 7:47 ` Wes Bauske
@ 1998-08-18 8:03 ` Chris Wedgwood
1998-08-18 19:34 ` Wes Bauske
1998-08-18 16:46 ` Michal Jaegermann
1 sibling, 1 reply; 15+ messages in thread
From: Chris Wedgwood @ 1998-08-18 8:03 UTC (permalink / raw)
To: axp-list
On Tue, Aug 18, 1998 at 07:47:49AM +0000, Wes Bauske wrote:
> I used "tar -cvf /dev/st0 ." in the appropriate directory
> so it never touches the file system on output.
hmmm.... can you attach strace to this near the point where it barfs
(perhaps specify -v to the tar command and use ^S to stop at the
point where it normally breaks, attach strace, then ^Q) and show us
what strace says?
-cw
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 8:03 ` Chris Wedgwood
@ 1998-08-18 19:34 ` Wes Bauske
1998-08-18 21:59 ` Wes Bauske
0 siblings, 1 reply; 15+ messages in thread
From: Wes Bauske @ 1998-08-18 19:34 UTC (permalink / raw)
To: axp-list
Chris Wedgwood wrote:
>
> On Tue, Aug 18, 1998 at 07:47:49AM +0000, Wes Bauske wrote:
>
> > I used "tar -cvf /dev/st0 ." in the appropriate directory
> > so it never touches the file system on output.
>
> hmmm.... can you attach strace to this near the point where it barfs
> (perhaps specify -v to the tar command and use ^S to stop at the
> point where it normally breaks, attach strace, then ^Q) and show us
> what strace says?
>
If cpio doesn't fix it, I'll look at it further. Haven't
had time to try it yet. Hopefully sometime today...
My guess is tar is keeping a running byte count somewhere
in a 32 bit int. What happens is the tar just stops. It
doesn't complete and it isn't writing any further data to
the tape. Come to think of it, if I just build a tar with
debug info, and attach when it stops, I should be able to
see what went wrong...
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 19:34 ` Wes Bauske
@ 1998-08-18 21:59 ` Wes Bauske
1998-08-19 12:54 ` Miguel Barreiro Paz
0 siblings, 1 reply; 15+ messages in thread
From: Wes Bauske @ 1998-08-18 21:59 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> Chris Wedgwood wrote:
> >
> > On Tue, Aug 18, 1998 at 07:47:49AM +0000, Wes Bauske wrote:
> >
> > > I used "tar -cvf /dev/st0 ." in the appropriate directory
> > > so it never touches the file system on output.
> >
> > hmmm.... can you attach strace to this near the point where it barfs
> > (perhaps specify -v to the tar command and use ^S to stop at the
> > point where it normally breaks, attach strace, then ^Q) and show us
> > what strace says?
> >
>
> If cpio doesn't fix it, I'll look at it further. Haven't
> had time to try it yet. Hopefully sometime today...
>
> My guess is tar is keeping a running byte count somewhere
> in a 32 bit int. What happens is the tar just stops. It
> doesn't complete and it isn't writing any further data to
> the tape. Come to think of it, if I just build a tar with
> debug info, and attach when it stops, I should be able to
> see what went wrong...
>
Update. cpio with archive type newc completes the output
stage and prints the proper number of blocks. This was for
about 2.5 GB of data. I'm reading the tape back now to see
if it's OK.
Also built tar with debug symbols to try see what's wrong.
So looks like it's possible to put more than 2GB on a tape
using system utilities.
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 21:59 ` Wes Bauske
@ 1998-08-19 12:54 ` Miguel Barreiro Paz
1998-08-20 18:33 ` Wes Bauske
0 siblings, 1 reply; 15+ messages in thread
From: Miguel Barreiro Paz @ 1998-08-19 12:54 UTC (permalink / raw)
To: axp-list
Hi,
> Update. cpio with archive type newc completes the output
> stage and prints the proper number of blocks. This was for
> about 2.5 GB of data. I'm reading the tape back now to see
> if it's OK.
Some time ago (early 2.0 or so) I hacked tar so I could backup a
11GB filesystem to 4GB DAT tapes from a i586 machine with tar -cvM. It was
a quick and dirty hack, wrote OK and had some problems when reading; but
my use for those backups was simply to occasionally read individual files,
so it was no problem. I just changed some int to unsigned and little more,
IIRC.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-19 12:54 ` Miguel Barreiro Paz
@ 1998-08-20 18:33 ` Wes Bauske
0 siblings, 0 replies; 15+ messages in thread
From: Wes Bauske @ 1998-08-20 18:33 UTC (permalink / raw)
To: axp-list
Miguel Barreiro Paz wrote:
>
> Hi,
>
> > Update. cpio with archive type newc completes the output
> > stage and prints the proper number of blocks. This was for
> > about 2.5 GB of data. I'm reading the tape back now to see
> > if it's OK.
>
> Some time ago (early 2.0 or so) I hacked tar so I could backup a
> 11GB filesystem to 4GB DAT tapes from a i586 machine with tar -cvM. It was
> a quick and dirty hack, wrote OK and had some problems when reading; but
> my use for those backups was simply to occasionally read individual files,
> so it was no problem. I just changed some int to unsigned and little more,
> IIRC.
>
Good. Sounds like it should be relatively easy to fix.
I'll continue looking into tar but for now, cpio works
for the stuff I need this week.
Thanks for the info.
Wes
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
1998-08-18 7:47 ` Wes Bauske
1998-08-18 8:03 ` Chris Wedgwood
@ 1998-08-18 16:46 ` Michal Jaegermann
1 sibling, 0 replies; 15+ messages in thread
From: Michal Jaegermann @ 1998-08-18 16:46 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> It surprises me that tar has the problem because the same
> problem would exist on Cray's and under DEC UNIX so it should
> have been sorted out a while back.
I do not remember ever seeing problems with GNU tar on Digital Unix
machines and I used it to write to a tape pretty sizeable file
systems. Therefore I sugested that maybe a problem is somewhere
in VFS layer; but I have no idea what exactly it is.
cpio is not using the same format as tar. GNU cpio indeed can read
tapes written with tar.
I suggested afio as well as it can compress stored files on file-by-file
basis so maybe one can bypass your problem (for a short while).
You will need to compile afio on your AIX system if you want to read
these tapes there. AIX restore may be able to read tapes produced
by dump; you will have to try.
AFAIK pax is POSIXed version of tar; it does not seem to be very popular
as it is pretty restrictive and inherits deficiences of tar.
Michal
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: TAR on large file systems (gt 2GB)
@ 1998-08-18 9:24 Jim Leven
0 siblings, 0 replies; 15+ messages in thread
From: Jim Leven @ 1998-08-18 9:24 UTC (permalink / raw)
To: axp-list
Is there another command to use instead of tar??
Might be worth trying cpio.
Jim Leven
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~1998-08-20 18:31 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-18 6:31 TAR on large file systems (gt 2GB) Wes Bauske
1998-08-18 6:43 ` Michal Jaegermann
1998-08-18 7:39 ` Wes Bauske
1998-08-18 7:57 ` Chris Wedgwood
1998-08-18 13:33 ` Jeff Sturm
1998-08-18 6:52 ` Barrett G. Lyon
1998-08-18 7:18 ` mgraffam
1998-08-18 7:47 ` Wes Bauske
1998-08-18 8:03 ` Chris Wedgwood
1998-08-18 19:34 ` Wes Bauske
1998-08-18 21:59 ` Wes Bauske
1998-08-19 12:54 ` Miguel Barreiro Paz
1998-08-20 18:33 ` Wes Bauske
1998-08-18 16:46 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1998-08-18 9:24 Jim Leven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox