{"id":750,"date":"2024-10-21T12:35:04","date_gmt":"2024-10-21T17:35:04","guid":{"rendered":"http:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=750"},"modified":"2024-10-21T12:35:04","modified_gmt":"2024-10-21T17:35:04","slug":"when-dnf-yum-update-stuck-on-cleaning-up","status":"publish","type":"post","link":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=750","title":{"rendered":"When dnf\/yum update stuck on cleaning up&#8230;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Sometimes when you are doing dnf\/yum update, the progress may stop on the last step &#8211; cleaning up packages for hours, if you have a super large data drive.  This may be caused by an installing script falsely attempts to scan through multi-million files on your data drive that is not mounted in a regular location.  If this is the case, you can do the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open another terminal, use &#8220;top&#8221; to find out which process is keeping working, like texlua etc will show up on top.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then you can do &#8220;lsof | grep &lt;process_name&gt; to find out which drive this process is scanning through.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you find it, for example, if it is &#8220;\/data\/home&#8221;, you can do &#8220;umount -l &lt;volume_name&gt;&#8221;, (here it is &#8220;umount -l \/data\/home&#8221;), wait 10 seconds, then &#8220;mount \/data\/home&#8221; to remount it.  Then the process that scanning the drive will think there is no more files, and quit it.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will allow the dnf\/yum finish without any error.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes when you are doing dnf\/yum update, the progress may stop on the last step &#8211; cleaning up packages for hours, if you have a super large data drive. This may be caused by an installing script falsely attempts to scan through multi-million files on your data drive that is not mounted in a regular [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-750","post","type-post","status-publish","format-standard","hentry","category-uncategorized","post-blog"],"_links":{"self":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=750"}],"version-history":[{"count":1,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/750\/revisions"}],"predecessor-version":[{"id":751,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/750\/revisions\/751"}],"wp:attachment":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}