<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Raid6 on WLStack — Simple, Scalable Cloud Solutions</title><link>https://www.wlstack.com/en/tags/raid6/</link><description>Recent content in Raid6 on WLStack — Simple, Scalable Cloud Solutions</description><generator>Hugo</generator><language>en-US</language><managingEditor>info@wlstack.com (WLSTACK)</managingEditor><webMaster>info@wlstack.com (WLSTACK)</webMaster><lastBuildDate>Tue, 27 Sep 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://www.wlstack.com/en/tags/raid6/index.xml" rel="self" type="application/rss+xml"/><item><title>FreeBSD ZFS存储与samba配置</title><link>https://www.wlstack.com/en/blog/freebsd-zfs-samba/</link><pubDate>Tue, 27 Sep 2022 00:00:00 +0000</pubDate><author>info@wlstack.com (WLSTACK)</author><guid>https://www.wlstack.com/en/blog/freebsd-zfs-samba/</guid><description>&lt;h1 id="作为穷人我们选择基于freebsdzfssamba构建山寨存储">作为穷人，我们选择基于FreeBSD+ZFS+SAMBA构建山寨存储&lt;/h1>
&lt;p>毋庸质疑，也无需赘述&lt;/p>
&lt;p>&lt;strong>freebsd操作系统是公认的“快”、“安全”、“稳定”&lt;/strong>&lt;/p>
&lt;p>&lt;strong>zfs是人类有史以来最先进的文件系统&lt;/strong>&lt;/p>
&lt;h2 id="freebsd入门">FreeBSD入门&lt;/h2>
&lt;h3 id="软件包管理">软件包管理&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Linux® 命令 (Red Hat/Debian)&lt;/th>
 &lt;th>FreeBSD 等价命令	目的&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>yum install package / apt-get install package&lt;/td>
 &lt;td>pkg install package	从远程仓库安装 package&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>rpm -ivh package / dpkg -i package&lt;/td>
 &lt;td>pkg add package	安装 package&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>rpm -qa / dpkg -l&lt;/td>
 &lt;td>pkg info	列出已安装的软件包&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h3 id="系统管理">系统管理&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Linux&lt;/th>
 &lt;th>FreeBSD 等价命令	目的&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>lspci&lt;/td>
 &lt;td>pciconf	列出 PCI 设备&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>lsmod&lt;/td>
 &lt;td>kldstat	列出已载入的内核模块&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>modprobe.&lt;/td>
 &lt;td>kldload / kldunload	载入/卸载内核模块&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>strace.&lt;/td>
 &lt;td>truss	跟踪系统调用&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h3 id="网络管理">网络管理&lt;/h3>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Linux&lt;/th>
 &lt;th>FreeBSD 等价命令	目的&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>ip&lt;/td>
 &lt;td>ifconfig&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>ifconfig&lt;/td>
 &lt;td>ifconfig&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>iptable&lt;/td>
 &lt;td>ipfw&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="zfs入门">ZFS入门&lt;/h2>
&lt;h3 id="zfs-的历史">ZFS 的历史&lt;/h3>
&lt;p>ZFS是由 Matthew Ahrens 和 Jeff Bonwick 在 2001 年开发的。ZFS 是作为 太阳微系统(Sun MicroSystem) 公司的 OpenSolaris 的下一代文件系统而设计的。在 2008 年，ZFS 被移植到了 FreeBSD 。同一年，一个移植 ZFS 到 Linux 的项目也启动了。然而，由于 ZFS 是 通用开发和发布许可证 (Common Development and Distribution License)（CDDL）许可的，它和 GNU 通用公共许可证 不兼容，因此不能将它迁移到 Linux 内核中。为了解决这个问题，绝大多数 Linux 发行版提供了一些方法来安装 ZFS。
在甲骨文公司收购太阳微系统公司之后不久，OpenSolaris 就闭源了，这使得 ZFS 的之后的开发也变成闭源的了。许多 ZFS 开发者对这件事情非常不满。 三分之二的 ZFS 核心开发者 ，包括 Ahrens 和 Bonwick，因为这个决定而离开了甲骨文公司。他们加入了其它公司，并于 2013 年 9 月创立了 OpenZFS 这一项目。该项目引领着 ZFS 的开源开发。
让我们回到上面提到的许可证问题上。既然 OpenZFS 项目已经和 Oracle 公司分离开了，有人可能好奇他们为什么不使用和 GPL 兼容的许可证，这样就可以把它加入到 Linux 内核中了。根据 OpenZFS 官网 的介绍，更改许可证需要联系所有为当前 OpenZFS 实现贡献过代码的人（包括初始的公共 ZFS 代码以及 OpenSolaris 代码），并得到他们的许可才行。这几乎是不可能的（因为一些贡献者可能已经去世了或者很难找到），因此他们决定保留原来的许可证。&lt;/p></description></item></channel></rss>