server: auto-create tank ZFS pool on first boot if data disk is blank #49

Merged
beatzaplenty merged 1 commits from server-boot-fix into main 2026-07-23 20:26:36 +00:00
Owner

A fresh proxmox-server deploy has a blank scsi1 disk, so
zfs-import-tank.service spun 60 s then failed with no pool found.
Add zfs-init-tank.service that runs before the import: exits immediately
if the pool already exists, imports it if it exists but isn't imported
yet, or creates it on /dev/disk/by-id/scsi-*drive-scsi1 (Proxmox's
virtio-scsi naming for the second disk) with all required NFS datasets
if the disk is blank.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

A fresh proxmox-server deploy has a blank scsi1 disk, so zfs-import-tank.service spun 60 s then failed with no pool found. Add zfs-init-tank.service that runs before the import: exits immediately if the pool already exists, imports it if it exists but isn't imported yet, or creates it on /dev/disk/by-id/scsi-*drive-scsi1 (Proxmox's virtio-scsi naming for the second disk) with all required NFS datasets if the disk is blank. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
beatzaplenty added 1 commit 2026-07-23 20:26:33 +00:00
server: auto-create tank ZFS pool on first boot if data disk is blank
Check NixOS configurations / eval-hosts (pull_request) Failing after 11m40s
6002c5c738
A fresh proxmox-server deploy has a blank scsi1 disk, so
zfs-import-tank.service spun 60 s then failed with no pool found.
Add zfs-init-tank.service that runs before the import: exits immediately
if the pool already exists, imports it if it exists but isn't imported
yet, or creates it on /dev/disk/by-id/scsi-*drive-scsi1 (Proxmox's
virtio-scsi naming for the second disk) with all required NFS datasets
if the disk is blank.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
beatzaplenty merged commit 6d5670c8d2 into main 2026-07-23 20:26:36 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No labels
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: beatzaplenty/nixos#49