Can not replicate containers to second node despite same zfs name

ItMachtSpass

New Member
Nov 16, 2023
3
0
1
Hi there,
I am try to add a second node (pve2) to a already existing cluster to replicate the container using zfs features. The actual problem is to setup the zfs correctly to the cluster without loosing all data from pce1.

Here is what I have done:

I had an Proxmox VE 8 Node using all my containers on an local ZFS filesystem as single instance (pve1) using name ssd_data.
pve1-zfs.png

Now I created an cluster with a second node pve2 using Proxmox VE 8 and a zfs filesystem using same name ssd_data.
pve2-zfs.png

After insert pve2 to the cluster using the webgui, the I can not see the zfs ssd_data1 and I also can not link it because ob dublicate name exception.

pve1-migrationierror.png
Is there any option to fix this problem without data loss?

Thanks for help.
 
Last edited:
Hi,
please post your storage configuration /etc/pve/storage.cfg. Note that the storage configuration is shared by all nodes in a cluster.
 
Hi,
please post your storage configuration /etc/pve/storage.cfg. Note that the storage configuration is shared by all nodes in a cluster.
Here my storage.cfg

Code:
root@pve1:~# cat /etc/pve/storage.cfg
dir: local
    path /var/lib/vz
    content backup,vztmpl,iso

lvmthin: local-lvm
    thinpool data
    vgname pve
    content images

cifs: QnapBackup
    path /mnt/pve/QnapBackup
    server 192.168.178.12
    share backup
    content images,iso,snippets,rootdir,vztmpl,backup
    nodes pve1
    prune-backups keep-all=1
    username backup

zfspool: ssd_data1
    pool ssd_data
    content rootdir,images
    mountpoint /ssd_data
    nodes pve1
    sparse 0

dir: ssd-local-sda2-ext4
    path /ssd-local-sda2-ext4
    content iso,snippets,backup,vztmpl
    nodes pve1
    prune-backups keep-all=1
    shared 0

dir: ssd-local-nvme0n1p2-ext4
    path /ssd-local-nvme0n1p2-ext4
    content images,iso,snippets,vztmpl,backup
    nodes pve2
    prune-backups keep-all=1
    shared 0

pbs: pbs
    datastore bps-usb-hdd500
    server 192.168.178.53
    content backup
    fingerprint 33:8b:21:23:2d:d6:b76a:9c:aa:9f:08:af:6d:c8:d9:a1:5c:2a:44
    prune-backups keep-all=1
    username root@pam
 
Code:
zfspool: ssd_data1
    pool ssd_data
    content rootdir,images
    mountpoint /ssd_data
    nodes pve1
    sparse 0
The storage is restricted to only one node, i.e. the line nodes pve1. You can lift the restriction, because it is available on the other node too.
 
The storage is restricted to only one node, i.e. the line nodes pve1. You can lift the restriction, because it is available on the other node too.
Thanks for your help. I extended the configuration and it worked.

Problem Solved!
 

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!