datto / dattobd

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
576 stars 122 forks source link

Hangs when running dbdctl destroy #374

Closed yito24 closed 1 month ago

yito24 commented 6 months ago

If it have a partition layout where /home is separate, attempting to destroy a snapshot of /home will hang.

Does not occur on RHEL9.3. This is occurring on RHEL8.9.

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk ├─sda1 8:1 0 600M 0 part /boot/efi ├─sda2 8:2 0 1G 0 part /boot ├─sda3 8:3 0 50G 0 part / ├─sda4 8:4 0 4G 0 part [SWAP] └─sda5 8:5 0 44.5G 0 part /home  sr0 11:0 1 1024M 0 rom
datto0 253:0 0 600M 1 disk datto1 253:1 0 1G 1 disk datto2 253:2 0 50G 1 disk datto3 253:3 0 44.5G 1 disk -------->When I run "dbdctl destroy 3", hang here.

I tried below driver. 0.11.8 Not hang ------> New status 0.11.7 hang 0.11.6 hang 0.11.5 hang 0.11.4 hang 0.11.3 hang 0.11.0 hang 0.10.16 Not hang

lianghairun93 commented 2 months ago

When both a vfat partition and other partitions exist, destroy the snapshot may cause a hang。 The following scenarios were tested: I tested the following scenarios on CentOS 7.9: 1.sdb ├─sdb1 vfat BB2E-8006 └─sdb2 xfs eef96e9a-290c-4841-8652-6ae80e7a4f3a hang

2.sdb ├─sdb1 vfat BB2E-8006 not hang

3.sdb └─sdb1 xfs eef96e9a-290c-4841-8652-6ae80e7a4f3a not hang

yito24 commented 2 months ago

Hi lianghairun93,

I tested with the 0.11.8 driver. I confirmed that this issue is resolved in RHEL7.x and RHEL8.x

I tested similar configuration.

NAME SIZE TYPE FSTYPE sda 100G disk ├─sda1 200M part vfat ├─sda2 1G part xfs ├─sda3 3.9G part swap ├─sda4 50G part xfs └─sda5 44.9G part xfs sdb 16G disk ├─sdb1 2.1G part vfat └─sdb2 14G part xfs

However, I didn't occur hangs. I'll close this issue as I believe it's fixed in v0.11.8.