Re: Reserving space in ext2 or ext3 for a big file.
- From: Paul Colquhoun <postmaster@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 05 Mar 2007 01:59:04 GMT
On 3 Mar 2007 17:20:03 -0800, Andre Abrantes <andreabrantes@xxxxxxxxx> wrote:
| On 3 mar, 11:22, Jean-David Beyer <jeandav...@xxxxxxxxxxx> wrote:
|> Andre Abrantes wrote:
|> > Hi all.
|> > I have the follow problem, my software need make a file with 4GB
|> > and I need reserve space before the file generation finishs.
|>
|> I do not know why you would need to do that, but here are two possibilities
|> for doing it.
|>
|> 1.) Create a partition a little bit larger than you need, and create your
|> file in there as needed. Do not create any other files in that partition. A
|> nice side-effect is that the file you create will be pretty much contiguous.
|>
|> 2.) use DD to copy /dev/zero to a file named as you need. Set the block size
|> and block count to get the number of bytes you need.
|>
|> > I'm testing the quota command for files, but its not works very
|> > well in redhat7.2 for example.
|>
|> I never used Red Hat Linux 7.2, but I ran RHL 7.3 for several years and
|> quotas worked just fine, except in the /tmp directory. Trouble there was
|> that the quota files got deleted on reboot, and perhaps when cron ran tmpwatch.
|>
|> > Exists a command to reserve a space for a file in ext2 or ext3
|> > filesystens?
|>
|> Not specifically, because, as I said before, there should be no reason to do it.
|>
|>
|>
|> > Thanks for all in advance...
|>
|> > André Abrantes
|> > skype:andre.abrantes
|> > email: andreabran...@xxxxxxxxx
|>
|> --
|> .~. Jean-David Beyer Registered Linux User 85642.
|> /V\ PGP-Key: 9A2FC99A Registered Machine 241939.
|> /( )\ Shrewsbury, New Jersey http://counter.li.org
|> ^^-^^ 09:15:01 up 14 days, 21:39, 3 users, load average: 4.18, 4.11, 4.15
|
| Hi Jean!
| Thanks for your good explanation, but now I will be more exact.
| In a computer, runs 3 software that needs each one, create a big file
| with for sample, with 5GB.
| For this sample again, the free space in the partition is 10GB, when
| the first software check the free space with DF command, the file can
| be created. If the second and third softwares check the space without
| the first finishs the file creation, the second and third will start
| the yours files.
| With this, the free space in partition will not able to store the
| files.
| I want reserve the space for first file before create the file with
| 5GB, after this the second software can create the file and then, when
| third try to create, return a message with can´t create a file.
| A file with 5GB spend time to be created, but if I can reserve the
| space before, the problem will be solved.
|
| Thanks for all again... see you...
It sounds like the best solution would be to add more disk space...
--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
.
- Follow-Ups:
- References:
- Reserving space in ext2 or ext3 for a big file.
- From: Andre Abrantes
- Re: Reserving space in ext2 or ext3 for a big file.
- From: Jean-David Beyer
- Re: Reserving space in ext2 or ext3 for a big file.
- From: Andre Abrantes
- Reserving space in ext2 or ext3 for a big file.
- Prev by Date: Re: Reserving space in ext2 or ext3 for a big file.
- Next by Date: Re: Azureus
- Previous by thread: Re: Reserving space in ext2 or ext3 for a big file.
- Next by thread: Re: Reserving space in ext2 or ext3 for a big file.
- Index(es):
Relevant Pages
|