{"id":1285,"date":"2019-02-05T18:31:56","date_gmt":"2019-02-05T18:31:56","guid":{"rendered":"http:\/\/www.edwinmichielsen.nl\/?p=1285"},"modified":"2019-02-14T18:58:16","modified_gmt":"2019-02-14T18:58:16","slug":"raspberry-pi-move-log-to-ram","status":"publish","type":"post","link":"https:\/\/edwinmichielsen.nl\/?p=1285","title":{"rendered":"Raspberry Pi move log to RAM"},"content":{"rendered":"<p>In order to lower the number of writes to the SD-card, it is wise to move the log life to a tmpfs mount in RAM.<\/p>\n<p>i found this site that explains how to do it: <a href=\"https:\/\/domoticproject.com\/extending-life-raspberry-pi-sd-card\/\">https:\/\/domoticproject.com\/extending-life-raspberry-pi-sd-card\/<\/a><\/p>\n<p>As a result of this , the MQTT service running on my Domoticz Pi, raised an error. <em>Error: MQTT: Failed to start, return code: 14 (Check IP\/Port)<\/em><\/p>\n<p>Apperantly the dir \/var\/log\/mosquitto can not be created on RAM .<\/p>\n<p>A suggested solution that I need to test is in: <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=34820\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=34820<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to lower the number of writes to the SD-card, it is wise to move the log life to a tmpfs mount in RAM. i found this site that explains how to do it: https:\/\/domoticproject.com\/extending-life-raspberry-pi-sd-card\/ As a result of this , the MQTT service running on my Domoticz Pi, raised an error. Error: MQTT: &hellip; <a href=\"https:\/\/edwinmichielsen.nl\/?p=1285\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raspberry Pi move log to RAM&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4,13],"tags":[74,53,75],"class_list":["post-1285","post","type-post","status-publish","format-standard","hentry","category-domotica","category-raspberry","tag-linux","tag-raspberry","tag-sdcard"],"_links":{"self":[{"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=\/wp\/v2\/posts\/1285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1285"}],"version-history":[{"count":5,"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=\/wp\/v2\/posts\/1285\/revisions"}],"predecessor-version":[{"id":1292,"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=\/wp\/v2\/posts\/1285\/revisions\/1292"}],"wp:attachment":[{"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edwinmichielsen.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}