LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03:13 AM   #1
Dustin Cook
Member
 
Registered: Feb 2015
Posts: 31

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 03:27 AM. Reason: added RAM size for information.
 
Old 03-05-2015, 04: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, 04: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, 04:06 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Read this.
 
Old 03-06-2015, 02:25 AM   #5
Dustin Cook
Member
 
Registered: Feb 2015
Posts: 31

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


Reply

Tags
memory, tmpfs



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 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