Differences between revisions 2 and 9 (spanning 7 versions)
Revision 2 as of 2022-07-27 08:45:26
Size: 1926
Editor: SamatJain
Comment:
Revision 9 as of 2025-02-11 17:16:42
Size: 2277
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
## create main array ## create main array, 1-disk party raidz
Line 25: Line 25:
# no parity disk raid0 equivalent
sudo zpool create -o ashift=12 -f $NAME /dev/disk/by-id/${DATA_DISKS}
Line 26: Line 29:
zpool add -f $NAME cache /dev/disk/by-id/${CACHE_DISKS} sudo zpool add -f $NAME cache /dev/disk/by-id/${CACHE_DISKS}
Line 37: Line 40:
#sudo zfs set recordsize=1M ${NAME} # For long-term storage sudo zfs set recordsize=1M ${NAME} # For long-term storage
# Deduplication. Requires system w/ large amount of RAM
sudo zfs set dedup=on ${NAME}

## show pool information from member device, e.g. /dev/sde
sudo zdb -l /dev/sde1

## get all parameters
sudo zfs get all ${NAME}
Line 49: Line 60:
installimage -n geta -r yes -l 1 -p /boot:ext3:1G,/:xfs:128G -f yes -t yes -d nvme0n1,nvme1n1 -i /root/images/Debian-1101-bullseye-amd64-base.tar.gz
}}}
installimage -n geta -r yes -l 1 -p /boot:ext3:1G,/:xfs:128G -f yes -t yes -d nvme0n1,nvme1n1 -i /root/images/Debian-1208-bookworm-amd64-base.tar.gz

SamatsWiki: ZFS (last edited 2025-02-11 17:20:52 by SamatJain)