-
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
btrfs Enhancements #4796
Comments
This addition would be neat! |
I would also very much welcome this coming to fruition |
Would love to see this implemented if someone finds the time. |
Long-time Cockpit user on Fedora with Btrfs and would love to see this functionality, too! |
Could you guys get together and produce some concrete proposals? UI mockups, what commands the buttons should run, etc. We don't have any btrfs users in the Cockpit team, I am afraid. |
@mvollmer I can certainly try to write up something about how I would expect to be able to manage Btrfs. It's a shame no one on the team uses Btrfs, though. It's a nice filesystem. 🥇 |
I actually do use btrfs on my laptop (happy user for many years), but not across multiple disks. I'm using it for subvolumes mostly, which are so much better than partitions or even LVM LVs. |
Oh, cool, that makes me want to try this also. |
Rockstor is an operatingsystem for NAS based on CentOS, it uses btrfs. See their documentation for managing pools |
Subvolumes and Snapshots But I don't see any scrub or device management stuff in there. I do see subvolume operations as well as device add and remove in Scrubbing A more sophisticated UI might allow changing scrub interval, manual start and stop, selection of specific file systems, progress and statistics, or even cancel/resume based on a schedule or load threshold+duration. It's not obvious but If there is a way to detect unclean shutdown (powerfail or crash) it'd be cool if Cockpit can present a message to the user: Unclean shutdown? Perform file system scrub (if supported)? This can apply to md, LVM, Btrfs, ZFS, XFS, and (eventually) Stratis. As much as possible I'd leverage or modify existing UI to match use cases regardless of the backend storage. Device add and remove Advanced device management to handle different replication strategies? The redundancy doesn't change just by adding a device, and the balancing of data across devices is also not altered. Such handling probably requires a few extra conversations, as it's not exactly obvious what to do, because the user expectations after adding a device aren't obvious. Did they intend to make the pool bigger? Or add redundancy? Resize |
would be great if btrfs is provided as an option in storaged cockpit/pkg/storaged/format-dialog.jsx Line 156 in 773b98e
Line 147 in 773b98e
|
Snapshots on subvolumes can be easily managed by snapper and subvolumes can be created using "btrfs subvolume create /path-to-subvolume".
|
the only thing that i'm really missing in cockpit (which became my new home btw). it would be bloody awesome to see this included... |
can btrfs be handled like volume grouping? |
Hi, would it make sense to split out the bug and enhancement proposal in separate issues? I think that the issue with not handling multiple devices - I. E. Listing all members of a raid profile as separate, independent filesystems should be considered a bug IMHO. Then we have the other enhancements such as scrubbing, balancing, resizing, etc as a feature enhancement. Here is a reference to the same issue with udisks storaged-project/udisks#802 |
The btrfs support in UDisks is fairly basic at the moment and with limited (human) resources it evolves rather slowly. The current focus is to provide sane base functionality with respect to filesystem specifics rather than providing exhaustive feature support. Contributions are always welcome though, there's a separate btrfs module that could evolve somewhat independently from the UDisks daemon core: With btrfs bringing new concepts there are couple open questions with regards to UDisks2 D-Bus object model. It would really help to know use cases from Cockpit side, plans and the big picture. For the moment it looks like there will necessarily be some tweaks needed in layers above UDisks to provide clean object/volumes presentation. |
Yes, implementing this via small steps is a great idea! Here is my separate feature request #16245 to simply add "Format to BTRFS" option, but it is merged with this large issue, instead of implementing that small and quick feature separately. |
Please check out #16408. |
Basic btrfs support is now included in 309. |
Currently cockpit treats disks that are members of a btrfs array as individual disks and there is no support for common btrfs tasks such as scrubbing, snapshots adding/removing members etc...
All of the above is already implemented for mdadm - can this be implemented for btrfs? Ideally any btrfs raid should also appear in the raid devices box on the storage tab.
The text was updated successfully, but these errors were encountered: