FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-18-2008, 08:16 AM
Lubos Vrbka
 
Default /var/log on tmpfs

hi guys,

i have set my /var/log to be on tmpfs (i have ssd and want to avoid logs
being written on it). the problem is, that for example syslogd complains
that /var/log/news/* files are missing. indeed, there is no news
subdirectory in /var/log. the same applies, e.g., to apt
(/var/log/apt/...) - so what would be the correct procedure in this case?


i don't care that much about the logs themselves, this is just a notebook...

thanks for info!

best,

--
Lubos _@_"
http://www.lubos.vrbka.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-18-2008, 08:35 AM
Neil
 
Default /var/log on tmpfs

On Thu, Sep 18, 2008 at 10:16 AM, Lubos Vrbka <lists@vrbka.net> wrote:
> hi guys,
>
> i have set my /var/log to be on tmpfs (i have ssd and want to avoid logs
> being written on it). the problem is, that for example syslogd complains
> that /var/log/news/* files are missing. indeed, there is no news
> subdirectory in /var/log. the same applies, e.g., to apt (/var/log/apt/...)
> - so what would be the correct procedure in this case?
>
> i don't care that much about the logs themselves, this is just a notebook...
>
> thanks for info!
>
> best,
>
> --
> Lubos _@_"
> http://www.lubos.vrbka.net
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Hi

If you do not care at all about the logs there may even be a way to
write them to /dev/null. This would free up the memory.

WARNING: I do not know if it is possible, and thus haven't done it
myself. It's just an idea.

However if it is possible i might want to do this on my EeePC, for it
has only limited hdd space. I am willing to try this on my EeePC this
weekend, for it would help me if it would work.

Could someone smarter and wiser than me (90% of this list fills at
least 1 catorgory) please shine his or her light on wether this would
theoretically work?

Thanks
Neil

Sorry if this could be considered a thread hyjack. Just disregard it
in that case, I'll get the message.


--
There are three kinds of people: Those who can count, and those who cannot count
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-18-2008, 09:16 AM
"Mumia W.."
 
Default /var/log on tmpfs

On 09/18/2008 03:16 AM, Lubos Vrbka wrote:

hi guys,

i have set my /var/log to be on tmpfs (i have ssd and want to avoid logs
being written on it). the problem is, that for example syslogd complains
that /var/log/news/* files are missing. indeed, there is no news
subdirectory in /var/log. the same applies, e.g., to apt
(/var/log/apt/...) - so what would be the correct procedure in this case?


i don't care that much about the logs themselves, this is just a
notebook...


thanks for info!

best,



I don't recommend placing /var/log on tmpfs. Instead I recommend you
take one of these actions:


1: Edit /etc/syslog.conf so that logs are written to a tmpfs filesystem.
You can place /tmp on tmpfs, so logs can go under /tmp/log/.


2: Edit /etc/syslog.conf so that no logging takes place; read "man
syslog.conf"; you'll probably end up commenting out some lines.


3: Disable system logging using sysv-rc-conf or something similar. You
might target sysklogd and/or klogd for disabling.


The above ideas assume that the only logging you don't care about will
come from syslog. If you truly don't care about /anything/ that might be
written to /var/log/, you can go ahead and place it on tmpfs, and copy a
template (or skeleton) over that filesystem at boot. The template would
contain the files and directories needed by the applications that use
/var/log.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-18-2008, 02:15 PM
Lubos Vrbka
 
Default /var/log on tmpfs

i have set my /var/log to be on tmpfs (i have ssd and want to avoid logs
being written on it). the problem is, that for example syslogd complains
that /var/log/news/* files are missing. indeed, there is no news
subdirectory in /var/log. the same applies, e.g., to apt (/var/log/apt/...)
- so what would be the correct procedure in this case?



If you do not care at all about the logs there may even be a way to
write them to /dev/null. This would free up the memory.
well, that would certainly be an option... but actually, having
temporary logs in /var/log can be useful sometimes. my machine has
enough memory, so few megabytes taken up by /var/log do not make that
much of a difference.


for the syslog case, i just modified the syslog.conf to write the 'news'
messages directly to /var/log. at the moment, i have bigger problem with
apt. i don't see any way how to change the location of the apt logs (it
wants to write to /var/log/apt/*) - it doesn't prevent apt and aptitude
running, but the error message/warning i am getting in aptitude is sort
of annoying. the solution might be to create the directory during the
boot, but if there's an config option to apt controlling this behavior,
it would be wiser to use it.



However if it is possible i might want to do this on my EeePC, for it
has only limited hdd space. I am willing to try this on my EeePC this
weekend, for it would help me if it would work.
i think the problem is that you cannot say at one place 'put all logs to
dev/null'. but maybe there really is somebody who could advice how to do
this.


best,

--
Lubos _@_"
http://www.lubos.vrbka.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-19-2008, 06:58 AM
Lubos Vrbka
 
Default /var/log on tmpfs

I don't recommend placing /var/log on tmpfs. Instead I recommend you
take one of these actions:

could you please summarize why?

3: Disable system logging using sysv-rc-conf or something similar. You
might target sysklogd and/or klogd for disabling.
hm, i have to have a look at it - sysv-rc-conf seems to be pretty useful
program...


The above ideas assume that the only logging you don't care about will
come from syslog. If you truly don't care about /anything/ that might be
written to /var/log/, you can go ahead and place it on tmpfs, and copy a
template (or skeleton) over that filesystem at boot. The template would
contain the files and directories needed by the applications that use
/var/log.
the latter is true. i really don't care about anything that is in
/var/log. syslog and apt were just two examples that i encountered so
far. i will then probably go the 'skeleton' way for apps where i don't
find a way how to change the path (apt, for example).


thanks,

--
Lubos _@_"
http://www.lubos.vrbka.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 08:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org