Add Datastore use rpool

Dexter23

Member
Dec 23, 2021
195
15
23
34
Hi all

I have installed Proxmox Backup Server on a machine have only 2 HDD 2TB and in the installer i choose ZFS Mirror.

Now i have to create a datastore, i do right or not

I create a directory /backup and add a Datastore

Is correct this configuration or it's better create the backup folder under this path: /rpool/ROOT/pbs-1 ?

P.S I know it's better use a pool for OS and another for Datastore for Backup
 
I personally wouldn't create a datastore in a folder on the pools root. I would create a dataset first (for example zfs create rpool/backups) and then use the mountpoint of that dataset as a datastore. That way it is easier to backup your datstore using replication and its easier to manage snapshots and ZFS options.
 
Last edited:
Hi

But can there be problems? Or is it a personal matter?

Anyway what is the exact command to create the dataset?

So in my case could I create it here?

1) /rpool/ROOT/pbs-1/backup
2) /rpool/Backup

Choose a option :)

Thanks
 
I would use "/rpool/Backup" so its not inheriting ZFS options from PVEs ROOT dataset. But thats basically up to you how you want to manage your ZFS.
 
Ok i create zfs datatore rpool/Backup with this command: zfs create rpool/Backup and it's done.

The default option of the dataset are ok?

I attach the file with the option of zfs

Thank you
 

Attachments

Last edited:
Defaults should be fine. To optimize it a bit more you could increase the recordsize to 1M as most chuncks will be over 1MB so there is less overhead caused by metadata. And I would enable relatime.
Code:
zfs set recordsize=1M rpool/Backup
zfs set atime=on rpool/Backup
zfs set relatime=on rpool/Backup
 
Hi and thanks for reply

Today i'm connect to ssh on pbs to do the configuration you mention above, and surprise if i put the command zfs list i don't see anymore the dataset /rpool/Backup i create yesterday, i don't understand why it's disappear...

And the pbs doesn't reboot

uptimepbs.png

1645778932733.png

But the PBS datastore seems online:

1645778970335.png
 
Last edited:

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!