* 2GB File limitation
@ 2001-09-28 6:17 Bobby Hitt
2001-09-28 7:33 ` Andreas Dilger
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Bobby Hitt @ 2001-09-28 6:17 UTC (permalink / raw)
To: linux-kernel
Hello,
Is someone working on a way to overcome the 2GB file limitation in Linux? I
currently backup several servers using a dedicated hard drive for the
backups. Recently I saw one backup die saying the the file size had been
exceeded. I've never had good luck with tape backups, yes they backup, but
whenever I really need a file, it can't be retrieved.
TIA,
Bobby
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2GB File limitation
2001-09-28 6:17 2GB File limitation Bobby Hitt
@ 2001-09-28 7:33 ` Andreas Dilger
2001-09-28 8:13 ` Ingo Molnar
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Andreas Dilger @ 2001-09-28 7:33 UTC (permalink / raw)
To: Bobby Hitt; +Cc: linux-kernel
On Sep 28, 2001 02:17 -0400, Bobby Hitt wrote:
> Is someone working on a way to overcome the 2GB file limitation in Linux? I
> currently backup several servers using a dedicated hard drive for the
> backups. Recently I saw one backup die saying the the file size had been
> exceeded.
This is your lucky day. The 2GB limit has been fixed a year or two ago.
You need an "LFS" patch for 2.2 kernels (any vendor kernel will have this),
or any 2.4 kernel.
You ALSO need to ensure your libc supports large files (glibc-2.2
definitely will), and also that your tools can handle it (needs to be
compiled with special LARGEFILE defines, and open files with O_LARGEFILE).
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2GB File limitation
2001-09-28 6:17 2GB File limitation Bobby Hitt
2001-09-28 7:33 ` Andreas Dilger
@ 2001-09-28 8:13 ` Ingo Molnar
2001-09-28 9:51 ` Matti Aarnio
2001-09-28 13:02 ` M. Edward Borasky
` (2 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2001-09-28 8:13 UTC (permalink / raw)
To: Bobby Hitt; +Cc: linux-kernel
On Fri, 28 Sep 2001, Bobby Hitt wrote:
> Is someone working on a way to overcome the 2GB file limitation in
> Linux? I currently backup several servers using a dedicated hard drive
> for the backups. Recently I saw one backup die saying the the file
> size had been exceeded. I've never had good luck with tape backups,
> yes they backup, but whenever I really need a file, it can't be
> retrieved.
file sizes up to ~ 2 TB are supported under the 2.4 kernel. (or 2.2 kernel
+ patches) Most utilities are updated to use O_LARGEFILE properly, in any
recent 2.4-based Linux distribution. I regularly use 6-10 GB files.
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2GB File limitation
2001-09-28 8:13 ` Ingo Molnar
@ 2001-09-28 9:51 ` Matti Aarnio
0 siblings, 0 replies; 7+ messages in thread
From: Matti Aarnio @ 2001-09-28 9:51 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Bobby Hitt, linux-kernel
On Fri, Sep 28, 2001 at 10:13:09AM +0200, Ingo Molnar wrote:
> On Fri, 28 Sep 2001, Bobby Hitt wrote:
> > Is someone working on a way to overcome the 2GB file limitation in
> > Linux? I currently backup several servers using a dedicated hard drive
> > for the backups. Recently I saw one backup die saying the the file
> > size had been exceeded. I've never had good luck with tape backups,
> > yes they backup, but whenever I really need a file, it can't be
> > retrieved.
>
> file sizes up to ~ 2 TB are supported under the 2.4 kernel. (or 2.2 kernel
> + patches) Most utilities are updated to use O_LARGEFILE properly, in any
> recent 2.4-based Linux distribution. I regularly use 6-10 GB files.
Like Ingo says, most of modern distributions begin to work with
O_LARGEFILE properly, but still some utilities fail it.
Your older backup application program may fail it too.
The solution could be as simple as piping the backup material
into another program, which then pipes it out, e.g.:
'|dd bs=1M of=/backups/fileNNN'
> Ingo
/Matti Aarnio
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: 2GB File limitation
2001-09-28 6:17 2GB File limitation Bobby Hitt
2001-09-28 7:33 ` Andreas Dilger
2001-09-28 8:13 ` Ingo Molnar
@ 2001-09-28 13:02 ` M. Edward Borasky
2001-09-28 14:30 ` Michael H. Warfield
2001-09-28 20:17 ` Tim Moore
4 siblings, 0 replies; 7+ messages in thread
From: M. Edward Borasky @ 2001-09-28 13:02 UTC (permalink / raw)
To: Bobby Hitt, linux-kernel
Do you know if they ever fixed this same issue in Microsoft Access? :-) Does
Linux support tape drives? :-)
Sure, Linux needs to be able to handle files > 2 GB, but I wonder if backups
over a network to a hard drive are giving you a false sense of "security".
In the "enterprise" world, you have to be *religious* about backups.
Incrementals at least daily, fulls at least weekly, all backups verified and
*off-site secure storage of backup media*. Dang! The soap company wants
their &$^%&$# box back :-).
--
M. Edward (Ed) Borasky, Chief Scientist, Borasky Research
http://www.borasky-research.net http://www.aracnet.com/~znmeb
mailto:znmeb@borasky-research.net mailto:znmeb@aracnet.com
If there's nothing to astrology, how come so many famous men were born on
holidays?
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Bobby Hitt
> Sent: Thursday, September 27, 2001 11:17 PM
> To: linux-kernel@vger.kernel.org
> Subject: 2GB File limitation
>
>
> Hello,
>
> Is someone working on a way to overcome the 2GB file limitation
> in Linux? I
> currently backup several servers using a dedicated hard drive for the
> backups. Recently I saw one backup die saying the the file size had been
> exceeded. I've never had good luck with tape backups, yes they backup, but
> whenever I really need a file, it can't be retrieved.
>
> TIA,
>
> Bobby
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2GB File limitation
2001-09-28 6:17 2GB File limitation Bobby Hitt
` (2 preceding siblings ...)
2001-09-28 13:02 ` M. Edward Borasky
@ 2001-09-28 14:30 ` Michael H. Warfield
2001-09-28 20:17 ` Tim Moore
4 siblings, 0 replies; 7+ messages in thread
From: Michael H. Warfield @ 2001-09-28 14:30 UTC (permalink / raw)
To: Bobby Hitt; +Cc: linux-kernel
On Fri, Sep 28, 2001 at 02:17:07AM -0400, Bobby Hitt wrote:
> Hello,
> Is someone working on a way to overcome the 2GB file limitation in Linux? I
> currently backup several servers using a dedicated hard drive for the
> backups. Recently I saw one backup die saying the the file size had been
> exceeded. I've never had good luck with tape backups, yes they backup, but
> whenever I really need a file, it can't be retrieved.
The problem has been fixed in the file system, the kernel and
the supporting libraries for ages. Applications may need to be updated
to take advantage of 64 bit file offsets and file operations, though.
You didn't say how you were backing up those other servers. Is it a
particular backup program? If so, that program may need to be rebuilt
or updated. Are you backing up over NFS or some other file transport
where the Linux box is just acting as a file server or is the backup
program running on that Linux box?
Oh... And what version of Linux? If it's old enough, I
suppose you might still have a problem there. Recent (RedHat 7.x
and contemporaries) distributions shouldn't be a problem.
> TIA,
> Bobby
Mike
--
Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com
(The Mad Wizard) | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2GB File limitation
2001-09-28 6:17 2GB File limitation Bobby Hitt
` (3 preceding siblings ...)
2001-09-28 14:30 ` Michael H. Warfield
@ 2001-09-28 20:17 ` Tim Moore
4 siblings, 0 replies; 7+ messages in thread
From: Tim Moore @ 2001-09-28 20:17 UTC (permalink / raw)
To: linux-kernel; +Cc: Bobby Hitt
> Is someone working on a way to overcome the 2GB file limitation in Linux? I
> currently backup several servers using a dedicated hard drive for the
> backups. Recently I saw one backup die saying the the file size had been
> exceeded. I've never had good luck with tape backups, yes they backup, but
> whenever I really need a file, it can't be retrieved.
I use the -B flag to insure the archives are just under 2GB. This
generates multiple volumes by appending a sequence number if necessary.
For example, on a /home dump of >2GB, the commands
ddate=`date +%m%d%y-%H%M%S`
dump -0uM -b 32 -B 2097142 -f /mnt/home.$ddate.L0.dump -L "abit:/home"
/home
generate
/mnt/home.092801-130439.L0.dump001
/mnt/home.092801-130439.L0.dump002
each guaranteed to be 10K under 2GB. Fixes potential portability issues
also.
rgds,
tim.
--
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-09-28 20:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-28 6:17 2GB File limitation Bobby Hitt
2001-09-28 7:33 ` Andreas Dilger
2001-09-28 8:13 ` Ingo Molnar
2001-09-28 9:51 ` Matti Aarnio
2001-09-28 13:02 ` M. Edward Borasky
2001-09-28 14:30 ` Michael H. Warfield
2001-09-28 20:17 ` Tim Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox