I have been reading about LVM Snapshots, and I have a general understanding of how it works. If a snapshot is made of source data, I understand that the copy-on-write (COW) means that if a modification is made to existing source volume data, then the "old" data from the source volume is copied to the snapshot volume before the source data is modified.

My question is specifically about what happens to the snapshot volume when "new" data is written to the source volume (ie. not modifying data that is in the source volume already). Is this new data copied to the snapshot volume?


The short answer is no, new data isn't copied to the snapshot volume. A snapshot really is just that, in appearances anyway: a snapshot of a volume, frozen at the time the snapshot was taken.

At the LVM level, the system doesn't know that you're writing new data – it just sees blocks being written, and it doesn't know if the data being written is replacing an existing file or creating a new one.

  • Thanks! Now that I think about it a bit more, that makes sense. The "original" data is copied over to the snapshot volume, but for new writes the original data is nothing, which means that nothing should be copied to the snapshot volume. – Alexander Marquardt Mar 18 '16 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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