Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can keep checking the io stats to see if IO is still going to the disk. If it is, then you should wait until it finishes.

For example:

:~$ iostat -m Linux 3.18.7-200.fc21.x86_64 (hades) 02/24/2015 _x86_64_ (4 CPU)

avg-cpu: %user %nice %system %iowait %steal %idle 1.46 0.04 0.59 1.21 0.00 96.70

Device: tps MB_read/s MB_wrtn/s MB_read MB_wrtn sda 7.23 0.16 0.16 13311 12711 dm-0 8.85 0.16 0.16 13307 12711 dm-1 0.05 0.00 0.00 5 10 dm-2 2.73 0.03 0.02 2755 1908 dm-3 5.99 0.13 0.13 10546 10792

$