-
Notifications
You must be signed in to change notification settings - Fork 65
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
Disk plugins should use the new shorter dev names #59
Comments
I believe |
|
Yes and no: You might consider passing an "available length" option to the Here are a few comments.
If you have more than 26 sd's, then it will wrap to This is just my opinion, but people shouldn't monitor partitions: they should monitor the disk itself because congestion happens at the disk level not at the partition level...but there may be applications where they want to know usage and aren't interested in congestion.
If you have to give something up for space in the name, drop the partition number because the "a" in "hda" is more uniquely identifying (otherwise FWIW, I don't think hdX is used any more. Even (rarely used) PATA drives use libata in modern kernels, which produces /dev/sda names...but it can't hurt to keep
Again, the "a" is more critical than the "99". If you have more than 26 vd's, then it will wrap to nb: sd, hd, and vd should all be treated the same way.
fine
would be nice to keep "md" if possible, so "md0" through "md99" before jumping to "m100". You might need to trim back to
There aren't usually many mmc devices attached to a host. The most I've seen is 1 or 2, so "mmc1" would be good. Have you really seen an mmc device with 50 partitions? People should really be using LVM!
Not familiar with this device, so name is fine for me.
The number of dm devices can get really big. Drop the hyphen, keep as much of the number as you can. (For example, we have a system with "/dev/dm-176", but we don't monitor it.) There is one special thing about dm devices: they are named, and the name can be looked up in /dev/mapper/ . For example, if I specify /dev/mapper/data-pool0 then it may remap to dm-123, but it would be really nice to have the original dm name listed in the disk column. This is really long, of course, so maybe this isn't feasible, but when I (rarely) specify a full DM path in
Loop devices are common, maybe name them as |
It occurs to me that with the exception of nvme, disk device names are enumerated in two different ways: base26 and base10. This Here is a summary of the most common device names and enumeration formats: Base26 Enumerated Devices These devices enumerate as Common examples:
Old things we probably won't see:
Base10 Enumerated Devices These devices enumerate as These examples are all commonly used today, and most support the
Two-digit Base10 Enumerated Devices There are a few 2-digit representations, the most notable being There are a few others with
|
I just want to say: wow! Thank you for the highly detailed research and write up. This is super helpful as we move forward with designing |
So that it's written down somewhere... The way the name shortening works is that we look for: letters, numbers, and then a second group of numbers. The short name is built by combining the first group of numbers with the second (if there are any) and then prepending letters to the beginning to fill out to the character limit. We default to four characters because most plugins use four character columns, but it is configurable to any length. If the name is less than the character limit there is no change. This is the vast majority of device names. Because 95% of what As an example for For nvme drives we start with I do like your explanation of |
I think "lpXX" is good for all loops, too. |
Assuming four char naming... do we shorten |
|
If you need the 4-char pad, then |
@KJ7LNW I'm starting a new issue here and roping you in to help me test and design.
NVME drives are the "new hotness" now and Linux assign them as
nvmeXnY
andnvmeXnYpZ
.dool
doesn't deal with partitions much, so we're mostly dealing with the former naming convention. This is seven letters long which is not compatible with a lot of the disk plugins that only use 4 or 5 letters for the display. I wrote up adev_short_name()
to shorten the names while maintaining readability.Sample output:
Should everything move over to this new shorter naming? Only certain plugins that need it? I don't have a good answer yet, so I'm opening this up for discussion. Some previous discussion has taken place on #53.
FWIW if you're using to seeing
sda
,vdc
,hda
(anything less than four letters) nothing should change for you.The text was updated successfully, but these errors were encountered: