Installing Payload CMS

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
Payload CMS has recently gone open source.

https://github.com/payloadcms/payload

It, by design, encourages 100% locally contained (no cloud or external anything required).

Is it possible to load Payload CMS on a mirrored pair of SAS drives in SCALE and build-out a web presence from it?

I dislike Wordpress, a lot. I looked at the threads about it and it looked really messy, anyhow.

I know, I'm probably missing a lot in asking this question, but there's no better way for me to learn than formulating an idea, then asking.

Thanks, in advance, for your patience ...
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Is it possible to load Payload CMS on a mirrored pair of SAS drives in SCALE
Neither the pool type nor the disk interface is relevant; the question is going to be whether this software comes in a Docker container--SCALE doesn't use Docker as such, but it does use Docker containers for its "apps;" CORE with its jails is better-suited to running random additional software. I don't see a way to Docker-ify Payload, but perhaps the folks at @truecharts are smarter about this than I am.
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
OK, understood. I've read that other versions of Linux will run in VM under TrueNAS e.g. https://www.ithands-on.com/2020/11/setup-vm-on-truenas-example-with-ubuntu.html - does that get too resource intensive to run well?

Just read this as well https://mjones44.medium.com/truenas-is-awesome-961468bcf741 - do I understand, correctly, that I'd need to do this in CORE rather than SCALE?

Will that run independently of apps in use on a different mirrored storagepool drive on the same server (a Dell r720xd)?
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
does that get too resource intensive to run well?
That's going to depend on the resources available on the host system. But broadly speaking, no, I wouldn't expect so.
Just read this as well https://mjones44.medium.com/truenas-is-awesome-961468bcf741 - do I understand, correctly, that I'd need to do this in CORE rather than SCALE?
To follow those instructions exactly, yes, you'd need to use CORE. But there's a Plex app in SCALE, and there's also a Nextcloud app; you could also set up a separate VM (which could be the same as the one you mentioned above for Payload, or not) for Nextcloud. So you could accomplish the same thing under SCALE in a few different ways, but not in quite the same way as shown there.
Will that run independently of apps in use on a different mirrored storagepool drive on the same server (a Dell r720xd)?
It'd be a fairly unusual situation where you'd have a need for more than one pool--ordinarily ZFS works best with all its storage in a single pool. All apps need to be on the same pool; I believe VMs can be on any pool you like.
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
OK, so I install Plex, Nextcloud, NGINX, Let's Encrypt, Kubernetes, and Docker-Containers on storagepool1?
I create a VM on storagepool2 and set up the scanner container?
I create a second VM on storagepool2 and install an OS, perhaps ubuntu, and (I'm not sure how, yet) my web site(s) code, a blog, etc.
I use storagepool3 for files and images.
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
You could do that. But why create three separate storage pools?
I guess I misunderstood you here "...ordinarily ZFS works best with all its storage in a single pool. All apps need to be on the same pool; I believe VMs can be on any pool you like."

My storagepools are dual drives that are mirrored. There's a boot pair of 140GiB, then pool1 is also 140GiB, then pool2 1TB, and pool3 1TB.

1658090001386.png
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
then pool1 is also 140GiB, then pool2 1TB, and pool3 1TB.
That's a valid configuration, but again somewhat unusual. Why not combine all these disks into a single pool?
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
That's a valid configuration, but again somewhat unusual. Why not combine all these disks into a single pool?
I didn't know I could do that. I set them up as mirrored pairs of drives, and thought that each of the drive pairs could be set up as single of multiple storagepools, but not a single storagepool covering multiple physical drive pairs.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
No, any number of mirrored pairs (or vdevs of other types) can be combined into a single pool, and that's ordinarily how ZFS expects to treat your storage. That wouldn't make much sense if you were, say, using SSDs in some and spinners in others, or RAIDZ2 in one and a two-way mirror in another (though they could still be combined in either case), but if you're using mirrored pairs of spinners, it'd ordinarily make more sense to put them all into one pool. Again, it's not that your configuration is wrong or invalid, but it's not how things are generally done with ZFS.
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
It may help me to keep things clear in my head if I install Plex, Nextcloud, NGINX, Let's Encrypt, Kubernetes, and Docker-Containers on storagepool1 - then merge storagepool2 & 3 into storagepool2 so that everything else is in storagepool2?

Storagepool2 would host VM for an OS plus the Scanner, Web pages, Blog, Document, and Image files?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
How would I merge storagepool2 and storagepool3?
You can't. OpenZFS doesn't currently allow for merging pools. You'd have to backup both pools, destroy both pools, create a new pool from the members of both pools with a compatible topology, and then reload the backup.
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
You can't. OpenZFS doesn't currently allow for merging pools. You'd have to backup both pools, destroy both pools, create a new pool from the members of both pools with a compatible topology, and then reload the backup.
OK, that's fine, they're currently empty. Thanks. Just found this ...
image-133-1024x546.png
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
You'd have to backup both pools, destroy both pools, create a new pool from the members of both pools with a compatible topology, and then reload the backup.
Or back up one (if there's anything on it, which there doesn't seem to be), destroy it, and use its disks to extend the other. No need to destroy both pools.
 

DavidinGA

Explorer
Joined
Jun 8, 2022
Messages
62
OK, storagepool3 'disconnected'.

Storagepool2 represents two 1T drives mirrored.

Storagepool3 was also two 1T drives mirrored.

Do I mirror the two drives that were storagepool3 but name them storagepool2?

Or ??

Sorry for all the questions ...
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Payload is not really a "piece of software", it's "just another node package".
It should be usable by spinning up a node container using Launch-Docker or Custom App and attaching storage.

But due to the "just another node package" and "mostly DIY" nature, it's not really suitable for building into an App itself.
Best would be build your payload website on github and use a pipeline to build that into your own personal docker-container.
 
Top