Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Consider the following scenario:

  • I use Linux device mapper to create a snapshot of an ext4 file system.
  • The snapshot is mounted as read-only; the source volume is mounted as read-write.
  • I read the snapshot, and simultaneously write (too much) to the source volume. Eventually, the copy-on-write table fills up.

Now exactly what happens in practice from the user's perspective? What kind of messages should I expect to see in dmesg? How do the applications that read the snapshot behave? Has someone actually tried this to see what would happen?

share|improve this question
    
This looks interesting, but I don't understand why you ask that instead of trying it yourself - since you know exactly how to trigger such situation. –  rozcietrzewiacz Aug 17 '11 at 22:00
    
@rozcietrzewiacz: Not that easy right now, unfortunately... Besides, I suspect that the answer is non-unique and may depend on the exact circumstances; hence I would be happy to hear of any experiences that other people have had with this kind of situations. –  Jukka Suomela Aug 17 '11 at 22:22
3  
Did you read this Q&A: LVM is reporting I/O errors, but the disk reports no problems. Argh ? –  Mat Aug 18 '11 at 4:58
    
@Mat: Thanks, this is certainly relevant; perhaps you could post it as an answer (link + a brief summary)? –  Jukka Suomela Aug 18 '11 at 9:10

1 Answer 1

up vote 1 down vote accepted

When the COW fills up, you start getting I/O errors on write operations.

LVM2 allows you to check the size and usage of the COW, and resize it if necessary.

share|improve this answer

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.