User Tools

Site Tools


quickreference:zfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
quickreference:zfs [2025/03/21 23:35] rodolicoquickreference:zfs [2025/03/21 23:39] (current) rodolico
Line 17: Line 17:
  
 **Warning**: The following will find all drives on the system, including your boot drives, so remove the boot drives before proceeding with the zpool creation. **Warning**: The following will find all drives on the system, including your boot drives, so remove the boot drives before proceeding with the zpool creation.
 +
 +**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's way to do it.
  
 <code bash> <code bash>
Line 22: Line 24:
 geom disk list | grep Geom | rev | cut -d' ' -f1 | rev | sort geom disk list | grep Geom | rev | cut -d' ' -f1 | rev | sort
 egrep 'da[0-9]|cd[0-9]' /var/run/dmesg.boot | sort egrep 'da[0-9]|cd[0-9]' /var/run/dmesg.boot | sort
-smartctl --scan | grep scsi | cut -d' ' -f1+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 /dev/da[01234567] zpool create -f storage raidz2 /dev/da[01234567]
quickreference/zfs.1742618126.txt.gz · Last modified: 2025/03/21 23:35 by rodolico