FreeBSD 中的 ZFS 支持
最后更新于
git clone -b stable/12 https://git.FreeBSD.org/src.git /usr/srcgit clone https://git.FreeBSD.org/src.git /usr/srcpkg install \
autoconf \
automake \
autotools \
git \
gmakepkg install python
pkg install devel/py-sysctl # 用于 arcstat、arc_summary、dbufstatpkg install \
base64 \
bash \
checkbashisms \
fio \
hs-ShellCheck \
ksh93 \
pamtester \
devel/py-flake8 \
sudo# 以普通用户身份
git clone https://github.com/openzfs/zfs
cd zfs
./autogen.sh
env MAKE=gmake ./configure
gmake -j$(sysctl -n hw.ncpu)
# 以 root 身份
gmake installzfs_load="YES"openzfs_load="YES"PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/binPATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:~/binrebootmount -t fdescfs fdescfs /dev/fdfdescfs /dev/fd fdescfs rw 0 0