LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2010, 10:49 PM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
Help needed to enable "large_file" using tune2fs


Hi ,

I want to enable the "large_file" option for a file system sda5. Though i got the option from "man tune2fs" , am unable to execute that.

Code:
#dumpe2fs -h /dev/sda5 |  grep "Filesystem features"
dumpe2fs 1.32 (09-Nov-2002)
Filesystem features:      has_journal filetype needs_recovery sparse_super
The following is not working , as i think am missing something here.
Code:
tune2fs -O[+]feature[,large_file] /dev/sda5
 
Old 12-05-2010, 11:14 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You're reading too much into the syntax diagram - try "tune2fs -O large_file /dev/sda5"
 
Old 12-05-2010, 11:19 PM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Note:
Quote:
man tune2fs
(Modern kernels set this feature automatically when a file > 2GB is created.)
Square brackets? (I assume you copied something incorrectly when posting. Otherwise, check here.)

try:

Code:
tune2fs -O +large_file /dev/sda5
 
Old 12-06-2010, 12:31 AM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks syg00 and gd2shoe.

Am yet to try both options provided by you . I have a question before that . Is that ok to execute the tune2fs on a mounted File system ? If Yes, will that "large_file" support be available after a reboot ? Or do we need to run some commands to make that permanently .

Sorry to ask , as i don't have a test server for now.

Thanks
ZAMO
 
Old 12-06-2010, 12:42 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Yes and yes. In fact if you don't do anything, and simply create a big file, the kernel will turn the option on for you.
Supposedly ....

BTW, both those commands do the same thing - do (just) one. The "+" is optional, as indicated by the square brackets in the manpage.
 
Old 12-06-2010, 12:52 AM   #6
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Hi syg00,

I raised this thread here , because when a log of around 2GB was created the system was unable to perform most functions . it failed to execute even simple commands as well with an error "File size limit exceeded" .

But even there , i wonder that one FS is enabled with large_file and others not . (provided no storage here and all in a singe HDD) . So i planned to enable large_file support manually .
 
Old 12-06-2010, 12:58 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Might depend on level - I've never turned it on manually (other than just now), and I regularly download DVD isos (work and home). SLES11 disk2 (I think) was over 4 Gig.
Usually btrfs these days, but must have done it under ext[34] and had it turn on automagically.
 
Old 12-06-2010, 01:44 AM   #8
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
You might not have a "modern kernel". You could try updating.

Alternativly, this might be caused by a quota system of some kind. Try:
Code:
ulimit -a
(http://www.cyberciti.biz/faq/file-si...-and-solution/)
 
Old 12-06-2010, 01:59 AM   #9
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks for the valuable inputs, but am unable to execute both option (i was suppose to use one):
Code:
#tune2fs -O large_file /dev/sda5
tune2fs 1.32 (09-Nov-2002)
Invalid filesystem option set: large_file
#tune2fs -O +large_file /dev/sda5
tune2fs 1.32 (09-Nov-2002)
Invalid filesystem option set: +large_file
Is not , i had executed "tune2fs -m" on a mounted partition? my system is a RHEL 3
Code:
$ uname -a
Linux zamo22  2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux
$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 4)
$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 4
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 10240
cpu time             (seconds, -t) unlimited
max user processes            (-u) 7168
virtual memory        (kbytes, -v) unlimited

Last edited by ZAMO; 12-06-2010 at 02:33 AM.
 
Old 12-06-2010, 03:51 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
2.4 ???. Erk - don't like your chances. I should have noticed the back-level version of tune2fs from your first post.

I doubt you can get a supported e2fsprogs that far back - RH usually rolls back what support it thinks users needs. My e2fsprogs is 1.41.10 for example (Fedora 13).

Last edited by syg00; 12-06-2010 at 05:17 PM. Reason: typo
 
Old 12-06-2010, 05:07 PM   #11
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks again . Finally i gave up in enabling this feature
 
Old 12-07-2010, 12:10 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just an FYI, in case you don't already know: unless you want to pay the extra for 'Extended Support', RHEL 3 is now officially unsupported https://access.redhat.com/support/po...pdates/errata/
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using " find " with " -regex " Some help needed..!! WhisperiN Linux - Newbie 6 10-11-2010 03:30 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
what does "tune2fs-c2" do? rojo2000r Linux - General 1 05-04-2007 03:01 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
lilo -T video "Enable Screen Refresh bug is present." Tuttle Linux - Hardware 0 01-28-2005 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration