Restore ZFS pool on new hard drives?

Terminatrix

New Member
Aug 23, 2021
18
1
3
31
My hard drive with Proxmox installed on it failed and I have had to replace it with a fresh installation however my ZFS pool was on another drive

My ZFS pools data was configured on

/dev/nvme0n1
/dev/nvme1n1

How am I able to mount this again on the new installation of Proxmox without losing any data? I have backups of /etc/ if anything needs to be restored it was mounted to /zfs
 
I have done the following now to import it

Code:
zpool import -f zfs

But now the usage is not showing correctly

df -h
Code:
zfs                                             5.5T  128K  5.5T   1% /zfs

zpool list

Code:
NAME   SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
zfs   6.97T  1.35T  5.62T        -         -    42%    19%  1.00x    ONLINE  -
 
Last edited:
df -h never worked with ZFS. If you want the usage use zfs list. Df will only show you how much space your pools root (which is like a dataset) is using and how much space is available there. But other datasets and zvols aren't part of that filesystem you mounted in "/zfs" so they are excluded. I would guess you got 1,35T of zvols so your /zfs will show 1,35T less space.

If you want to use that Pool again as a storage for your VMs/LXCs you need to add it again to your PVE by using the WebUI: Datacenter -> Storage -> Add -> ZFS
 
Last edited: