8000 homelab/storage at main · inhueman/homelab · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

storage

README.md

Storage and Backup

In this reposity I will layout my storage and backup solutions for all of the services and platforms running on my homelab. Currently, I have two main platforms that manage my storage; Proxmox and Unraid. Below I will explain their uses and how I created and manage them.

please see this video

Proxmox

Proxmox is responible for managaging my storage for video, images, logs, databases, and docker configurations. This is done on a network attached storage device with six 4TB HHDs and three 1TB NVME SSDs. These are combined into seperate ZFS pools for the HDDs (vault) and the SSDs (flash). Vault is used as a large data storage pool and Flash is used for containers and virtual machines disks.

This is a work in progress

1. Create ZFS Pools

First, we are going to setup two ZFS Pools. A "Vault" pool which is used for backups and shared data such as media and downloads. We also will make a "Flash" pool which is used for virtual machines and container storage. In my case I have an NVMe drive for my flash storage that will contain my containers and VM disks, and four hard drives for shared storage. To do this, on the Proxmox sidebar for your datacenter, go to Disks -> ZFS -> Create: ZFS. This will pop up the screen to create a ZFS pool.

create zfs

From this screen, it should show all of your drives, so select the ones you want in your pool, and select your RAID level (in my case RAIDZ for my vault pool and mirror for my flash pool) and compression, (in my case lz4).

create zfs dialog

  1. Assigning Pools to Primary Vault Container

Now we want to assign our pools to certain tasks in Proxmox. So in the storage tab of our data center, we can add directories to our pools used for certain tasks. To do this go to Datacenter -> Storage -> Add -> Directory, and from here you can set the ID, where on the proxnox server, and the content.

assigning pool

For me, I first made a directory for backups inside the vault. For the directory I made sure it was inside my /vault pool by setting the directory to /vault/backups, and than set the content to VZDump backup file for my backups.

backup pool

I also edited my local storage to not contain my VZDump backup files.

Next up I create a directory for my data which will contain my disk images and containers. So I created a new directory called "data" inside /vault/data, and here I set the content to disk image, and containers.

data pool

Finally, I want a disks directory for my virtual machines on my NVMe drives. So, I made another "disks" pool inside /flash/disks, and just like data, I set the content to disk images and containers.

disks pool

  1. Adding Virtual Drives (zfs mount points) in Pool to Other Containers

Now, I

  1. Setup Cockpit for Shares

Steps above are based on this video, when creating the data directory in that video I changed how it's setup.

  1. Adding network shares to unprivalized containers
  2. https://www.youtube.com/watch?v=DMPetY4mX-c
0