Proxmox VE 7 add ZFS SSD disk.

Saturn

New Member
Feb 21, 2023
29
0
1
I create a virtual machine in Microsoft Hyper-V, add two disks with a fixed size of 15 gigabytes to it, load a disk with the latest version of Proxmox VE into the virtual drive, perform the initial installation, and select both disks in RAID 0 mode during installation. I reboot, connect through the browser to the local address, check the work. I turn it off, through the dispatcher I add another disk to this system, on a separate controller. I turn on the virtual computer, wait for Proxmox VE to boot, connect via LAN, go to disks - ZFS - Create ZFS and select the disk that appears as singl disk. The system successfully adds the disk and uses it as storage, also for temporary and for images. I turn off Proxmox VE. I build a new computer and do it all over again. The question is, how to connect the third disk with the data already there from the previous step, in the new system?
 
How to add a migrated drive with a single pool?
 

Attachments

  • 1.png
    1.png
    76.8 KB · Views: 114
  • 2.png
    2.png
    67.2 KB · Views: 102
  • 3.png
    3.png
    62.9 KB · Views: 92
  • 4.png
    4.png
    78 KB · Views: 84
  • 5.png
    5.png
    48.1 KB · Views: 82
  • 6.png
    6.png
    62.4 KB · Views: 101
"Datacenter -> YourNode -> Disks -> ZFS -> Add" will format a unpartitioned disk with ZFS and create a storage of type "ZFSpool".
"Datacenter -> Storage -> Add -> ZFS" will add a storage of type "ZFSpool" for an already existing ZFS pool.
 
I want to add as a separate pool as in the first system, not to an existing one. With data retention, no formatting.
 
According to your screenshots N2 already got a ZFS formated disk. To make that usable you need to use "Datacenter -> Storage -> Add -> ZFS".
If you don't want any existing data on that disk, you will have to wipe it first, as PVE won't allow you to create a new ZFS pool using disks that are not empty, so you don't lose your data by user error. After wiping it "Datacenter -> YourNode -> Disks -> ZFS -> Add" should allow you to create a new ZFS pool using that disk.
 
I just need data from the disk, I want to see it, transfer it, then I can erase, create a new pool and restore the data back. But now I connect the disk nowhere I see them!
 
Then import that pool and backup stuff via CLI by using zpool import -f YourPoolName.
Or add a new ZFSPool storage, so PVE can use that pool by using "Datacenter -> Storage -> Add -> ZFS".
 
Добавить нечего, нет пула (однодискового) и нет возможности подключить что-то к ZFS
 

Attachments

  • 7.png
    7.png
    39.7 KB · Views: 54
You might need to import that pool first.
zpool import to list the names of importable pools.
zpool import -f YourPoolName to import that pool.
 
The situation is that there is no pool and cannot be created, there is no disk. And you can't add a disk without a pool
 

Attachments

  • 9.png
    9.png
    31.2 KB · Views: 25
  • 8.png
    8.png
    35.8 KB · Views: 23
the pool has been added, but the system has formatted it and it is empty.
 

Attachments

  • 12.png
    12.png
    28.7 KB · Views: 30
It is probably not empty. Run zfs list and I would bet the zvols are still there.
But keep in mind that this pool only stored your virtual disks, not your VMs. PVE can't show you the VMs, as there are no VMs as these are defined by the VM config files that were stored in "/etc/pve/qemu-server" on rpool on your old PVe node.
So try to copy /etc/pve/qemu-server/100.conf from your old to your new PVE node.
 
Last edited:
How to see them and restore them in this case?
 

Attachments

  • 14.png
    14.png
    21.2 KB · Views: 16
  • 15.png
    15.png
    19.7 KB · Views: 16
If zfs list don't list the zvol, then its indeed not existing on your imported pool.
 
Last edited:
Do I understand correctly that there is no way to move a data disk between systems if it is a ZFS pool and you only need to use ext4 disks or is there some way?