Understanding compression in replication tasks - change of compression not possible

vafk

Contributor
Joined
Jun 22, 2017
Messages
132
I set up a new system with 11.3 from scratch. After replicating 5 snapshots from my main system I realized that compression level was off on the target/replica.
Unfortunately I spotted this only after Gigabyte of data was replicated. So I changed the compression level to "lz4". Now some of the pools accepted the change while others gave the following error [aclmode] Invalid choice: DISCARD add_circle_outlineMore info...

I applied new ACL (OPEN) on the affected pool and tried to change compression to "lz4" and still get the above error (and details as below).

I also changed compression level on main system from "inherits (lz4)" to "lz4" but that did not help either. But how do I change the compression on target, with the below error? Also what I do not understand, how the target got mixed up compression levels although the compression level on source was same for all replicated pools...


Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1077, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 403, in update
f'{self._config.namespace}.update', self, self.do_update, [id, data]
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1077, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 959, in nf
args, kwargs = clean_and_validate_args(args, kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 917, in clean_and_validate_args
value = attr.clean(args[args_index + i])
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 594, in clean
data[key] = attr.clean(value)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 164, in clean
value = super(Str, self).clean(value)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 53, in clean
raise Error(self.name, f'Invalid choice: {value}')

middlewared.schema.Error: [aclmode] Invalid choice: DISCARD
 
Top