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.

The --merge option says

Can I reliably take a snapshot of the origin whilst a merge of an old snapshot into the origin is in progress

The man page says :"While the merge is in progress, reads or writes to the origin appear as they were directed to the snapshot being merged."

However, it's not clear how safe it is to take a snapshot here.

I know I could operate on the snap and discard - but that's not the question :)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

So what I didn't expect was: Snapshots of an origin that has a merging snapshot is not supported

So "No".

lvcreate -s -L 6G -n root_tst_snap /dev/deploy/root_tst
dd if=/dev/zero of=/dev/deploy/root_tst bs=10M count=100
lvconvert --merge -b /dev/deploy/root_tst_snap
lvcreate -s -L 6G -n root_tst_snap2 /dev/deploy/root_tst
# Stop here with notice
dd if=/dev/zero of=/dev/deploy/root_tst bs=10M count=100
lvconvert --merge -b /dev/deploy/root_tst_snap2
mount /dev/deploy/root_tst /mnt
ll /mnt
umount /mnt
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.