Skip to contentSkip to conversation

thin handling of available space

linux-lvm matthew patton 3 participants 4 messages Apr 27, 2016 – Apr 28, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

It is not the OS' responsibility to coddle stupid sysadmins. If you're not watching for high-water marks in FS growth vis a vis the underlying, you're not doing your job. If there was anything more than the remotest chance that the FS would grow to full size it should not have been thin in the first place.

The FS already has a notion of 'reserved'. man(1) tune2fs -r

#2 lore raw

matthew patton schreef op 27-04-2016 12:26:

Quoted 5 lines

It is not the OS' responsibility to coddle stupid sysadmins. If you're not watching for high-water marks in FS growth vis a vis the underlying, you're not doing your job. If there was anything more than the remotest chance that the FS would grow to full size it should not have been thin in the first place.

Who says the only ones who would ever use or consider using thin would be sysadmins.?

Monitoring Linux is troublesome enough for most people and it really is a "job".

You seem to be intent on making the job harder rather than easy so you can be a type of person that has this expert knowledge while others don't?

I remember a reason to crack down on sysadmins was that they didn't know how to use "vi" - if you can't use fucking vi, you're not a sysadmin. This actually is a bloated version of what a system administrator is or could at all times be expected to do, because you are ensuring that problems are going to surface one way or another when this sysadmin is suddenly no longer capable of being this perfect guy at 100% of times.

You are basically ensuring disaster by having that attitude.

That guy that can battle against all odds and still prevail ;-).

More to the point.

No one is getting cuddled because Linux is hard enough and it is usually the users who are getting cuddled; strangely enough the attitude exists that the average desktop user never needs to look under the hood. If something is ugly, who cares, the "average user" doesn't go there.

The average user is oblivious to all system internals.

The system administrator knows everything and can launch a space rocket with nothing more than matches and some gallons of rocket fuel.

;-).

The autoextend mechanism is designed to prevent calamity when the filesystem(s) grow to full size. By your reasoning , it should not exist because it cuddles admins.

A real admin would extend manually.

A real admin would specify the right size in advance.

A real admin would use thin pools of thin pools that expand beyond your wildest dreams :p.

But on a more serious note, if there is no chance a file system will grow to full size, then it doesn't need to be that big.

But there are more use cases for thin than hosting VMs for clients.

Also I believe thin pools have a use for desktop systems as well, when you see that the only alternative really is btrfs and some distros are going with it full-time. Btrfs also has thin provisioning in a sense but on a different layer, which is why I don't like it.

Thin pools from my perspective are the only valid snapshotting mechanism if you don't use btrfs or zfs or something of the kind.

Even a simple desktop monitor, some applet with configured thin pool data, would of course alleviate a lot of the problems for a "casual desktop user". If you remotely administer your system with VNC or the like, that's the same. So I am saying there is no single use case for thin, and.

Your response mr. patton falls along the lines of "I only want this to be used by my kind of people".

"Don't turn it into something everyone or anyone can use".

"Please let it be something special and nichie".

You can read coddle in place of cuddle.

It seems to me pretty clear to me that a system that *requires* manual intervention and monitoring at all times is not a good system, particularly if the feedback on its current state cannot be retrieved from, or is usable by, other existing systems that guard against more or less the same type of things.

Besides, if your arguments here were valid, then https://bugzilla.redhat.com/show_bug.cgi?id=1189215 would never have existed.

Quoted 1 line

The FS already has a notion of 'reserved'. man(1) tune2fs -r

Alright thanks. But those blocks are manually reserved for a specific user.

That's what they are for. It is for -u. These blocks are still available to the filesystem.

You could call it calamity prevention as well. There will always be a certain amount of space for say the root user.

and by the same measure you can also say the tmpfs overflow mechanism for /tmp is not required either because a real admin would not see his rootfs go out of diskspace.

Stuff happens. You ensure you are prepared when it does. Not stick your head in the sand and claim that real gurus never encounter those situations.

The real question you should be asking is if it increases the monitoring aspect (enhances it) if thin pool data is seen through the lens of the filesystems as well.

Or whether that is going to be a detriment.

Regards.

Erratum:

https://utcc.utoronto.ca/~cks/space/blog/tech/SocialProblemsMatter

There is a widespread attitude among computer people that it is a great pity that their beautiful solutions to difficult technical challenges are being prevented from working merely by some pesky social issues [read: human flaws], and that the problem is solved once the technical work is done. This attitude misses the point, especially in system administration: broadly speaking, the technical challenges are the easy problems.

No technical system is good if people can't use it or if it makes people's lives harder (my words). One good example of course is Git. The typical attitude you get is that a real programmer has all the skills of a git guru. Yet git is a git. Git is an asshole system.

Beside the point here perhaps. But. Let's drop the "real sysadmin" ideology. We are humans. We like things to work for us. "Too easy" is not a valid criticism for not having something.

#3 lore raw

Hello Xen,

Quoted 7 lines · you

The real question you should be asking is if it increases the monitoring aspect (enhances it) if thin pool data is seen through the lens of the filesystems as well.

Beside the point here perhaps. But. Let's drop the "real sysadmin" ideology. We are humans. We like things to work for us. "Too easy" is not a valid criticism for not having something.

