Set a directory in tmpfs in a VE [message #20517] |
Wed, 19 September 2007 18:21 |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
Hi,
I'm attempting to set a MailScanner VE.
Usually, on a MailScanner system, we put /tmp and /var/spool/MailScanner/incoming on tmpfs (in-memory filesystem) to increase processing speed (don't worry, there is no possibility of e-mail loss).
My question is... can I do the same thing for a VE?
For example, if my VE is 101, can I put /vz/private/101/tmp on tmpfs on the host node? (or should I use /vz/root/101/tmp)
Thanks,
Ugo
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|
|
|
|
|
Re: Set a directory in tmpfs in a VE [message #21802 is a reply to message #20553] |
Tue, 16 October 2007 12:36 |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
rickb wrote on Thu, 20 September 2007 14:01 | From in the VE context, try this:
mount -t tmpfs -o noexec,nosuid tmpfs /tmp/
|
I tried it but some configuration files kept on falling back to their default configuration, so I removed all this.
Really weird. While I had /var/spool/MailScanner/incoming and /tmp on tmpfs, the file /etc/MailScanner/mailscanner-mrtg was modified, and saved.
A few hours later, the modifications I've made are not there anymore.
I removed the tmpfs configuration and now working on the filesystem directly. Is this a bug? Could I do it safely on the HN, I have access?
Regards,
Ugo
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|
Re: Set a directory in tmpfs in a VE [message #22831 is a reply to message #21802] |
Mon, 05 November 2007 21:37 |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
ugob wrote on Tue, 16 October 2007 08:36 |
rickb wrote on Thu, 20 September 2007 14:01 | From in the VE context, try this:
mount -t tmpfs -o noexec,nosuid tmpfs /tmp/
|
I tried it but some configuration files kept on falling back to their default configuration, so I removed all this.
Really weird. While I had /var/spool/MailScanner/incoming and /tmp on tmpfs, the file /etc/MailScanner/mailscanner-mrtg was modified, and saved.
A few hours later, the modifications I've made are not there anymore.
I removed the tmpfs configuration and now working on the filesystem directly. Is this a bug? Could I do it safely on the HN, I have access?
Regards,
Ugo
|
Nevermind. The file is synced from another server. I'll re-enable the config.
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|