Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way I can see the progress of a merge of my snapshot back to the origin?

The only thing I know is that there is an ongoing merge because I can't create a new snapshot.

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted
+50

When running lvconvert, use the interval flag. From the man page:

-i, --interval Seconds

Report progress as a percentage at regular intervals.

share|improve this answer
    
And if I didn't do that? No way to see it then? Or even abort it? As far as I can tell it's not doing any progress and I can't abort it. –  Andreas Wederbrand Dec 10 '13 at 9:33
    
I don't know. You could ask on the linux-lvm mailing list. sourceware.org/lvm2 –  sciurus Dec 10 '13 at 14:20
add comment

run

watch -n 1 "ps auxf | grep lvm | grep -v grep"

And check to see if the time column is going up. If it is you know the program is using CPU time.

share|improve this answer
    
Try ps auxf | grep [l]vm for an easy hack that removes the need for grep -v. –  Alexios Mar 16 at 15:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.