On Tue, Mar 31, 2020 at 10:46:17PM +0100, Graham Cobb wrote: > On 31/03/2020 20:10, Goffredo Baroncelli wrote: > > WARNING: ------------------------------------------------------ > > WARNING: Detection of multiple profiles for a block group type: > > WARNING: > > WARNING: * DATA -> [raid1c3, single] > > WARNING: * METADATA -> [raid1, single] > > WARNING: > > WARNING: Please consider using 'btrfs balance ...' commands set > > WARNING: to solve this issue. > > WARNING: ------------------------------------------------------ > > The check is a good a idea but I think the warning is too strong. I > would prefer that the word "Warning" is reserved for cases and > operations that may actually damage data (such as reformating a > filesystem). [Note: in a previous job, my employer decided that the word > Warning was ONLY to be used if there was a risk of harm to a human - for > example, electrical safety] > > Also, btrfs fi usage is something that I routinely run continuously in a > window (using watch) when a remove/replace/balance operation is in I was going to say please put all the new output lines at the bottom, so that 'watch' windows can be minimally sized without having to write something like watch 'btrfs fi usage /foo | sed -e "g/WARNING:/d"' People with short terminal windows running btrfs fi usage directly from the command line would probably complain about extra lines at the bottom... Another good idea here would be a --quiet switch, or '--no-profile-warning'. > progress to monitor at a glance what is happening - I don't want to > waste all that space on the screen. To say nothing of the annoyance of > having it shouting at me for weeks on end while **I AM TRYING TO FIX THE > DAMN PROBLEM!**. > > I would suggest a more compact layout and factual tone. Something like: > > Caution: This filesystem has multiple profiles for a block group type > so new block groups will have unpredictable profiles. > * DATA -> [raid1c3, single] > * METADATA -> [raid1, single] > Use of 'btrfs balance' is recommended as soon as possible to move all > blocks to a single profile for each of data and metadata. How about a one-liner: NOTE: Multiple profiles detected. See 'man btrfs-filesystem'. with a section in the btrfs-filesystem man page giving a detailed description of the problem and examples of possible remedies.
