Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

If I create a ram disk on cent os using tmpfs will it go away on restart? I know the data will go away (I would assume), but will it still survive a reboot?

I am going to allocate a ram disk for use on mysql /tmp directory I just want to make sure it will work after reboot. (I don't have another server to try it on)

share|improve this question

migrated from serverfault.com Apr 27 at 14:25

This question came from our site for professional system and network administrators.

    
What do you mean by making sure it will work? Do you want the /tmp directory to be tmpfs again (that is easily done with an entry in /etc/fstab and starting mysql after mounting). But the contents mysql put there will be gone. –  Anthon Apr 29 at 4:27

1 Answer 1

The data on a tmpfs (Temporary Filesystem) will not persist across reboots.

If you only care to preserve the mountpoint, that will be dictated by your /etc/fstab definition.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.