Skip to content
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

plot-mover.sh - Drive full check is not accurate for large drives. #2

Open
johnbiggs opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@johnbiggs
Copy link

johnbiggs commented Nov 30, 2023

Drive full at 100% is not sufficient. On my drives the drive reports 100% full although there is room for one more plot.

/dev/sdb1 13T 13T 121G 100% /mnt/chia/chia-6
/dev/sdd1 13T 13T 121G 100% /mnt/chia/chia-8
/dev/sde1 13T 13T 121G 100% /mnt/chia/chia-9

Fix is looking for XXG in free space instead of 100% usage to determine fullness. Not foolproof because 99G could be considered full but plot could be much less with compression. But much better for my situation as all my drives (8T, 12T, 14T, 16T) report over 100G while usage is 100%.

- if ! df -h "$drive" | awk '{print $5}' | tail -1 | grep -q "^100"; then
+ if ! df -h "$drive" | awk '{print $4}' | tail -1 | grep -q "^[0-9]\{2\}G$"; then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant