Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-05-2010, 10:49 PM
|
#1
|
Member
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598
Rep:
|
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
|
|
|
12-05-2010, 11:14 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,415
|
You're reading too much into the syntax diagram - try "tune2fs -O large_file /dev/sda5"
|
|
|
12-05-2010, 11:19 PM
|
#3
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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
|
|
|
12-06-2010, 12:31 AM
|
#4
|
Member
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598
Original Poster
Rep:
|
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
|
|
|
12-06-2010, 12:42 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,415
|
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.
|
|
|
12-06-2010, 12:52 AM
|
#6
|
Member
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598
Original Poster
Rep:
|
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 .
|
|
|
12-06-2010, 12:58 AM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,415
|
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.
|
|
|
12-06-2010, 01:44 AM
|
#8
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
You might not have a "modern kernel". You could try updating.
Alternativly, this might be caused by a quota system of some kind. Try:
( http://www.cyberciti.biz/faq/file-si...-and-solution/)
|
|
|
12-06-2010, 01:59 AM
|
#9
|
Member
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598
Original Poster
Rep:
|
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.
|
|
|
12-06-2010, 03:51 PM
|
#10
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,415
|
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
|
|
|
12-06-2010, 05:07 PM
|
#11
|
Member
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598
Original Poster
Rep:
|
Thanks again . Finally i gave up in enabling this feature 
|
|
|
12-07-2010, 12:10 AM
|
#12
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442
|
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.
|
All times are GMT -5. The time now is 08:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|