Lxc storage show: config options exist in database but are not shown

LXD: 6.1-78a3d8f (snap) on Ubuntu.

Hi, I have two servers s1 and s2. On both of them I have a storage named raid_pool. The one on s1 was created many years ago. The one on s2 was created few days ago with a command lxc storage create raid_pool zfs source=miscTank/lxd. When I execute lxc storage show raid_pool on s1, I get:

name: raid_pool
description: ""
driver: zfs
status: Created
config:
  source: main_pool
  volatile.initial_source: main_pool
  zfs.pool_name: main_pool
used_by: 
[ ..long list.. ]
locations:
- none

The same command on s2 gives me empty config object:

name: raid_pool
description: ""
driver: zfs
status: Created
config: {}
used_by: []
locations:
- s2

But the config options exit in the database:

$ lxd sql global 'SELECT * FROM storage_pools'
+----+-----------+--------+-------------+-------+
| id |   name    | driver | description | state |
+----+-----------+--------+-------------+-------+
| 5  | raid_pool | zfs    |             | 1     |
+----+-----------+--------+-------------+-------+

$ lxd sql global 'SELECT * FROM storage_pools_config'
+----+-----------------+---------+-------------------------+--------------+
| id | storage_pool_id | node_id |           key           |    value     |
+----+-----------------+---------+-------------------------+--------------+
| 18 | 5               | 1       | zfs.pool_name           | miscTank/lxd |
| 19 | 5               | 1       | source                  | miscTank/lxd |
| 20 | 5               | 1       | volatile.initial_source | miscTank/lxd |
+----+-----------------+---------+-------------------------+--------------+

Any idea what can cause this?

Best regards,
Seweryn

Is the 2nd server in a LXD cluster (lxc info | grep clustered)?

If so have you tried using lxc storage show <pool> --target=<member>?

Yes, that’s it! I didn’t know s2 was in cluster mode (and that cluster mode has such implications). Thank you.

1 Like