Skip to content

Commit

Permalink
ZFS: add disk (non-empty and unmounted) checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrokinro authored Jan 21, 2025
1 parent 53fa8b7 commit bfdeb78
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions how-to-guides/zfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ Get your disk name:
lsblk --nodeps -o name
```

Verify disk is empty (should show no partitions):
```sh
lsblk YOUR_DISK_NAME (/dev/nvme0n1 or /dev/sda i.e.)
```

Verify disk is not mounted:
```sh
mount | grep YOUR_DISK_NAME
```

Set variables:
```sh
ZFS_POOL_NAME="celestia" && ZFS_DATASET_NAME="bridge"
Expand Down

0 comments on commit bfdeb78

Please sign in to comment.