[SOLVED] PBS Installer created a RAIDZ1 - how to create a Datastore?

zaphyre

Member
Oct 6, 2020
55
4
13
35
Hi, i am quite sure this is a really silly question but I actually banged my head against ZFS-walls (again).

I have a PBS Server freshly installed with 3 disks. I have let the installer create me a RAIDZ1 during installation. Now, I ended up with a PBS installation and under Storage -> ZFS I have one "rpool".

How do I use the space as a datastore? The manual said the installers hould have added the "rpool" automagically as a DataStore? When I add a datastore it needs a "Backing Path"?

So how do I get from the installer provided RAIDZ1 "rpool" on the three disks to a working datastore to backup to?

https://pbs:8007/docs/storage.html#datastore says to manually create a datastore - but what is my absolute path there? sorry, this is confusing to me ;-)

As per the system requirements I understand it should work with the three disks. Or do I need a dedicated disk for the PBS installation itsell?

Thanks for any help.
 
Last edited:
Hmmm,
Bash:
proxmox-backup-manager datastore create rpool /rpool
- creates the datastore - but not sure, if this is the way?
 
....banged my head against ZFS-walls (again).
I hope you're ok? ;)

You need separate disks for OS and storage. As your backup is more important I would take one for OS and 2 (mirrored) for your storage.

So do a new install, pick one disk for the OS and afterwards make a (ZFS) pool with the other two disks (and if you check the box it will be automatically be added as storage too).
 
Hi, i am quite sure this is a really silly question but I actually banged my head against ZFS-walls (again).

I have a PBS Server freshly installed with 3 disks. I have let the installer create me a RAIDZ1 during installation. Now, I ended up with a PBS installation and under Storage -> ZFS I have one "rpool".

How do I use the space as a datastore? The manual said the installers hould have added the "rpool" automagically as a DataStore? When I add a datastore it needs a "Backing Path"?

So how do I get from the installer provided RAIDZ1 "rpool" on the three disks to a working datastore to backup to?

https://pbs:8007/docs/storage.html#datastore says to manually create a datastore - but what is my absolute path there? sorry, this is confusing to me ;-)

As per the system requirements I understand it should work with the three disks. Or do I need a dedicated disk for the PBS installation itsell?

Thanks for any help.
Your datastore is simply a directory. If your pool is called rpool, or if you add another zfs pool on other disks, you can create a directory as /rpool/mydatastore and that is indeed your backing path.
 
Last edited:
I hope you're ok? ;)
Hey, yeah thanks , its actually getting better every moment I work with the ZFS ;-) Thanks for your answer! In this server we have a three disk constraint (its some blade chassis) and I thought using the RAIDZ1 would maximise usable space, so i let the installer create the ZFS RAIDZ1 and hoped to later use the space for backups as well - which now - somehow worked by just
Bash:
proxmox-backup-manager datastore create rpool /rpool
. I was just confused about to use the GUI or not.
 
Your datastore is simply a directory. If your pool is called rpool, or if you add another zfs pool on other disks, you can create a directory as /rpool/mydatastore and that is indeed your backing path.
Thanks! Thats helping me understaning this a lot better! So, the installer created rpool (using my three disks as RAIDZ1) and installed the PBS base system on rpool at:

Bash:
root@backup10:~# zfs list -o name,mountpoint,mounted
NAME              MOUNTPOINT   MOUNTED
rpool             /rpool       yes
rpool/ROOT        /rpool/ROOT  yes
rpool/ROOT/pbs-1  /            yes

So what was missing on my site? Did I hjust had to create a directory under
Bash:
/rpool
, like for example
Bash:
/rpool/my-1st-datastore
and then use this path in the "Add Datastore" gui as "Backing Path" - or at the command line:
Bash:
proxmox-backup-manager datastore create MY-1ST-DATASTORE /rpool/my-1st-datastore
?

Does this make sense?
Again, thanks for help!
 
Thanks! Thats helping me understaning this a lot better! So, the installer created rpool (using my three disks as RAIDZ1) and installed the PBS base system on rpool at:

Bash:
root@backup10:~# zfs list -o name,mountpoint,mounted
NAME              MOUNTPOINT   MOUNTED
rpool             /rpool       yes
rpool/ROOT        /rpool/ROOT  yes
rpool/ROOT/pbs-1  /            yes

So what was missing on my site? Did I hjust had to create a directory under
Bash:
/rpool
, like for example
Bash:
/rpool/my-1st-datastore
and then use this path in the "Add Datastore" gui as "Backing Path" - or at the command line:
Bash:
proxmox-backup-manager datastore create MY-1ST-DATASTORE /rpool/my-1st-datastore
?

Does this make sense?
Again, thanks for help!
Exactly, you got it ;)
 
Exactly, you got it ;)

Thanks @oversite !

So, to finish this, the command I already used (see above):
Bash:
proxmox-backup-manager datastore create rpool /rpool
was no total disaster, it just created the datastore logic, aka its directory structure and files (.chunks, ct, vm, ...), directly under /rpool - which as far as I understand, should be okay.
 
you really should not use the rpool dataset itself for anything. I'd suggest creating a new dataset for your datastore:

zfs create rpool/datastore -o mountpoint=/where/you/want/your/datastore

and then creating the datastore using the GUI with the path /where/you/want/your/datastore (obviously, replace that with YOUR chosen path for both actions ;)

the benefits of having a separate dataset for your datastore are that you can change zfs settings for it, and can snapshot it on its own.
 
  • Like
Reactions: zaphyre
Thanks @oversite !

So, to finish this, the command I already used (see above):
Bash:
proxmox-backup-manager datastore create rpool /rpool
was no total disaster, it just created the datastore logic, aka its directory structure and files (.chunks, ct, vm, ...), directly under /rpool - which as far as I understand, should be okay.
No total disaster but you would benefit by having it under it's own directory as soon as you would like to create another datastore on the same pool.
 
Okay, understood. For the moment thats fine. I`ll have this right on the production-setup then. Thanks again.
 
Just to complement this post (sorry for revive, but imo it's worth it as I was struggling a bit with this and more people might be in the same place I was). After creating your ZFS, it might possibly not be mounted right away, in which case you will want to:

1. Make sure your ZFS points at where you want it to be mounted
zfs set mountpoint=/mnt/datastore Data​
2. Mount it, if it's your only datastore, it's totally fine to use -a like
zfs mount -a​
3. Verify it's mounted by using "zfs list -o name,mountpoint,mounted" as @zaphyre showed previously
4. Create your directories as shown before by Zaphyre as well.
 

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!