[Bug 1205740] New: btrfs fails to act on fs if the fs is read-only
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740 Bug ID: 1205740 Summary: btrfs fails to act on fs if the fs is read-only Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: william.brown@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Transactional server mounts in read only mode on /. This causes all btrfs management commands to fail. # btrfs balance start -f -sconvert=dup -mconvert=dup -dconvert=single / ERROR: error during balancing '/': Read-only file system There may be more info in syslog - try dmesg | tail However if you (on the same filesystem/pool) do this to /home, it works since that's mounted rw. This is an extremely surprising and unintuitive behaviour. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c1
Takashi Iwai
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
Thorsten Kukuk
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c2
Goldwyn Rodrigues
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c3
William Brown
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c4
--- Comment #4 from Goldwyn Rodrigues
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c5
--- Comment #5 from William Brown
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c6
--- Comment #6 from William Brown
BTRFS does not have a concept of volume groups. Don't get LVM concepts into btrfs and say it is not working as expected.
Each subvolume is independent as can be and commands on each subvolume can executed independently. This is inherently by design.
Hang on, does that also mean commands like btrfs balance start -f -sconvert=raid1 -mconvert=raid1 -dconvert=raid1 / Would only make that subvolume raid 1? Or would it make the whole "filesystem" raid 1. Regardless, the administration point of a filesystems being dependent on subvolume paths and the subvolume properties is really problematic. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c7
--- Comment #7 from Goldwyn Rodrigues
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
David Sterba
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c8
--- Comment #8 from William Brown
Subvolumes are not flat but hierarchical. btrfs subvolume list / provides you with the information. man btrfs-subvolume also provides you with information how subvolumes are defined or managed.
From the man page of btrfs-balance: From kernel 3.3 onwards, btrfs balance can limit its action to a subset of the whole filesystem, and can be used to change the replication con- figuration (e.g. moving data from single to RAID1).
The bug still exists though. When I want to act on the "filesystem" as a whole, I can't because you have to nominate a "subvolume" as the administration point, which incorrectly returns that you can't modify it. Generally, it seems like in this whole topic, that btrfs administration is very confused and may have a lot of usability traps. I think that needs to be addressed because not everyone is a btrfs developer like you, and people have jobs to do, so they need tools that work in predictable and reliable manners. Just humour me, go install transactional server, and try to make it raid1 with btrfs and see what the experience is like. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c9
--- Comment #9 from David Sterba
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
https://bugzilla.suse.com/show_bug.cgi?id=1205740#c10
--- Comment #10 from William Brown
This is not a bug. You seem to be preoccupied with concepts, terms and expectations from another filesystem, my guess is ZFS. You don't need to be a developer to distinguish a mount point, subvolume or a filesystem. If you start a task on a read-only mount it will fail, because that's the semantics of it. I would find confusing if it would work - read-only mount but I can do a write operation?
I am changing a property of the *filesystem* but it is being blocked because a *subvolume* is read-only. That's confusing no matter how you want to cut it.
If you're looking for a single administrative point, then there's no such thing. There are perhaps access points to the filesystem that are represented by mount points with respective RW/RO access, and the / is the most common one (but it's not necessarily the toplevel subvolume).
And this is the core of the bug. There is no single administration point of a filesystem, so subvolumes and filesystems are conflated/confused in btrfs administration causing subvolume properties to block administration of a filesystem.
Transactional server is a particular use case that is not a typical one, eg. because of a read-only mount. If you're doing manual changes to the layout you could expect some resistance, eg. to avoid accidental errors or getting out of sync with the system configuration.
ALP is likely to be transactional like this, so it's going to become typical. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1205740
Alberto Planas Dominguez
participants (1)
-
bugzilla_noreply@suse.com