ZFS Pool created. What is the next step

lumox

Member
May 29, 2020
111
5
23
42
Ok, I managed to created a zfs pool finally.

Here is my zfs pool setup:

Code:
root@pve:~# zpool status
  pool: lukepool
state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        lukepool    ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sda     ONLINE       0     0     0
            sdb     ONLINE       0     0     0
            sdc     ONLINE       0     0     0

errors: No known data errors

root@pve:~# zfs list
NAME       USED  AVAIL     REFER  MOUNTPOINT
lukepool   480K   898G      128K  /lukepool


I know, it is not a big amount of available space , but I am just learning and testing now. So, it is not a big deal.
I backupped all my VMS before I added the new disks in my server, formatted the new disks, and created the pool.
I then saved via ftp the entire "dump" folder on another PC. In this folder there are ZST files, log files and a .dat file (by the way, what is it? Do I need it to restore my VMs?)

So, I want now to create a 200 GB size "space" to restore and run my backupped VMs, a 300 GB storage where I can backupthem when needed, a 100 GB size space for my ISO, and a last one made of the rest which I can use as an added disk for my linux machine VM.
What exactly should I do? Could you help me figure this out please?
Thanks
 
NAME STATE READ WRITE CKSUM
lukepool ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0

Please consider not using raid-z1 for data in productive enviroment.

I know, it is not a big amount of available space , but I am just learning and testing now. So, it is not a big deal.
I backupped all my VMS before I added the new disks in my server, formatted the new disks, and created the pool.
I then saved via ftp the entire "dump" folder on another PC. In this folder there are ZST files, log files and a .dat file (by the way, what is it? Do I need it to restore my VMs?)

What format does your vms have? from what hypervisor are you coming from?

So, I want now to create a 200 GB size "space" to restore and run my backupped VMs, a 300 GB storage where I can backupthem when needed, a 100 GB size space for my ISO, and a last one made of the rest which I can use as an added disk for my linux machine VM.
What exactly should I do? Could you help me figure this out please?
Thanks

You currently only have one pool, pls consider creating another for your backups, as data should not be on the same physical disks. ISOs can be placed on local directory (from boot devices) if theres enough space. Check out "Storage Configuration" from proxmox manual: https://pve.proxmox.com/pve-docs/chapter-pvesm.html#_storage_configuration

What your meaning with "a last one made of the rest which I can use as an added disk for my linux machine VM"? You can passthrough any physical hard disk available in your server directly to the vm if u want. If you just wanna have a second "dísk" in your vm, add it via vm/hardware tab so it will create a second disk in your vm that will be placed on your zfs storage pool (same as main-disk).

1606317886100.png

https://pve.proxmox.com/wiki/ZFS:_Tips_and_Tricks
 
Last edited:
Please consider not using raid-z1 for data in productive enviroment.

I know. I am just experimenting
What format does your vms have? from what hypervisor are you coming from?

I Backupped them from the same Proxmox machine. I only changed almost all disks. I only let in the HDD with Proxmox OS running on it

Can I do via GUI and the steps you suggested above everthing I asked?
Thanks
 
I Backupped them from the same Proxmox machine. I only changed almost all disks. I only let in the HDD with Proxmox OS running on it

Thats something I dont know, sorry.

Can I do via GUI and the steps you suggested above everthing I asked?

  • Create ZFS: You can create ZFS via GUI yes Hosts -> Disks -> ZFS -> Create ZFS (it will add as storage too so it can be used for vms or isos or backups aswell)
  • Use physical disk in VM: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM) (did not test it) (not gui)
  • ISO-Datastore: should be default on your "local" directory created after initial-install, if not. you can edit via Datacenter -> Storage -> choose storage like local and edit content and put in "ISO Image"
 
Thats something I dont know, sorry.



  • Create ZFS: You can create ZFS via GUI yes Hosts -> Disks -> ZFS -> Create ZFS (it will add as storage too so it can be used for vms or isos or backups aswell)
I already created a zfs pool via GUI. Now, I'd like to set/assign the size according to what I wrote earlier in my first post
I'd like to test passthrough as well, but it is not what I meant.
  • ISO-Datastore: should be default on your "local" directory created after initial-install, if not. you can edit via Datacenter -> Storage -> choose storage like local and edit content and put in "ISO Image"
Yes, a local directory was crated when I first install Proxmox OS, but it is rather small since I installed Proxmox on a 80GB HDD.
Thanks
 
I already created a zfs pool via GUI. Now, I'd like to set/assign the size according to what I wrote earlier in my first post
You cant do this via gui afaik - take a look at ZFS (Dataset) Quotas.

I'd like to test passthrough as well, but it is not what I meant.
So If you just want second disk on other zfs dataset then create zfs dataset for that, integrate it as mentioned below (just with add zfs instead of add directory) then create your vm with primary disk, go to hardware add another disk and choose second location (your new zfs dataset). This way you have 2 disks ond 2 different storage-locations.

Yes, a local directory was crated when I first install Proxmox OS, but it is rather small since I installed Proxmox on a 80GB HDD.

You can use zfs datasets. sudo zfs create [pool name]/[dataset name]/[descendent filesystem]
Then connect to node, storage, add -> directory -> put in values -> add.
Then you can go to storage -> content and upload your isos or put them in the folder via ftp (/rpool/isos/templaste/iso)

zfs.png
 

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!