{"id":1142,"date":"2017-10-20T06:52:31","date_gmt":"2017-10-20T11:52:31","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1142"},"modified":"2017-10-20T06:52:31","modified_gmt":"2017-10-20T11:52:31","slug":"monitor-progress-of-large-dd-process","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/monitor-progress-of-large-dd-process\/","title":{"rendered":"Monitor progress of large dd process"},"content":{"rendered":"
If you want to see how a large copy is proceeding you can send -USR1 to the process.<\/p>\n
Copy<\/p>\n
\r\n# dd if=a.img of=\/dev\/libvirt_lvm\/a-os\r\n<\/pre>\nIn a new terminal send -USR1 to the process or even use watch if you like.<\/p>\n
\r\n# watch -n60 'kill -USR1 $(pgrep ^dd)'\r\n<\/pre>\nThe copy will start showing some progress lines after each -USR1 received.<\/p>\n
\r\n6370041+0 records in\r\n6370041+0 records out\r\n3261460992 bytes (3.3 GB) copied, 247.17 s, 13.2 MB\/s\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"If you want to see how a large copy is proceeding you can send -USR1 to the process. Copy #<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[],"class_list":["post-1142","post","type-post","status-publish","format-standard","hentry","category-unix"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1142"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1142\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}