Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Increasing the size of size of tmpfs
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Increasing the size of size of tmpfs

mywebhostingmywebhosting Member, Host Rep

Hi,

I have a doubt, is it possible to increase the size of tmpfs.

I need to modify the /etc/fstab file to define the size of tmpfs and also to define the number of inodes which may used by tmpfs. Is it possible to increase like that?

I am using a OpenVZ VPS.

Comments

  • jmgcaguiclajmgcaguicla Member
    edited May 2021

    Sure you can, does mount -t tmpfs -oremount,nr_inodes=1000,size=1G none /tmp not work for you?

  • mywebhostingmywebhosting Member, Host Rep

    @jmgcaguicla said:
    Sure you can, does mount -t tmpfs -oremount,nr_inodes=1000,size=1G none /tmp not work for you?

    Do I need to restart the server after this?

  • jmgcaguiclajmgcaguicla Member
    edited May 2021

    @mywebhosting said:

    @jmgcaguicla said:
    Sure you can, does mount -t tmpfs -oremount,nr_inodes=1000,size=1G none /tmp not work for you?

    Do I need to restart the server after this?

    No, in fact you'll lose the changes if you reboot unless you persist those options in /etc/fstab.

  • mywebhostingmywebhosting Member, Host Rep

    @jmgcaguicla said:

    @mywebhosting said:

    @jmgcaguicla said:
    Sure you can, does mount -t tmpfs -oremount,nr_inodes=1000,size=1G none /tmp not work for you?

    Do I need to restart the server after this?

    No, in fact you'll lose the changes if you reboot unless you persist those options in /etc/fstab.

    Thanks
    let me try this

Sign In or Register to comment.