Enhancement: "lxd storage volume list" command should show volume size property

Summary

At the moment, the lxc storage volume list command does not display the size of storage volumes. However, I believe that this fundamental property should be displayed in the list of volumes.

If I create a LXD volume, and use the default size, not even the lxc storage volume show command will tell me the size of the volume.

At the moment, it’s hard to determine what a volume size is, unless you have specified a custom size. Therefore, I recommend displaying volume size in the volume list command as well as the volume show command.

# lxc storage volume show dirstore01 virtual-machine/a01
config: {}
description: ""
name: a01
type: virtual-machine
used_by:
- /1.0/instances/a01
location: none
content_type: block
project: default
created_at: 2023-06-20T03:50:43.380882726Z

^^^ ie. how large is this block device? I cannot tell.

Please could you log an issue at https://github.com/lxc/lxd/issues I think we can probably add the size to at least lxc storage volume show for VM and block volumes on dir pools.

1 Like

Issue logged: https://github.com/lxc/lxd/issues/11856

2 Likes