-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free space is wrongly calculated for USB disk #63
Comments
Did you also add the I suspect the targetpath variable was empty so df processed Can you run this test script and confirm that it does not give the same error? All it does it check if there's enough space. I've found another bug while testing this. I tested with a USB thumb drive that only had 670MB free and the script said it had 6GB free. I also notice you got another error:
That error is harmless, which is probably why you didn't mention it. |
yes
max@Synology:/volumeUSB1/usbshare/disaster_recovery/Synology_app_mover-3.0.50$ sudo bash syno_app_mover_test.sh
Password:
You selected Move
You selected Container Manager
debug: backup path: /volumeUSB1/usbshare/disaster_recovery/
debug: target volume: /volumeUSB1
(ditched some i/o errors here)
WARNING Not enough space to backup /volume1/@docker to /volumeUSB1
Free: 6 GB Needed: 189 GB (plus 50 GB buffer)
ERROR Not enough space on /volumeUSB1 to backup @docker!
yes, my whole volume1 is dying currently. Somehow the btrfs is corrupted, starting without any reason at all. some more max@Synology:/volumeUSB1/usbshare/disaster_recovery/Synology_app_mover-3.0.50$ df /volumeUSB1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 8191352 1620456 6452112 21% /
max@Synology:/volumeUSB1/usbshare/disaster_recovery/Synology_app_mover-3.0.50$ df /volumeUSB1/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 8191352 1620472 6452096 21% /
max@Synology:/volumeUSB1/usbshare/disaster_recovery/Synology_app_mover-3.0.50$ df /volumeUSB1/usbshare
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/usb2p1 3844638928 1522498428 2322021716 40% /volumeUSB1/usbshare
max@Synology:/volumeUSB1/usbshare/disaster_recovery/Synology_app_mover-3.0.50$ df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 8191352 1620524 6452044 21% / |
I see the problem now. For USB drives the mount point is This new version should work now https://github.com/007revad/Synology_app_mover/releases/tag/v3.0.51 |
Works fine, thanks! |
Thanks for that script, might save me a lot of work when getting my broken btrfs up again 👍
When using a USB disk as a backup target, the free space is calculated wrongly.
the line
vol_free_space called with /volumeUSB1
was added by me, but shows the issue.As the USB volume is mounted within
/volumeUSB1/usbshare
the free space if/
is returned.The text was updated successfully, but these errors were encountered: