Removing local-zfs (rpool)

promoxer

Member
Apr 21, 2023
240
25
23
1. I have 2 pools, rpool and vpool
2. rpool was created by default during installation, however all my VMs reside on vpool and local-zfs is empty
3. Can I remove local-zfs and merge the freed space into local?
 
2. rpool was created by default during installation, however all my VMs reside on vpool and local-zfs is empty
3. Can I remove local-zfs and merge the freed space into local?
Yes but there is no point doing that. "local" and "local-zfs" share the full space. So with 0% data stored on "local-zfs" you got 100% space on "local" and vice versa. Those are both thin provisioned and not using fixed allocations.
 
Code:
root@pve:/scripts# zfs list -o space
NAME                            AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
rpool                            159G  70.6G        0B     96K             0B      70.6G
rpool/ROOT                       159G  1.94G        0B     96K             0B      1.94G
rpool/ROOT/pve-1                 159G  1.94G        0B   1.94G             0B         0B
rpool/data                       159G    96K        0B     96K             0B         0B
rpool/var-lib-vz                 159G  68.7G        0B   68.7G             0B         0B

NAME                                                      SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool                                                     237G  75.3G   162G        -         -     0%    31%  1.00x    ONLINE  -
  mirror-0                                                237G  75.3G   162G        -         -     0%  31.8%      -    ONLINE
    sda-part3                                             237G      -      -        -         -      -      -      -    ONLINE
    sdb-part3                                             237G      -      -        -         -      -      -      -    ONLINE

Thanks, I solved it using the steps here https://forum.proxmox.com/threads/expand-zfs-pool-without-loosing-data.86407/
 
Last edited: