{"id":2068,"date":"2017-08-27T22:49:57","date_gmt":"2017-08-28T04:49:57","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=2068"},"modified":"2019-10-29T05:26:05","modified_gmt":"2019-10-29T11:26:05","slug":"how-to-perform-fsck-on-a-ploop-container-2","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/how-to-perform-fsck-on-a-ploop-container-2\/","title":{"rendered":"How to Perform fsck on a ploop Container?"},"content":{"rendered":"<p>Due to various reasons like system crash, incorrect replication level etc, the file system in a ploop container will get corrupted that can result in data loss. So it is necessary to check the filesystem in a ploop container for consistency to avoid this loss of data.<\/p>\n<p><strong>Error<\/strong><\/p>\n<p><span style=\"color: orange;\"><em>~# vzctl start 123<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>Starting container\u2026<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>Opening delta \/vz\/private\/123\/root.hdd\/root.<wbr \/>hdd<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>Adding delta dev=\/dev\/ploopxxxxx img=\/vz\/private\/123\/root.hdd\/<wbr \/>root.hdd (rw)<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>\/dev\/ploopxxxxxp1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>(i.e., without -a or -p options)<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>Error in e2fsck (fsutils.c:315): e2fsck failed (exit code 4)<\/em><\/span><\/p>\n<p><span style=\"color: orange;\"><em>Failed to mount image: Error in e2fsck (fsutils.c:315): e2fsck failed (exit code 4)<\/em><\/span><\/p>\n<p><!--more--><\/p>\n<p><strong>Resolution<\/strong><\/p>\n<p>1. Stop the container<\/p>\n<p>2. Mount the container&#8217;s ploop image.<\/p>\n<p>3. Run fdisk -l for the ploop\u00a0device reported by the previous command.<\/p>\n<p>4. Perform a file system check for the partition reported in the previous command&#8217;s output.<\/p>\n<p>5. Unmount the ploop image<\/p>\n<p>6. Start the container.<\/p>\n<p>&nbsp;<\/p>\n<p>Done! You should be good to go now!<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/www.supportpro.com\/freecheckup.php\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to various reasons like system crash, incorrect replication level etc, the file system in a ploop container will get corrupted that can result in data loss. So it is&hellip;<\/p>\n","protected":false},"author":4,"featured_media":2152,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/2068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=2068"}],"version-history":[{"count":11,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/2068\/revisions"}],"predecessor-version":[{"id":4377,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/2068\/revisions\/4377"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/2152"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=2068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=2068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=2068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}