Monitor the dd command

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Synopsis

This is the procedure to monitor progress of a dd. This will be specially useful when zeroing a drive.

  1. First, find out the process id of the dd process by running the following in the new virtual terminal.

     $ pgrep -l '^dd$'
     8789 dd
    
  2. Send the USR1 signal to the dd prcoess to retrieve stats in STDERR:

     $ sudo kill -USR1  8789
    

    Note: that as soon as the USR1 signal is detected, dd will print out the current statistics to its STDERR.

  3. After reporting the status, dd will resume copying.

  4. You can repeat the above kill command any time you want to see the interim statistics.

  5. To continuously monitor progress, you can make use of the watch command.