-
Notifications
You must be signed in to change notification settings - Fork 55
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
Create pool with no_discard_passdown to avoid an unhelpful error message #1374
Comments
Thanks for the question. I can't be sure exactly what version you are running but I think I can give you an answer that covers the possibilities. These two info messages form a pair and indicate that everything is going as it should:
the thinpool detects that it has used up a preset portion of the available space in its data device. It sent an event; stratisd received it and caused the thinpool data device to be expanded. These are important events, which is why they get logged, but that all looks like correct functioning. The other two messages are really bookkeeping logs by devicemapper, but they also don't indicate that anything is going wrong.
What these mean is that the device that is used for the thin pool data device does not support discard, so the thinpool is not going to provide any discard information to that device. It doesn't mean that the thinpool device itself is not going to take what advantage it can of any discard information it may have gotten from xfs. So if you manually use fstrim on a filesystem on a volume the discarded block information should be communicated to the thinpool which should update its data structures to indicate that these discarded blocks are free and these blocks should be able to be reused. |
Sounds like to prevent this message being emitted we should explicitly say "no passdown please". (Not too hard, I'm hoping) |
This will actually be more work than I had originally thought. We will need to alter how we call |
devicemapper uses the default table concept for all devices except linear/flakey. If the default table concept is adjusted it should be adjusted uniformly for all. Note that flakey is special, it's feature args are not like all the others. |
The thing that has made life easy so far is that, although the feature args can be read, devicemapper never interprets them. If interpretation is left to a later time, the question still arises of how they should be written. |
stratis-storage/devicemapper-rs#401 resolves the problem, but is not a good long term solution. See stratis-storage/devicemapper-rs#400 for what ought to be done. |
Hi,
I get a a lot of errors like this, is it something to worry about? Everything's working fine and the pool can be re-mounted after a reboot:
What does it mean?
[ 261.989567] device-mapper: thin: 253:3: reached low water mark for data device: sending event.
[ 262.064918] device-mapper: thin: Data device (dm-2) discard unsupported: Disabling discard passdown.
[ 262.064962] device-mapper: thin: 253:3: growing the data device from 942848 to 951040 blocks
[ 262.118500] device-mapper: thin: Data device (dm-2) discard unsupported: Disabling discard passdown.
Does this mean that a thin volume will never be able to shrink, or will fstrim still work?
The text was updated successfully, but these errors were encountered: