markusressel / zfs-inplace-rebalancing

Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool.
Creative Commons Zero v1.0 Universal
340 stars 30 forks source link

permission issue causing MD5 FAILED #12

Closed rattkin closed 1 year ago

rattkin commented 1 year ago

It often stops (not always though) with this issue

Comparing copy against original...
MD5 FAILED:
---------------------- -rw-r--r--+ naser wheel 27ca390baf807f9728af92442217769b
!=
---------------------- -rwxr--r--+ naser wheel 27ca390baf807f9728af92442217769b

it seems to me that the MD5 matches, only the x permission is different. I have issue with permissions sometimes (umask 022)

markusressel commented 1 year ago

Well the MD5 FAILED: message might be a bit misleading, its actually comparing everything you see printed afterwards. Not sure why its not copying the permissions though. Currently the script doesn't set permissions itself, but relies on cp to copy them correctly. Can you try to use the cp command and arguments from the script and run it manually to see what happens? Can you fix the permissions if you set them manually or by changing the arguments?

rattkin commented 1 year ago

If I set ZFS permissions again from the truenas gui, it is fixed. The problem is probably only for files copied from desktop