[Voyage-linux] RE: tmpfs mount
Adrian Reyer
(spam-protected)
Wed Aug 24 06:58:47 HKT 2011
On Tue, Aug 23, 2011 at 11:40:06AM -0700, D Woodard wrote:
> I have an issue in tmpfs which is slightly different. I have added all the
> needed directories to voyage-util in /etc/default. Now my issue is that
> tmpfs gets full. I am using this box as dns,dhcp,ldap, and soon a samba
tmpfs size seems to be taken from /etc/default/tmpfs, in my system this
is the kernel default. You should be able to state a bigger size there.
It is limited by your RAM, though.
> server. The ldap db seems to fill up the mount. Can I allow more space for
> tmpfs? How would I specify an external mount for some of these files? I
> have added a 1G USB stick to be used for this, but not sure how to divide it
> up.
/etc/fstab is the place to mount it, if you have it attached all the
time.
I am told due to the wear leveling algorithms it might be a good idea to
only partition the part of the stick you actually need or at least leave
some space. However, smaller partitions means faster fsck in case of a
crash or a routine check.
I personally always do LVM and dedicate single logical volumes to single
jobs. e.g. a seperate one for the ldap to make sure it won't die due to
e.g. some forgotten log filling the disk. Might be a bit overkill with
as little as 1GB space to talk about.
Regards,
Adrian
--
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91
Mail: lihas at lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
More information about the Voyage-linux
mailing list