Skip to content

Instantly share code, notes, and snippets.

@scfcode
Last active October 5, 2022 01:37
Show Gist options
  • Select an option

  • Save scfcode/2066a187e7094cdd6c72d7796a5686ca to your computer and use it in GitHub Desktop.

Select an option

Save scfcode/2066a187e7094cdd6c72d7796a5686ca to your computer and use it in GitHub Desktop.
Crazy ZFS filesystem in Proxmox via CIFS - FrankenFS #zfs #crazy

created a cifs 500Gb scsi disk via proxmox add hard disk interface

used fdisk to make it a gpt disk

used show disk tool to find pci details for the disk partition

// See https://louwrentius.com/creating-a-basic-zfs-file-system-on-linux.html

git clone https://github.com/louwrentius/showtools.git

cd showtools/ more README.md ./show -sp disk

root@machine:/home/user/showtools# ./show -sp disk
---------------------------------------------
| Dev | GB  | /dev/disk/by-path             |
---------------------------------------------
| sda | 52  | pci-0000:00:05.0-scsi-0:0:0:0 |
| sdb | 537 | pci-0000:00:05.0-scsi-0:0:0:2 |  <----- This disk
| sdc | 275 | pci-0000:00:05.0-scsi-0:0:0:1 |
| sr0 | 1   | pci-0000:00:01.1-ata-2        |
---------------------------------------------

used zfs to create a file system in Linux using the /dev/sd device

// see https://unix.stackexchange.com/questions/672151/create-zfs-partition-on-existing-drive

zpool create wdmctank pci-0000:00:05.0-scsi-0:0:0:2

zpool create wdmctank pci-0000:00:05.0-scsi-0:0:0:2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment