↓ Skip to Main Content

Storage Deployment

·· loading · loading · ·
Server Wipe and Rebuild - This article is part of a series.
Part 8: This Article (You are here!)

This part of the rebuild focused on installing the remaining storage drives and configuring them according to the storage model outlined earlier in the series. The goal was to place each storage tier into a defined role.

  • Scheduled Backups
  • Services
  • Databases
  • Cloud
  • Media
  • Testing

This ended up being one of the more involved parts of the rebuild. Between iDRAC drive states, RAID configuration, ZFS pool creation, leftover filesystem signatures, old LVM mappings, and dataset planning, there were several points where it made sense to slow down and make sure the storage layout was being built intentionally.

Scheduled Backup Drives
#

I started by installing the Scheduled Backups drives. These drives are part of the storage model from the previous storage planning article and are intended to be simple mirrored disks, similar to the Proxmox VE OS drives. These drives are not meant to be high-performance VM storage. Their purpose is to provide a simple local backup and configuration archive location for the lab.

I installed two 600 GB SAS HDDs in drive slots 2 and 3, then powered on the server through iDRAC. Once the server was online, I navigated to the iDRAC storage panel to confirm that the drives were detected properly.

Physical Disk 0:1:2
Physical Disk 0:1:3

One drive was already in a RAID-ready state, while the other was listed as Non-RAID. In the previous build, that drive must have been passed through to Proxmox for another purpose, though I am no longer sure which service was using it.

To create a mirrored array, both drives needed to be in a RAID-ready state. I queued the conversion for Physical Disk 0:1:2, waited for the job to complete, and then created a new mirrored virtual disk.

The resulting virtual disk used the following settings:

Name: SCHBKUPS RAID1
Controller: PERC H730P Mini (Embedded)
Layout: RAID-1
Media Type: HDD
Stripe Element Size: 64 KB
Capacity: 558.3750 GB
Read Policy: No Read Ahead
Write Policy: Write Back
Disk Cache Policy: Default
T1- PI Capability: Disabled
Span Count: 1

Just like with the Proxmox boot volume, there was no reason to overthink these settings.

Eventually, I plan to bring Proxmox Backup Server back into the environment using a thin client with attached external storage. That will give me another backup location outside of the main server. For now, this scheduled backup pool will serve as the primary local recovery and configuration archive source.

Confirming Backup Volume
#

After the RAID job completed, I logged into Proxmox and verified that the new virtual disk was passed through correctly.

root@home:~# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                  8:0    0   372G  0 disk 
├─sda1               8:1    0  1007K  0 part 
├─sda2               8:2    0     1G  0 part /boot/efi
└─sda3               8:3    0   371G  0 part 
  ├─pve-swap       252:0    0     8G  0 lvm  [SWAP]
  ├─pve-root       252:1    0    96G  0 lvm  /
  ├─pve-data_tmeta 252:2    0   2.5G  0 lvm  
  │ └─pve-data     252:4   0   246G  0 lvm  
  └─pve-data_tdata 252:3   0   246G  0 lvm  
    └─pve-data     252:4   0   246G  0 lvm  
sdb                  8:16   0 558.4G  0 disk 

The new RAID1 volume appears as sdb, which confirms that Proxmox can see it. I then used the Proxmox GUI to create a directory-backed storage target.

I selected /dev/sdb, chose the filesystem, named the storage, and kept Add Storage checked so Proxmox would handle the mount configuration automatically instead of requiring a manual /etc/fstab edit.

Directory Storage for Backups
#

For this backup pool, I chose a directory-backed storage target instead of LVM or ZFS. This pool is not primarily for VM disks or container root filesystems. It is meant to be a general-purpose backup and configuration archive location.

I intend for this storage pool to hold this type of data:

Proxmox backups
VM and container restore points
ISO files
iDRAC configuration exports
UDM SE backups
FortiSwitch backups
Pi-hole exports
Traefik configuration
Authentik configuration
CrowdSec configuration
Other service configuration backups where applicable

Because this pool will eventually be shared over the network, a normal directory structure makes more sense than block storage. I want to be able to browse it, organize it manually, share it over SMB or NFS, and eventually sync it to an external backup target.

To keep the storage clean, I disabled VM and container disk storage on this target as I only want backup-oriented content here, not live workloads.

I went ahead and preconfigured a few folders outside of the usual folders that Proxmox generates for the targeted media types.

/mnt/pve/SCHBKUPS/
├── dump/
├── import/
├── lost+found/
├── snippets/
├── template/
├── infrastructure/
│   ├── networking/
│   │   ├── udm-se/
│   │   └── fortiswitch/
│   └── servers/
│       ├── home.lab/
│       │   └── idrac/
│       └── learn.lab/
│           └── idrac/
└── services/
    ├── pi-hole/
    ├── traefik/
    ├── authentik/
    └── crowdsec/

This will change over time, but it gives me a good starting point.

Services Storage Pool
#

The next drives were staged for the Services pool. This pool is where most of the actual self-hosted lab services will live. These drives are more important from an operational standpoint because they’ll’ host the containers and service workloads that make up the lab. This storage tier is expected to see significantly more I/O than the backup pool.

I installed the two 400 GB SAS SSD drives in slots 4 and 5, waited for iDRAC to detect them, then converted them to Non-RAID so Proxmox could manage them directly with ZFS.

After that, I verified that Proxmox could see them.

root@home:~# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                  8:0    0   372G  0 disk 
├─sda1               8:1    0  1007K  0 part 
├─sda2               8:2    0     1G  0 part /boot/efi
└─sda3               8:3    0   371G  0 part 
  ├─pve-swap       252:0    0     8G  0 lvm  [SWAP]
  ├─pve-root       252:1    0    96G  0 lvm  /
  ├─pve-data_tmeta 252:2    0   2.5G  0 lvm  
  │ └─pve-data     252:4   0   246G  0 lvm  
  └─pve-data_tdata 252:3   0   246G  0 lvm  
    └─pve-data     252:4   0   246G  0 lvm  
sdb                  8:16   0 558.4G  0 disk 
└─sdb1               8:17   0 558.4G  0 part /mnt/pve/SCHBKUPS
sdc                  8:32   0 372.6G  0 disk 
├─sdc1               8:33   0 1007K   0 part 
├─sdc2               8:34   0    1G   0 part 
└─sdc3               8:35   0  371G   0 part 
sdd                  8:48   0 372.6G  0 disk 
├─sdd1               8:49   0 1007K   0 part 
├─sdd2               8:50   0    1G   0 part 
└─sdd3               8:51   0  371G   0 part 

The new drives show up as sdc and sdd, but both still had old partitions from the previous server build. I wiped them before creating the ZFS pool.

root@home:~# wipefs -a /dev/sdc /dev/sdd
/dev/sdc: 8 bytes were erased at offset 0x00000200 (gpt)
/dev/sdc: 2 bytes were erased at offset 0x000001fe (PMBR)
/dev/sdd: 8 bytes were erased at offset 0x00000200 (gpt)
/dev/sdd: 2 bytes were erased at offset 0x000001fe (PMBR)

I also cleared the GPT structures and will do this for all drives going forward.

root@home:~# sgdisk --zap-all /dev/sdc
root@home:~# sgdisk --zap-all /dev/sdd

After wiping the disks, they’re ready to use.

Creating Services ZFS Mirror
#

I created the Services pool through the Proxmox GUI.

Name: Services
RAID Level: Mirror
Compression: lz4
ashift: 12
Add Storage (Checked)

Because this pool will hold VM and container data, I allowed Proxmox to add it as storage with the Add Storage checkbox.

After creation, I confirmed the pool status.

root@home:~# zpool status Services
  pool: Services
 state: ONLINE
config:

        NAME                        STATE     READ WRITE CKSUM
        Services                    ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            scsi-35000c500301cea97  ONLINE       0     0     0
            scsi-35000c500301ceb57  ONLINE       0     0     0

errors: No known data errors

I also confirmed that the pool was visible to Proxmox as a storage target:

root@home:~# pvesm status
Name             Type     Status     Total (KiB)      Used (KiB) Available (KiB)        %
SCHBKUPS          dir     active       575186012            2156       545892596    0.00%
Services      zfspool     active       377946112             444       377945668    0.00%
local             dir     active        98497780         5938400        87509832    6.03%
local-lvm     lvmthin     active       257925120               0       257925120    0.00%

At this point, the Services pool is online and ready to host the service layer.

Services Pool Properties
#

I checked the ZFS properties for the Services pool.

root@home:~# zpool get ashift,autotrim Services
NAME      PROPERTY  VALUE     SOURCE
Services  ashift    12        local
Services  autotrim  off       default

root@home:~# zfs get compression,atime,xattr,acltype Services
NAME      PROPERTY     VALUE           SOURCE
Services  compression  lz4             local
Services  atime        on              default
Services  xattr        sa              default
Services  acltype      off             default

autotrim is off by default. Rather than enabling it directly, I plan to handle trim later through a scheduled job. This pool will eventually host most of my containerized services, so I want to avoid unnecessary background I/O or potential latency spikes from continuous trim behavior. It’s recommended to keep this off, even though there are many people that do recommend turning it on. Again, this pool is the primary services target, so any extra unnecessary I/O that I can avoid will be handy to have.

A monthly scheduled trim job will likely make more sense than having it operate in the background at all times.

Database Storage
#

The next physical slots, 6 and 7, are being reserved for a future database mirror. I ordered two additional SSDs specifically for database workloads.

In the past, services that I self-host spin up their own lightweight databases as needed, but often have the option to integrate with an existing db if available. Since I’ve never hosted a db, I always allow the service to create its own db to use. This means that I could have as many as 15 lightweight databases running for services at a time, instead of integrating them into a couple of locations.

This also doesn’t do anything from a learning perspective, as I’ve been treating databases as a sort of magic black box, not really knowing how it works or how to interface with it at all outside of some very, very small SQL queries with the help of Google and AI when troubleshooting. This gives me an awesome learning opportunity to deploy a dedicated database or two to integrate services with and learn management and querying.

June 4, 2026 Update: I ordered two 200 GB SAS SSD drives for this Database a few days ago. Both drives arrived in the mail today and I’ve installed and configured the ZFS pool as Database.

Cloud Storage Pool
#

Drive slots 8 and 9 are dedicated to cloud-style file storage.

Originally, I thought of this as the Nextcloud pool like before because Nextcloud user data will live here. The Nextcloud application itself will run from the Services pool, but the actual user files, photos, documents, and other stored data will live on this separate pool.

This pool will also store Paperless-ngx document data. That makes sense because both Nextcloud and Paperless-ngx are ultimately dealing with personal files and documents.

After installing the drives, Proxmox detected them as sde and sdf.

One drive still had an old ZFS label, and the other had an old LVM mapping from a previous test VM. The old LVM mapping caused wipefs to fail.

wipefs: error: /dev/sdf: probing initialization failed: Device or resource busy

The issue was an old device mapper entry from the previous installation.

WindowsTest-vm--200--disk--0

After some quick Googling, I was able to remove it with dmsetup.

root@home:~# dmsetup remove WindowsTest-vm--200--disk--0

Both drives could be wiped and reused.

Renaming Nextcloud to Cloud
#

I initially created this pool as Nextcloud, but quickly realized that name was too specific and I didn’t like the resulting datasets I was creating.

This pool will be used by Nextcloud, but it will also be used by Paperless-ngx and potentially other document or file-oriented services later. Naming the entire pool after one service creates confusion and technical debt in the documentation.

I destroyed and recreated the pool as just Cloud, which better describes the storage role while leaving enough flexibility for multiple services if needed.

root@home:/# zpool status Cloud
  pool: Cloud
 state: ONLINE
config:

        NAME                        STATE     READ WRITE CKSUM
        Cloud                       ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            scsi-350000397c8416311  ONLINE       0     0     0
            scsi-350000397b8380561  ONLINE       0     0     0

errors: No known data errors

I then created datasets for the intended services.

root@home:/# zfs list
NAME                  USED  AVAIL  REFER  MOUNTPOINT
Cloud                 764K  1.05T   104K  /Cloud
Cloud/Nextcloud        96K  1.05T    96K  /Cloud/Nextcloud
Cloud/Paperless-ngx    96K  1.05T    96K  /Cloud/Paperless-ngx
Services              444K   360G    96K  /Services

I also disabled atime and enabled POSIX ACL support. Disabling atime reduces unnecessary metadata writes, which is especially useful on these older mechanical drives to reduce I/O. POSIX ACL support gives me more flexibility later if this pool becomes multi-user or needs more detailed permissions for service access.

Media Storage Pool
#

The largest storage section in this phase was the media pool. This pool is designed for bulk media and GameShelf storage. It uses (12) 2 TB SAS drives in a RAIDZ2 configuration, allowing the pool to survive two drive failures.

This process took much more time because each drive needed to be installed, identified, wiped, and tracked carefully against the drive layout sheet. Some drives needed to be converted to Non-RAID in iDRAC, while others were already in the correct state from the previous installation. I updated the drive layout sheet one drive at a time, logging its serial number and which /dev/sd it showed up as.

After the drives were installed and passed through, Proxmox showed the full set of (12) drives.

sdg  1.8T disk
sdh  1.8T disk
sdi  1.8T disk
sdj  1.8T disk
sdk  1.8T disk
sdl  1.8T disk
sdm  1.8T disk
sdn  1.8T disk
sdo  1.8T disk
sdp  1.8T disk
sdq  1.8T disk
sdr  1.8T disk

With all media drives installed and erased, I created a new ZFS pool, Media using RAIDZ2.

root@home:~# zpool status Media
  pool: Media
 state: ONLINE
config:

        NAME                        STATE     READ WRITE CKSUM
        Media                       ONLINE       0     0     0
          raidz2-0                  ONLINE       0     0     0
            scsi-35000c500970d9793  ONLINE       0     0     0
            scsi-35000c50096dbbb53  ONLINE       0     0     0
            scsi-35000c5009780e307  ONLINE       0     0     0
            scsi-35000c5009783be2f  ONLINE       0     0     0
            scsi-35000c50097646e7f  ONLINE       0     0     0
            scsi-35000c50097644b6f  ONLINE       0     0     0
            scsi-35000c5009750b5b7  ONLINE       0     0     0
            scsi-35000c5009750bbbf  ONLINE       0     0     0
            scsi-35000c500976ddca7  ONLINE       0     0     0
            scsi-35000c500976d98cf  ONLINE       0     0     0
            scsi-35000c5009ecdbf23  ONLINE       0     0     0
            scsi-35000c5009ecd9e17  ONLINE       0     0     0

errors: No known data errors

For this pool, I also disabled atime and enabled POSIX ACL support. The media pool will eventually be shared over SMB so I can manage it from my workstation, so enabling ACL support now could be beneficial down the road.

Media Dataset Layout
#

For the media pool, I created two main datasets.

Media/Library
Media/GameShelf

Media/GameShelf is separated as its own dataset because it is manually managed game storage.


Testing Pool
#

The final two drives currently installed are assigned to a testing pool. This pool is for temporary virtual machines and containers that I want to spin up for experimentation. It’s also a flexible storage area that can be reworked later if needed.

Because this pool will host VM and container data, I made sure to add it as Proxmox storage when creating the ZFS mirror.

root@home:~# zpool status Testing
  pool: Testing
 state: ONLINE
config:

        NAME                        STATE     READ WRITE CKSUM
        Testing                     ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            scsi-350000395c818e6f8  ONLINE       0     0     0
            scsi-350000395c818e804  ONLINE       0     0     0

errors: No known data errors

This gives me a dedicated area for short-lived workloads without mixing experiments into the main services pool.

Current Status
#

Almost a full array!

With all currently available drives installed and pooled, my storage layout now looks like this:

root@home:~# zfs list
NAME                  USED  AVAIL  REFER  MOUNTPOINT
Cloud                 776K  1.05T   104K  /Cloud
Cloud/Nextcloud        96K  1.05T    96K  /Cloud/Nextcloud
Cloud/Paperless-ngx    96K  1.05T    96K  /Cloud/Paperless-ngx
Media                1.78M  16.5T   238K  /Media
Media/GameShelf       219K  16.5T   219K  /Media/GameShelf
Media/Library         238K  16.5T   238K  /Media/Library
Services              444K   360G    96K  /Services
Testing               396K   539G    96K  /Testing

Slots 6 and 7 remain reserved for the future Database pool when the drives arrive in the mail.

Drive Layout Sheet Screenshot

The next rebuild phase will focus on network sharing. I plan to create a dedicated container for SMB sharing so that I can access the backup and media pools from my workstation. Once SCHBKUPS is available over the network, I can begin building structured configuration backup routines around it. I also plan to revisit automated maintenance tasks, including scheduled ZFS trim for SSD-backed pools.

The main hang-up here is networking sharing not being setup just yet, but once it’s online, I’ll be able to work on the backup scheduling. After that, I’ll be able to start doing some of the fun stuff with spinning up services.

Reply by Email
Server Wipe and Rebuild - This article is part of a series.
Part 8: This Article (You are here!)