As far as I know (someone correct me) there is no mechanism at all in kernel for communication from lower fs layers to higher layers - besides exporting static properties like physical block size. The other way (from higher layer like fs to lower layers works fine - for example discard support).

So even if what you are asking might be valid, it isn't as simple as adding some parameter somewhere and it would magically work. It is about inventing and standardizing new communication system, which would of course work only with new versions of all the tools involved.

Anyway, I have no idea what would filesystem itself do with information that no more space is available. Also this would work only for lvm thin pools, not for thin provision directly from storage, so it would be a non-consistent mess. Or you would need another protocol for exporting thin-pool related dynamic data from storage (via NAS, SAN, iSCSI and all other protocols) to the target system. And in some organizations it is not desirable at all to make this kind of information visible to all target systems / departments.

What you are asking can be done for example directly in "df" (or you can make a wrapper script), which would not only check the filesystems themselves, but also the thin part and display the result in whatever format you want.

Also displaying real thin free space for each fs won't be "correct". If I see 1 TB free in each filesystem and starting writing, by the time I finish, those 1 TB might be taken by the other fs. So information about current free space in thinp is useless for me, as in 1 minute it could be totally different number.

Signature · 1 line
  bYE, Marki
#4 lore raw
Quoted 12 lines · Marek Podmaka

Hello Xen,

Quoted 7 lines · you

The real question you should be asking is if it increases the monitoring aspect (enhances it) if thin pool data is seen through the lens of the filesystems as well.

Beside the point here perhaps. But. Let's drop the "real sysadmin" ideology. We are humans. We like things to work for us. "Too easy" is not a valid criticism for not having something.

Quoted 5 lines

As far as I know (someone correct me) there is no mechanism at all in kernel for communication from lower fs layers to higher layers - besides exporting static properties like physical block size. The other way (from higher layer like fs to lower layers works fine - for example discard support).

I suspected so.

Quoted 4 lines

So even if what you are asking might be valid, it isn't as simple as adding some parameter somewhere and it would magically work. It is about inventing and standardizing new communication system, which would of course work only with new versions of all the tools involved.

Right.

Quoted 8 lines

Anyway, I have no idea what would filesystem itself do with information that no more space is available. Also this would work only for lvm thin pools, not for thin provision directly from storage, so it would be a non-consistent mess. Or you would need another protocol for exporting thin-pool related dynamic data from storage (via NAS, SAN, iSCSI and all other protocols) to the target system. And in some organizations it is not desirable at all to make this kind of information visible to all target systems / departments.

Yes I don't know how "thin provision directly from storage" works.

I take it you mean that these protocols you mention are or would be the channel through which the communication would need to happen that I now just proposed for LVM.

I take it you mean that these systems offer regular looking devices over any kind of link, while "secretly" behind the scenes using thin provisioning for that, and that as such we are or would be dealing with pretty "hard coded" standards that would require a lot of momentum to change any of that. In that sense that the client of these storage systems themselves do not know about the thin provisioning and it is up to the admin of those systems.,.. yadda yadda yadda.

I feel really stupid now :p.

And to make it worse, is means that in these "hardware" systems the user and admin are separated, but the same is true if you virtualize and you offer the same model to your clients. I apologize for my noviceness here the way I come across.

But I agree that to any client it is not helpful to know about hard limits that should be oblivious to them provided that the provisioning is done right.

It would be quite disconcerting to see your total available space suddenly shrink without being aware of any autoextend mechanism (for instance) and as such there seems to be a real divide between the "user" and the "supplier" of any thin volume.

Maybe I have misinterpreted the real use case for thin pools then. But my feeling is that I am just a bit confused at this point.

Quoted 4 lines

What you are asking can be done for example directly in "df" (or you can make a wrapper script), which would not only check the filesystems themselves, but also the thin part and display the result in whatever format you want.

That is true of course. I have to think about it.

Quoted 5 lines

Also displaying real thin free space for each fs won't be "correct". If I see 1 TB free in each filesystem and starting writing, by the time I finish, those 1 TB might be taken by the other fs. So information about current free space in thinp is useless for me, as in 1 minute it could be totally different number.

But the calamity is that if that was really true, and the thing didn't autoextend, then you'd end up with a frozen system.

So basically it seems at this point a conflict of interests:

- you don't want your clients to know your systems are failing
- they might not even be failing if they autoextend
- you don't want to scare them with in that sense, inaccurate data

- on a desktop system, the user and sysadmin would be the same
- there is not really any provison for graphical tools.

(maybe I should develop one. I so badly want to start coding again).

- a tool that notifies the user about the thin pool would equally well do the job of informing the user/admin as a filesystem point of data, would do.

- that implies that the two roles would stay separate.
- desktops seem to be using btrfs now in some distros

I'm concerned with the use case of a desktop user that could employ this technique. I now understand a bit more perhaps why grub doesn't support LVM thin.

The management tools for a desktop user also do not exist (except the command line tools we have).

Well wrong again there is a GUI it is just not very helpful.

It is not helpful at all for monitoring.

It can
* create logical volumes (regular, stripe, mirror)
* move volumes to another PV
* extend volume groups to another PV

And that's about all it can do I guess. Not sure it even needs to do much more, but it is no monitoring tool of any sophistication.

Let me think some more on this and I apologize for the "out loud" thinking.

Regards.