Cannot rm storage (snapshots and read only file system)

Hello. I moved all my containers/vm’s to a new storage pool. Then I did

lxc storage rm lxdpoolone

and i got

Error: Failed removing mount path "/var/lib/lxd/storage-pools/lxdpoolone": Failed rem
oving "/var/lib/lxd/storage-pools/lxdpoolone/backup.1883096448": unlinkat /var/lib/lx
d/storage-pools/lxdpoolone/backup.1883096448/t1/metadata.yaml: read-only file system

lxc storage list

+------------+--------+--------------------+-------------+---------+---------+
|    NAME    | DRIVER |       SOURCE       | DESCRIPTION | USED BY |  STATE  |
+------------+--------+--------------------+-------------+---------+---------+
| lxdpoolone | btrfs  | /dev/nvme0n1p3     |             | 0       | CREATED |
+------------+--------+--------------------+-------------+---------+---------+
| pool2      | dir    | /mnt/main/lxdpool2 |             | 15      | CREATED |
+------------+--------+--------------------+-------------+---------+---------+

lxc storage show lxdpoolone

config:
  source: /dev/nvme0n1p3
  volatile.initial_source: /dev/nvme0n1p3
description: ""
name: lxdpoolone
driver: btrfs
used_by: []
status: Created
locations:
- none

lxc version

Client version: 5.10
Server version: 5.10

uname -a

Linux servidor 5.15.94-1-MANJARO #1 SMP PREEMPT Tue Feb 14 19:45:58 UTC 2023 x86_64 GNU/Linux

I’m sure this is a correct behavior of LXD, so please help me to understand why and to fix it to get rid of my old default storage.

How did you move your instances to a new storage pool?

Also, please can you ensure you’re running a support LXD version, currently that is LXD 5.13.

Hello. I got rid off the old storage changing btrfs permissions.

I moved the instances using the mv command like
lxc mv mycontainer -s pool2

default pool was btrfs
pool2 is dir

All working now. Thank you

1 Like