drbd-utils icon indicating copy to clipboard operation
drbd-utils copied to clipboard

snapshot-resync-target-lvm.sh cannot create a thin snapshot

Open ajschorr opened this issue 2 years ago • 0 comments

In snapshot-resync-target-lvm.sh, the snapshot is created like so:

lvcreate -s -n $SNAP_NAME -L ${SNAP_SIZE}k $LVC_OPTIONS $VG_NAME/$LV_NAME

Because of the -L option, the resulting snapshot will be a "thick" snapshot, even if the volume in question is a thin volume. Is there some reason that it is done this way with no option for creating a thin snapshot by omitting this argument?

Perhaps I'm missing something important, but it seems to me that there should be an option to this script to omit the -L argument so that a thin snapshot could be used instead.

Regards, Andy

ajschorr avatar Oct 06 '23 13:10 ajschorr