{"id":3766,"date":"2019-06-26T08:52:06","date_gmt":"2019-06-26T08:52:06","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=3766"},"modified":"2021-11-14T13:45:48","modified_gmt":"2021-11-14T13:45:48","slug":"solution-clean-full-disk-space-by-dev-vda1","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/solution-clean-full-disk-space-by-dev-vda1\/","title":{"rendered":"[SOLUTION] Clean Full Disk space by \/dev\/vda1"},"content":{"rendered":"<div class=\"default-content-clss content_3766 type_post \">\n<p><img decoding=\"async\" class=\"size-medium wp-image-3769 aligncenter\" src=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/06\/hdd-image-1-300x123.png\" alt=\"\" width=\"300\" height=\"123\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/06\/hdd-image-1-300x123.png 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/06\/hdd-image-1-768x314.png 768w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/06\/hdd-image-1-1024x418.png 1024w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/06\/hdd-image-1-400x163.png 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/06\/hdd-image-1.png 1060w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h1 style=\"text-align: center;\">How to empty <code>sda1<\/code>,<code>vda1<\/code> on VPS<\/h1>\n<p>Sometimes your OS (<strong>Ubuntu, Linux<\/strong>, etc&#8230;) disk space might become full, by <code>\/dev\/vda1\/<\/code>, <code>\/dev\/vda2\/<\/code>, <code>\/dev\/vda3\/<\/code>\u00a0or etc&#8230; (To check that, just navigate to root directory by using command:\u00a0<code>cd ..<\/code>\u00a0and then use\u00a0<code>df -h<\/code>\u00a0to see the disk usage)\u00a0.\u00a0<\/p>\n<h2 style=\"text-align: center;\">Jenkins or Docker (or other) might be the issue<\/h2>\n<p>Many times, that problem might be coming from <strong>Jenkins \/ Docker<\/strong>. If you use Jenkins, then\u00a0I suggest that you making the logs smaller. For that, in <code>\/etc\/logrotate.d\/jenkins<\/code>\u00a0you might use:<\/p>\n<pre>\/var\/log\/jenkins\/jenkins.log {<br \/>    daily<br \/>    copytruncate<br \/>    missingok<br \/>    rotate 2<br \/>    size 1M<br \/>    nocompress<br \/>    notifempty<br \/>    maxage 30<br \/>}<br \/><br \/><\/pre>\n<h1 style=\"text-align: center;\">Still full disk?<\/h1>\n<p>Even after you made the above suggestion and disk space is still full, then maybe you have deleted a large file already, while that file was being stillused by some process?\u00a0To find out what might be using that space, one solution is to use the command\u00a0<code>lsof \/ | grep deleted<\/code>\u00a0and there will show up the processes that might be taking the space. You have to restart those services. Just use:<\/p>\n<pre>sudo systemctl restart <span style=\"color: #ff0000;\">processName<\/span><\/pre>\n<p>and then check again with <code>df -h<\/code>\u00a0 and you will see the space is now free!<\/p>\n<p>\u00a0<\/p>\n<h1 style=\"text-align: center;\">DigitalOcean VPS<\/h1>\n<p>Do you want a reliable VPS server starting from $5\/month? You can try <strong><a href=\"https:\/\/m.do.co\/c\/517eae4bf18f\">DigitalOcean<\/a> <\/strong>with free trial.<\/p>\n<p>\u00a0<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_3766 type_post \"><p>How to empty sda1,vda1 on VPS Sometimes your OS (Ubuntu, Linux, etc&#8230;) disk space might become full, by \/dev\/vda1\/, \/dev\/vda2\/, \/dev\/vda3\/\u00a0or etc&#8230; (To check that, just navigate to root directory<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/solution-clean-full-disk-space-by-dev-vda1\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":3769,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17,11],"tags":[],"class_list":["post-3766","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","category-windows-software"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/3766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=3766"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/3766\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/3769"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=3766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=3766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=3766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}