Skip to content

Homelab server

Various documentation on running a homelab server

Sabrent 2-bay dock

In order to get Linux to recognize the individual bays on the dock, we need to add this to /etc/udev/rules.d

Create a new file /etc/udev/rules.d/99-sabrent-dock.rules. Paste this into the file.

# Sabrent disk 2 bay enclosure
ENV{ID_VENDOR_ID}=="152d", \
  ENV{ID_MODEL_ID}=="2509", \
  IMPORT{program}="serial_id %N", \
  ENV{ID_SERIAL}="$env{ID_VENDOR}_$env{ID_MODEL}_$env{ID_SERIAL_SHORT}-$env{ID_INSTANCE}", \
  SYMLINK="disk/by-path/$env{ID_PATH}", \
  SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"

ZFS with Sabrent 2-bay dock

We had to create the pool the /dev/disk/by-path. It was created with this command. Don't copy and paste this command You need to first figure out in /dev/disk/by-path which ones it is first.

sudo zpool create forbiddenpool raidz1 /dev/disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0 /dev/disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:1

To restore a zfs pool, use import. This should restore the pool on a new server as well.

$ sudo zpool import forbiddenpool