Resizing Proxmox zfs pool (raid1) problem

platini76

New Member
Jul 13, 2023
7
1
3
hello I had two nvme disks (512gb) with a zfs pool (raid1)
I copy all them to a new 2tb disks successfully
now I have to expand volume to max available space. and this is the problem.

Code:
root@pve:~# zpool status
  pool: rpool
 state: ONLINE
  scan: resilvered 158G in 00:02:18 with 0 errors on Tue Dec 10 01:28:07 2024
config:

        NAME                                                    STATE     READ WRITE CKSUM
        rpool                                                   ONLINE       0     0     0
          mirror-0                                              ONLINE       0     0     0
            nvme-Samsung_SSD_990_PRO_2TB_S6Z2NJ0W534778X-part3  ONLINE       0     0     0
            nvme-Samsung_SSD_990_PRO_2TB_S6Z2NJ0W704530H-part3  ONLINE       0     0     0

errors: No known data errors

how to do it without losing data?
 
I solved with these commands:

Code:
apt update
apt install cloud-guest-utils

growpart /dev/nvme4n1 3

partprobe /dev/nvme4n1

growpart /dev/nvme5n1 3

partprobe /dev/nvme5n1



now output is:

Code:
zpool list rpool
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool  1.82T   156G  1.66T        -         -     7%     8%  1.00x    ONLINE  -
 
  • Like
Reactions: Kingneutron

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!