Skip to content

mergerfs.percent-full-mover script - 13: [: Verw: unexpected operator #1314

Answered by Br33ce
Br33ce asked this question in Q&A
Discussion options

You must be logged in to vote

I've found the error and it was something specific to "my" system. I checked the output of the while conditions,yes:
root@NAS-Breece2:~# df --output=pcent /srv/dev-disk-by-uuid-fafc3b71-0e57-42e5-a 497-1067a8bac008 Verw% 1%

Most of my Debian appears to be in english, but SOME things are as per my location in GERMAN. So it does not result in USE% but in Verw% (Verwendung is Usage in German)... Ofc. grep cant work with that...

With the corrected line
while [ $(df --output=pcent "${CACHE}" | grep -v Verw | cut -d'%' -f1) -gt ${PERCENTAGE} ]

everything works as its supposed to. I hope this might help others. Thank you very much for the assistance!

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@Br33ce
Comment options

@trapexit
Comment options

@trapexit
Comment options

@Br33ce
Comment options

Answer selected by Br33ce
@trapexit
Comment options

@Br33ce
Comment options

@Br33ce
Comment options

@trapexit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants