-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
storage: LVM2 RAID support #17226
storage: LVM2 RAID support #17226
Conversation
ef96a18
to
226d4d2
Compare
226d4d2
to
394badf
Compare
394badf
to
838314f
Compare
838314f
to
5018e15
Compare
5018e15
to
a1e8a83
Compare
I was confused about the "degraded" state; I somehow thought "lvs -o health_status" would return "degraded" for a degraded raid5 volume. This will never happen, both health_status and attr[8] will indicate "partial" when a raid5 lv is missing a single device. I guess we need to deduce that information somewhere in the stack. At that place, we need the full segment structure of the lv, since being degraded is a per-segment property. |
Actually, they will only report "partial" until the missing PV is removed via "vgreduce --removemissing". After that they report "refresh needed". So I guess they are not that helpful as I initially thought. When drilling into the segments and devices and subvolumes, we can identify missing pieces by their segement type ("error" after vgreduce --removemissing) and "devices" ("[unknown]" before vgreduce --removemissing). |
a1e8a83
to
32cb2d3
Compare
32cb2d3
to
bb87304
Compare
bb87304
to
bce6c93
Compare
We probably want to warn about unsafe configurations. Some people may want to run with unsafe setups, as they might back data up anyway... but some people don't. Warnings are useful. But then: What would be "unsafe"? Anything with worse fail rates than a single disk? Or anything not redundant? This isn't about preventing people from setting up unsafe RAIDs; just letting them know that what they're doing would lead to data loss... probably with a helper text warning at the bottom of a dialog and possibly even an (i) explaining it more in depth? |
Yes, this would be useful. In this case, LVM2 has made all the decisions, but we will also allow people to select which drives to use, and there we should warn about selecting "unsafe" ones, like putting two stripes on the same physical disk. But again, what has just happened in this concrete case counts as a bug in LVM2 (if Cockpit presents the situation correctly, which I think it does). LVM2 should have used sdc to extend the second strip instead of the first, and sda1 to extend the third stripe instead of the second. This should have been possible since all stripe extensions are the same size. shrug I keep an eye out for this. |
bce6c93
to
1d10102
Compare
1d10102
to
fc2528c
Compare
9ce9162
to
61c336d
Compare
61c336d
to
298668b
Compare
Otherwise the order of PVs passed to calls like CreatePlainVolumeWithLayout depends on in which order the PVs have been selected in the dialog, which would not be wrong, but is unexpected.
So that extending this to "errors" in addition to "warnings" later on becomes slightly cleaner.
It gets spuriously closed sometimes.
298668b
to
3f41a6a
Compare
See storaged-project/udisks#1206 for why this is unfortunately broken right now.
3f41a6a
to
4a4b42c
Compare
centos-9 still seems unhealthy:
And
|
I think this happens because of the
The |
Green as it gets. fedora-38/devel fails while posting the coverage comments, |
Blegh, this is a Python 3.9 specific issue on 3.11 this works fine. It's not the [ or ] it's re.error: bad character range k-" at position 36
|
I guess it is the |
It is, send cockpit-project/bots#5475 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs some screenshots for the Wednesday release.
Demo: https://youtu.be/OElG4yHxc2w
Dialog demo: https://youtu.be/WChc7-vfM1A
For later:
Storage: Support for RAID layouts with LVM2
On recent operating systems such as Fedora 39, Cockpit can now create LVM2 logical volumes with RAID layouts, display how they are stored on their physical volumes, and help you repair them.