{"id":387,"date":"2011-01-28T00:30:38","date_gmt":"2011-10-28T21:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/swapon-s-shows-swap-spaces-as-deleted-if-these-are-lvm-volumes\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-10-28T21:51:50","slug":"swapon-s-shows-swap-spaces-as-deleted-if-these-are-lvm-volumes","status":"publish","type":"post","link":"\/blog\/index.php\/swapon-s-shows-swap-spaces-as-deleted-if-these-are-lvm-volumes\/","title":{"rendered":"&#8220;swapon -s&#8221; shows swap spaces as &#8220;(deleted)&#8221; if these are lvm volumes"},"content":{"rendered":"<p>[root@mylinux]# swapon -s<br \/>\nFilename Type Size Used Priority<br \/>\n\/dev\/systemvg\/swapvol (deleted) partition 4095992 0 -3<br \/>\nAccording to http:\/\/kbase. redhat.com\/faq\/FAQ_79_4331.shtm we need to<br \/>\nadd &#8220;swapoff -a &amp;&amp; swapon -a&#8221; to the end of \/etc\/rc.d\/rc. sysinit<br \/>\nWe can also run<br \/>\n#swapoff -a &amp;&amp; swapon -a<br \/>\nTo fix it live, and we&#8217;ll see:<br \/>\n[root@mylinux]# swapon -s<br \/>\nFilename Type Size Used Priority<br \/>\n\/dev\/systemvg\/swapvol partition 4095992 0 -3<br \/>\n114\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@mylinux]# swapon -s Filename Type Size Used Priority \/dev\/systemvg\/swapvol (deleted) partition 4095992 0 -3 According to http:\/\/kbase. redhat.com\/faq\/FAQ_79_4331.shtm we need to add &#8220;swapoff -a &amp;&amp; swapon -a&#8221; to the end of \/etc\/rc.d\/rc. sysinit We can also run #swapoff -a &amp;&amp; swapon -a To fix it live, and we&#8217;ll see: [root@mylinux]# swapon -s Filename Type Size [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}