mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Show files in use if unmounting fails
This commit is contained in:
parent
439cb522dd
commit
6b87af0eae
@ -49,6 +49,7 @@ echo "Unmounting /dev/datto$NUM at /mnt/urbackup_snaps/$SNAP_ID..."
|
||||
|
||||
if ! umount /mnt/urbackup_snaps/$SNAP_ID
|
||||
then
|
||||
lsof | grep /mnt/urbackup_snaps/$SNAP_ID || true
|
||||
echo "Unmounting /mnt/urbackup_snaps/$SNAP_ID failed. Retrying in 10s..."
|
||||
sleep 10
|
||||
umount /mnt/urbackup_snaps/$SNAP_ID
|
||||
|
||||
@ -42,6 +42,7 @@ echo "Unmounting $VOLNAME at /mnt/urbackup_snaps/$SNAP_ID..."
|
||||
|
||||
if ! umount /mnt/urbackup_snaps/$SNAP_ID
|
||||
then
|
||||
lsof | grep /mnt/urbackup_snaps/$SNAP_ID || true
|
||||
sleep 10
|
||||
umount /mnt/urbackup_snaps/$SNAP_ID
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user