{"id":1019,"date":"2021-01-31T22:32:36","date_gmt":"2021-01-31T22:32:36","guid":{"rendered":"http:\/\/www.p2vpro.com\/?p=1019"},"modified":"2021-01-31T22:34:33","modified_gmt":"2021-01-31T22:34:33","slug":"the-gift-that-keeps-on-giving","status":"publish","type":"post","link":"https:\/\/www.p2vpro.com\/?p=1019","title":{"rendered":"The Gift That Keeps on Giving&#8230;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Giving problems that is. Before I start, I notice it&#8217;s very nearly a year since my last blog! Doesn&#8217;t time fly! I blame Covid and starting a new job which has kept me busy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Part of the reason I am writing this now is that I stupidly locked myself out of my work account late on Friday so have had no work distractions over the weekend. Instead I decided to fix a long-standing problem with my QNAP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, the gift that keeps on giving problems. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To be fair, it&#8217;s not all the QNAP&#8217;s fault. I&#8217;ve tried putting it in various rooms of the house (even empty ones) but somehow, it keeps getting turned off at the mains by &#8220;other people&#8221; plugging in vacuum cleaners or the like. This tends to wreak havoc with the 2TB ext4 filesystem and sometimes the RAID array too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This shouldn&#8217;t happen but it reminds me of the early days of my career in the early 90s when exactly this thing happened at a company I worked for. They had a SCO Unix PC on a desk in an office in London. It kept going wrong and they kept complaining. After a few trips down to London to repeatedly fix it, we realised that the cleaners were unplugging it. Naturally they hadn&#8217;t thought of a cabinet, server cupboard or even a UPS or a note on the plug. IT was a bit of an inconvenience for them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anyway, 30 years later and it&#8217;s still happening albeit in a domestic context. The background is that whenever I would log on to my QNAP the filesystem would always be corrupt. Sometimes because it had been unplugged but sometimes for no reason whatsoever. To fix this I came up with a process which involved plugging in a console and keyboard, shutting down the services, un-mounting the filesystem, running e2fsck and starting everything again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After a while however, it became apparent that running e2fsck, even when forced, didn&#8217;t fix all the problems. Straight after a filesystem fix I still got messages like the one below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"756\" src=\"https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7815.jpg\" alt=\"\" class=\"wp-image-1021\" srcset=\"https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7815.jpg 1008w, https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7815-300x225.jpg 300w, https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7815-768x576.jpg 768w, https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7815-400x300.jpg 400w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><figcaption>Suspicious ext4 filesystem errors on QNAP<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, I don&#8217;t know what the errors above mean but e2fsck never fixed them and the filesystem continued to get corrupted. Luckily I didn&#8217;t lose any data.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"756\" src=\"https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7817.jpg\" alt=\"\" class=\"wp-image-1020\" srcset=\"https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7817.jpg 1008w, https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7817-300x225.jpg 300w, https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7817-768x576.jpg 768w, https:\/\/www.p2vpro.com\/wp-content\/uploads\/2021\/01\/IMG_7817-400x300.jpg 400w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Anyway, this weekend I finally bit the bullet, after copying all the old content to an external drive and all the active content to Onedrive. I took the advice of various websites and decided to use the QNAP as a backup store rather than a primary one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This involved, deleting the volume completely and re-generating it as a new RAID volume and filesystem. Strangely, after the original volume had been deleted, there was no option to create a RAID5. So I created a RAID10 instead. I deleted that because I wanted more space and the next time the RAID5 option was available. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s all just a bit &#8220;random&#8221; really. I do still like the QNAP but if it continues to play up after this major surgery, I will have to write another blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Giving problems that is. Before I start, I notice it&#8217;s very nearly a year since my last blog! Doesn&#8217;t time fly! I blame Covid and starting a new job which has kept me busy. Part of the reason I am &hellip; <a href=\"https:\/\/www.p2vpro.com\/?p=1019\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1019","post","type-post","status-publish","format-standard","hentry","category-general-technology"],"_links":{"self":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts\/1019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1019"}],"version-history":[{"count":2,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts\/1019\/revisions"}],"predecessor-version":[{"id":1023,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=\/wp\/v2\/posts\/1019\/revisions\/1023"}],"wp:attachment":[{"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.p2vpro.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}