LINBIT / drbd-utils

DRBD userspace utilities (for 9.x, 8.4, 8.3)
GNU General Public License v2.0
79 stars 47 forks source link

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

Open ajschorr opened 1 year ago

ajschorr commented 1 year ago

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