R
R
Ruslan Banochkin2011-10-25 12:07:46
Solid State Drives
Ruslan Banochkin, 2011-10-25 12:07:46

Ubuntu logs on SSD

Habravchane, I have already asked several questions about the friendship of SSD and Ubuntu, I think this is the last one. :)

After a lot of googling and mana reading, I even made a small instruction: Setting up Ubuntu 11.10 to work with an SSD . There is a point where I recommend putting the /var directory on the HDD. But according to my own observation, such a setting still noticeably slows down the system. Somehow I put this directory on the SSD, the work was faster.

So. Where exactly in the /var directory are the logs located? And will it be advisable to put the /var directory on the SSD, and transfer the folders with logs from the /var directory to the HDD.

And how should it be done? Should I create a separate partition for this, or can I use a "shared" partition in ext4 on the HDD?

In general, what would you recommend to do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
@
@sledopit, 2011-10-25
@Sk8er

Well, the logs in /var/log, of course, are located.
You don't need to create a section for this. There is also mount --bind.
And about the transfer - since you think that it works faster with / var on ssd, then why not transfer it?

@
@greynix, 2011-10-25
_

In ubuntu, the logs are in /var/log/
Depending on the applications running, /var/ defaults to frequently changed data, such as the squid cache (/var/spool/), the apt cache, etc. Please add if you forgot something.
In any case, the decision on whether or not to put ssd under this partition depends on what the machine will do and how often reading and writing to this partition will occur.

W
WikiLeaks, 2011-10-25
@WikiLeaks

If you have enough memory, then think about how often you need logs from the past days.
They can be transferred to tmpfs.
If the system rarely shuts down, then a decent part of the contents of /var (php sessions, apt cache, etc.) can also be transferred there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question