LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2015, 04:13 AM   #1
Dustin Cook
LQ Newbie
 
Registered: Feb 2015
Posts: 28

Rep: Reputation: Disabled
'tmpfs' Size and Question


Hi all,

I have a system which maps "/var/log" as a "tmpfs" filesystem with a defined size of 32MB.

What will happen to my system if this becomes full? I have a system that is over-logging and writing too much to my "/var/log/messages" file.

For reference, my RAM on the machine is 2GB.

Would this cause the device to power cycle itself?

Last edited by Dustin Cook; 03-05-2015 at 04:27 AM. Reason: added RAM size for information.
 
Old 03-05-2015, 05:02 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
The device won't power cycle. The syslogd or equivalent would be unable to write in them.
 
Old 03-05-2015, 05:04 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can resize the tmpfs. For info see man page of mount and look in tmpfs section.

Code:
mount -t tmpfs -o remount,size=100M tmpfs /var/log
Adapt this to your system if you want.
 
Old 03-05-2015, 05:06 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Read this.
 
Old 03-06-2015, 03:25 AM   #5
Dustin Cook
LQ Newbie
 
Registered: Feb 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks everyone, you've given me quite a bit to think over now.
 
  


Reply

Tags
memory, tmpfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tmpfs Block Size sunerevren Linux - Server 1 04-15-2014 04:15 PM
[SOLVED] Can a tmpfs be asigned a certain size NetBot Linux - Newbie 2 11-07-2013 04:30 AM
[SOLVED] Tmpfs size (limits) Mr. Alex Linux - General 5 09-08-2012 12:48 PM
tmpfs /dev/shm - file deletion and size determination bgeary Red Hat 4 05-12-2010 08:56 AM
tmpfs Initial Size Megatog615 Linux - Software 5 02-13-2007 05:39 AM


All times are GMT -5. The time now is 06:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration