Operating System - Linux
1830378 Members
2508 Online
110001 Solutions
New Discussion

Re: Files over 2Gb on Red Hat 7.3 ext3?

 
Nick Brennan_1
Occasional Advisor

Files over 2Gb on Red Hat 7.3 ext3?

Does anyone know if it's possible to configure an RH 7.3 ext3 filesystem to be able to handle files over 2Gb in size?
6 REPLIES 6
Vitaly Karasik_1
Honored Contributor

Re: Files over 2Gb on Red Hat 7.3 ext3?

it works by default, isn't it?
Steven E. Protter
Exalted Contributor

Re: Files over 2Gb on Red Hat 7.3 ext3?

If the filesystem is bigger than 2G its autmatically enabled.

I checked my admin bible and there is no mention of special configuration required.

Best practice is ftp a file bigger than 2G to an fs that has the freespace. If there is an issue, the ftp transfer will hang or fail.

I've got a 16G fs on my Linux servers at my web hosting business and have moved big(> 2G) files on and off without changing the configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: Files over 2Gb on Red Hat 7.3 ext3?

I think a quicker (and easier) test is to just use 'dd' to create a local file:

dd bs=1M count=3000 if=/dev/zero of=some.file

create 'some.file' in the current directory of roughly 3gb in size.

It'll either work ('echo $?' = 0), or it'll spit an error ('echo $?' > 0).
One long-haired git at your service...
Nick Brennan_1
Occasional Advisor

Re: Files over 2Gb on Red Hat 7.3 ext3?

Thanks all for your responses - the dd created the file fine. The problem occurs when we are trying to create an Oracle dump, I will have to look elsewhere.
Michael Hancock
New Member

Re: Files over 2Gb on Red Hat 7.3 ext3?

You should either use the filesize parameter to exp for oracle >= 8.1 or use mknod

From oracle's support site


Export to several files

~~~~~~~~~~~~~~~~~~~~~~~

(Note: Not all platforms support the split "-b" option used here)

% mknod /tmp/exp_pipe p # Make the pipe

% cd /fs_with_25gig_freespace # Make sure disk has space

% split -b2047m < /tmp/exp_pipe & # Split input to 2Gb chunks

% exp user/passwd file=/tmp/exp_pipe full=y # Export to the pipe

This will split the export into several files called 'xaa', 'xab', 'xac'

all of size 2047Mb. These can be fed back into import thus:

% mknod /tmp/imp_pipe p # Make the pipe

% cd /fs_with_25gig_freespace

% cat xaa xab xac > /tmp/imp_pipe & # Put files into the pipe

% imp user/passwd file=/tmp/imp_pipe # And import

Unix a little bit difficult , But oh my god the power
Nick Brennan_1
Occasional Advisor

Re: Files over 2Gb on Red Hat 7.3 ext3?

Thanks Michael, will give that a shot.