"Hide" ZFS subvolumes of LXC containers

pocok

Well-Known Member
Dec 6, 2019
34
15
48
Hello,

In a previous version of Proxmox (5), when I did a zfs list command, it only listed the "normal" filesystems mounted (or manually created datasets), the file systems of the LXC containers themselves were omitted. Now this commands shows them as well:

Bash:
root@brown-bear:~# zfs list                                                                                                                      
NAME                          USED  AVAIL     REFER  MOUNTPOINT                                                                                
blackpool                    56.7G   618G      128K  /blackpool                                                                                 
blackpool/doc-ssd             784M   618G      784M  /blackpool/doc-ssd                                                                    
blackpool/subvol-100-disk-0  7.88M   248M     7.88M  /blackpool/subvol-100-disk-0                                                              
blackpool/subvol-101-disk-0   979M  1.04G      979M  /blackpool/subvol-101-disk-0                                                            
blackpool/subvol-102-disk-0  1.53G   480M     1.53G  /blackpool/subvol-102-disk-0                                                          
blackpool/subvol-103-disk-0  1.13G   894M     1.13G  /blackpool/subvol-103-disk-0                   
blackpool/subvol-104-disk-0  1.12G   904M     1.12G  /blackpool/subvol-104-disk-0        
blackpool/subvol-105-disk-0   683M   341M      683M  /blackpool/subvol-105-disk-0                                                               
blackpool/subvol-106-disk-0   482M   542M      482M  /blackpool/subvol-106-disk-0 
blackpool/subvol-107-disk-0  2.00G     0B     2.00G  /blackpool/subvol-107-disk-0
...

In my example above, I would like to only list blackpool/ssd-doc for example, only. Just like in the case of snapshots where one can enable/disable the implicit listing of @snapshots with the zfs list command. It is possible to do this with an option flag, or I remember wrongly? Could be that this time I am storing the LXC container on a thin-mounted pool, but previously this was not the case?

Thank You,
 
In a previous version of Proxmox (5), when I did a zfs list command, it only listed the "normal" filesystems mounted (or manually created datasets), the file systems of the LXC containers themselves were omitted. Now this commands shows them as well:
AFAICR, it was never this way. All volumes/subvols where displayed. With zfs list -t volume you can limit the view to volumes only.
 
I understand. That might be well the case, and I remembered wrongly. Or previously I have stored the containers on LVM.

Thank You!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!