{"id":2829,"date":"2019-10-28T07:34:49","date_gmt":"2019-10-28T11:34:49","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=2829"},"modified":"2019-11-14T10:55:37","modified_gmt":"2019-11-14T15:55:37","slug":"flushing-the-swap-file-in-webmin","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2019\/10\/28\/flushing-the-swap-file-in-webmin\/","title":{"rendered":"Flushing the swap file in Webmin without rebooting"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2830\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2019\/10\/centos-swap.png\" alt=\"\" width=\"782\" height=\"160\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2019\/10\/centos-swap.png 782w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2019\/10\/centos-swap-300x61.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2019\/10\/centos-swap-768x157.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/p>\n<p><strong>Flushing the Swap file (Virtual Memory):<\/strong><\/p>\n<p># swapoff <span class=\"re5\">-a<\/span>\u00a0<span class=\"sy0\">&amp;&amp;<\/span>\u00a0swapon\u00a0<span class=\"re5\">-a<\/span><\/p>\n<p><strong>Disabling the Swap File:<\/strong><\/p>\n<p># <span class=\"kw2\">sudo<\/span>\u00a0swapoff\u00a0<span class=\"re5\">-a<\/span><\/p>\n<p><strong>Permanently Disabling the Swap File:<\/strong><\/p>\n<p><span class=\"kw2\"># nano<\/span>\u00a0<span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>fstab<\/p>\n<p><strong>And # hash out the line indicated as swap then reboot:<\/strong><\/p>\n<p><span class=\"co0\">\/etc\/fstab<\/span><br \/>\n<span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>mapper<span class=\"sy0\">\/<\/span>centos-root\u00a0<span class=\"sy0\">\/<\/span>\u00a0xfs defaults\u00a0<span class=\"nu0\">0<\/span>\u00a0<span class=\"nu0\">0<\/span><br \/>\n<span class=\"re2\">UUID<\/span>=5cd945c2-5ca7-48c5-b67b-0f3610534e8f\u00a0<span class=\"sy0\">\/<\/span>boot xfs defaults\u00a0<span class=\"nu0\">0<\/span>\u00a0<span class=\"nu0\">0<\/span><br \/>\n<span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>mapper<span class=\"sy0\">\/<\/span>centos-home\u00a0<span class=\"sy0\">\/<\/span>home xfs defaults\u00a0<span class=\"nu0\">0<\/span>\u00a0<span class=\"nu0\">0<\/span><br \/>\n<span style=\"color: #ff0000;\"><strong><span class=\"co0\"># \/dev\/mapper\/centos-swap swap swap defaults 0 0<\/span><\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flushing the Swap file (Virtual Memory): # swapoff -a\u00a0&amp;&amp;\u00a0swapon\u00a0-a Disabling the Swap File: # sudo\u00a0swapoff\u00a0-a Permanently Disabling the Swap File: # nano\u00a0\/etc\/fstab And # hash out the line indicated as swap then reboot: \/etc\/fstab \/dev\/mapper\/centos-root\u00a0\/\u00a0xfs defaults\u00a00\u00a00 UUID=5cd945c2-5ca7-48c5-b67b-0f3610534e8f\u00a0\/boot xfs defaults\u00a00\u00a00 \/dev\/mapper\/centos-home\u00a0\/home xfs defaults\u00a00\u00a00 # \/dev\/mapper\/centos-swap swap swap defaults 0 0<\/p>\n","protected":false},"author":2,"featured_media":2889,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=2829"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2829\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/2889"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=2829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=2829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=2829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}