[Users] Progress on image operations (dd & USR1 signal)

Ernest Beinrohr Ernest.Beinrohr at axonpro.sk
Fri Mar 8 11:43:05 UTC 2013


Hi, I am using ovirt 3.2 and noticed that during image operations (move,
copy)
the user has no progress report. This is painful, especially if the
images are large
or the storage is slow.

Vdsm uses 'dd' to transfer images and dd provides a simple progress
report, when
it receives the USR1 signal. Could this be uses to provide the user with
some kind
of progress?

Right now i would do it with myself with strace and kill, but ovirt/vdsm
detects an
stderr output and reports a failure.

$ strace -ff -etrace=write -p `pidof dd` 2>&1 | grep -v 'write(1'

# then, in a second terminal I send the signal
$ killall -USR1 dd

Process 8706 attached - interrupt to quit
--- SIGUSR1 (User defined signal 1) @ 0 (0) ---
write(2, "14022+0 records in\n14021+0 recor"..., 39) = 39
write(2, "14702084096 bytes (15 GB) copied", 32) = 32
write(2, ", 2189.75 s, 6.7 MB/s\n", 22) = 22

-- 
Ernest Beinrohr, AXON PRO
Ing <http://www.beinrohr.sk/ing.php>, RHCE
<http://www.beinrohr.sk/rhce.php>, RHCVA
<http://www.beinrohr.sk/rhce.php>, LPIC
<http://www.beinrohr.sk/lpic.php>, +421-2--6241-0360
<callto://+421-2--6241-0360>, +421-903--482-603 <callto://+421-903--482-603>
icq:28153343, skype:oernii-work <callto://oernii-work>,
jabber:oernii at jabber.org
------------------------------------------------------------------------
“The bureaucracy is expanding to meet the needs of the expanding
bureaucracy.” ― Oscar Wilde



More information about the Users mailing list