Resize root zfs on node

BelCloud

Renowned Member
Dec 15, 2015
96
5
73
www.belcloud.net
Hi
I'm having the following situation:
# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 3.62T 3.51T 119G - 54% 96% 1.02x ONLINE -


rpool 3.51T 2.35M 104K /rpool
rpool/ROOT 1.47G 2.35M 96K /rpool/ROOT
rpool/ROOT/pve-1 1.47G 2.35M 1.47G /
rpool/data 3.49T 2.35M 96K /rpool/data
rpool/data/vm-101-disk-1 3.49T 2.35M 3.49T -
rpool/swap 17.0G 3.01G 14.0G -

Due to some mistakes, we've got the disk almost filled by a vm.

As far as i can see, there are 119G free in rpool. any idea how i can increase rpool/ROOT to 10G ? As the partition is full, i'm having trouble fixing other issues.
 
Code:
# zpool list
NAME    SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
rpool  3.62T  3.51T   119G         -    54%    96%  1.02x  ONLINE  -
# zpool list -> it is RAW data sizes and its have nothing to do with available space

Code:
NAME                       USED  AVAIL  REFER  MOUNTPOINT
rpool                     3.51T  2.35M   104K  /rpool
rpool/ROOT                1.47G  2.35M    96K  /rpool/ROOT
rpool/ROOT/pve-1          1.47G  2.35M  1.47G  /
rpool/data                3.49T  2.35M    96K  /rpool/data
rpool/data/vm-101-disk-1  3.49T  2.35M  3.49T  -
rpool/swap                17.0G  3.01G  14.0G  -
Due to some mistakes, we've got the disk almost filled by a vm.

As far as i can see, there are 119G free in rpool. any idea how i can increase rpool/ROOT to 10G ? As the partition is full, i'm having trouble fixing other issues.

If you want more free space in rpool/ROOT/pve-1 then

1. Turn off swap.
2. Remove rpool/swap
3. Create rpool/swap with less space like 5G
4. Format swap and mount

Result -> free space for zfs pool rpool
 

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!