amazon web services - Can I create swap file in the ephemeral storage? -


first of all, df -h output:

filesystem size used avail use% mounted on /dev/xvda1 7.9g 4.2g 3.4g 56% / udev 1.9g 8.0k 1.9g 1% /dev tmpfs 751m 180k 750m 1% /run none 5.0m 0 5.0m 0% /run/lock none 1.9g 0 1.9g 0% /run/shm /dev/xvdb 394g 8.4g 366g 3% /mnt 

i know /mnt ephemeral storage, data stores in deleted after reboot.

is ok create /mnt/swap file use swap file? add following line /etc/fstab

/mnt/swap1 swap swap defaults 0 0 

by way, what's /run/shm used ?

thanks.

ephemeral storage preserves data between reboots, looses them between restarts (stop/start). see this: what data stored in ephemeral storage of amazon ec2 instance?


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -