cockpit-project / cockpit

Cockpit is a web-based graphical interface for servers.
http://www.cockpit-project.org/
GNU Lesser General Public License v2.1
10.71k stars 1.08k forks source link

Storaged showing incorrect size of btrfs Raid1 (mirror) volume #20624

Open poVoq opened 1 month ago

poVoq commented 1 month ago

Explain what happens

I created a btrfs raid1 mirror volume out of a 8tb + 4tb + 2tb + 2tb HDDs. This showed the correct total usable size as 8tb in Cockpit's storaged view.

However in order to replace the two 2tb drives with a second 4tb drive I removed the two discs resulting in a temporarily unbalanced mirror raid of a 8tb and a 4tb disk.

This should in theory only have 4tb available space as it can't mirror more than that on the other 8tb disk.

However Storaged actually shows this Raid1 mirror volume now as having 6tb total storage, which seems obviously wrong unless I am missing something.

Version of Cockpit

316

Where is the problem in Cockpit?

Storage

Server operating system

Fedora

Server operating system version

40

What browsers are you using?

Firefox

System log

No response

jelly commented 1 month ago

Out of interest, what does btrfs filesystem show look like?

poVoq commented 1 month ago

I have since installed the new 4tb disk and thus can't really test the issue any longer as it is now back to reporting the total of 8tb as expected with 8tb + 4tb + 4tb disks.