quickreference:zfs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
quickreference:zfs [2025/03/21 23:32] – rodolico | quickreference:zfs [2025/03/21 23:39] (current) – rodolico | ||
---|---|---|---|
Line 17: | Line 17: | ||
**Warning**: | **Warning**: | ||
+ | |||
+ | **Note**: I've shown three ways to find the drives on the system. The first three commands give redundant information. If you have smartctl on your system, that is probably the easiest, since it has a scan function built in, but geom is FreeBSD' | ||
<code bash> | <code bash> | ||
- | # find the drives on the system | + | # find the drives on the system. Choose ONE of the following |
geom disk list | grep Geom | rev | cut -d' ' -f1 | rev | sort | geom disk list | grep Geom | rev | cut -d' ' -f1 | rev | sort | ||
- | # or, we can get from dmesg.boot | ||
egrep ' | egrep ' | ||
+ | smartctl --scan | cut -d' ' -f1 | ||
# we want RAID-6, name it storage, and us /dev/da0 through 7 | # we want RAID-6, name it storage, and us /dev/da0 through 7 | ||
zpool create -f storage raidz2 / | zpool create -f storage raidz2 / | ||
Line 35: | Line 37: | ||
This will create a pool named storage, mounted (-m) at /storage, forced to ignore most drive errors. The pool will be a raidz2 (aka RAID 6) with 6 drives (4-9), and have a dedup vdev consisting of a mirror from da2 and 3. | This will create a pool named storage, mounted (-m) at /storage, forced to ignore most drive errors. The pool will be a raidz2 (aka RAID 6) with 6 drives (4-9), and have a dedup vdev consisting of a mirror from da2 and 3. | ||
- | ===== Set defaults | + | ==== Set dataset |
- | Your new zpool may not have the default values you want. This is simple enough to do at this point, then any datasets/ | + | Your new dataset |
This is the way I have most set up. Modify it for your own use. Pay particular attention to the dedup=on and compress=gzip-9. | This is the way I have most set up. Modify it for your own use. Pay particular attention to the dedup=on and compress=gzip-9. |
quickreference/zfs.1742617933.txt.gz · Last modified: 2025/03/21 23:32 by rodolico