BTRFS command to change disk to RW

I have a directory snapshot that I can not get to stay mounted and it gos RO all the time.
@Hooverdan I think it was you that gave me a command to change it to RW. Could you supply again.
I caused this trying to cleanup replication files.

        Traceback (most recent call last):

File “/opt/rockstor/src/rockstor/storageadmin/views/share.py”, line 379, in delete
remove_share(share.pool, share.subvol_name, share.pqgroup, force=force)
File “/opt/rockstor/src/rockstor/fs/btrfs.py”, line 1185, in remove_share
toggle_path_rw(subvol_mnt_pt, rw=True)
File “/opt/rockstor/src/rockstor/system/osi.py”, line 546, in toggle_path_rw
return run_command([CHATTR, attr, path])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/rockstor/src/rockstor/system/osi.py”, line 289, in run_command
raise CommandException(cmd, out, err, rc)
system.exceptions.CommandException: Error running a command. cmd = /usr/bin/chattr -i /mnt2/Data-2/.snapshots/c0450590-f2b9-de11-8a1b-90e6ba7a072b_Documents-11/Documents-11_2_replication_1. rc = 1. stdout = [‘’]. stderr = [‘/usr/bin/chattr: Read-only file system while setting flags on /mnt2/Data-2/.snapshots/c0450590-f2b9-de11-8a1b-90e6ba7a072b_Documents-11/Documents-11_2_replication_1’, ‘’]

Are you referring to this post?

The command line was:

/usr/sbin/btrfs property set -f <path to mounted share> ro false

Here I successfully added it to the btrfs.py file:

which was then resolved via this PR:

and became available with version 5.0.15-0

1 Like

Yes Thx so much I could not find it.

1 Like