{"id":587,"date":"2019-01-17T13:51:25","date_gmt":"2019-01-17T12:51:25","guid":{"rendered":"http:\/\/blog.nosland.com\/?p=587"},"modified":"2019-01-18T12:40:24","modified_gmt":"2019-01-18T11:40:24","slug":"agrandir-le-swap-sous-linux","status":"publish","type":"post","link":"http:\/\/blog.nosland.com\/?p=587","title":{"rendered":"Agrandir le swap sous Linux"},"content":{"rendered":"\n<p>Petit m\u00e9mo sur l&rsquo;augmentation de l&rsquo;espace swap <\/p>\n\n\n\n<p>Sous root : <\/p>\n\n\n\n<p>lancer lvdisplay pour identifier l&#8217;emplacement du swap : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-luminous-vivid-amber-color has-very-dark-gray-background-color\">&#8212; Logical volume &#8212;<br>LV Path                \/dev\/vg1\/swap<br>LV Name                swap<br>VG Name                vg1<br>LV UUID                hNrCRW-aTMq-hu2m-vzwA-GK0b-sRi4-bIQM2q<br>LV Write Access        read\/write<br>LV Creation host, time oracle.nosland.com, 2016-12-22 15:47:05 +0100<br>LV Status              available<br># open                 2<br>LV Size                3.00 GiB<br>Current LE             768<br>Segments               1<br>Allocation             inherit<br>Read ahead sectors     auto<br>currently set to     8192<br>Block device           253:1<\/p>\n\n\n\n<p>Le volume logique se trouve donc \/dev\/vg1\/swap <\/p>\n\n\n\n<p>D\u00e9sactiver le swap : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-luminous-vivid-amber-color has-very-dark-gray-background-color\">swapoff -v \/dev\/vg1\/swap<\/p>\n\n\n\n<p>Agrandir le volume : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-luminous-vivid-amber-color has-very-dark-gray-background-color\">lvrextend -L \/dev\/vg1\/swap +5GB  <\/p>\n\n\n\n<p>Formater le nouvel espace de swap : <\/p>\n\n\n\n<p class=\"has-text-color has-background has-luminous-vivid-amber-color has-very-dark-gray-background-color\">mkswap \/dev\/vg1\/swap<\/p>\n\n\n\n<p>R\u00e9activer le swap :<\/p>\n\n\n\n<p class=\"has-text-color has-background has-luminous-vivid-amber-color has-very-dark-gray-background-color\">swapon -va<\/p>\n\n\n\n<p>Et voil\u00e0 c&rsquo;est termin\u00e9. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Petit m\u00e9mo sur l&rsquo;augmentation de l&rsquo;espace swap Sous root : lancer lvdisplay pour identifier l&#8217;emplacement du swap : &#8212; Logical&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts\/587"}],"collection":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":2,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":589,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions\/589"}],"wp:attachment":[{"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.nosland.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}