From 2b72c95307f1e9e811b25eb8eace9865ffbd5aca Mon Sep 17 00:00:00 2001 From: Fukang Chen Date: Fri, 11 Dec 2009 15:32:36 +0000 Subject: MFen: handbook: advanced-networking/chapter.sgml 1.422 -> 1.425 basics/chapter.sgml 1.156 -> 1.157 bibliography/chapter.sgml 1.85 -> 1.86 config/chapter.sgml 1.236 -> 1.238 cutting-edge/chapter.sgml 1.240 -> 1.244 desktop/chapter.sgml 1.86 -> 1.91 disks/chapter.sgml 1.290 -> 1.291 dtrace/chapter.sgml 1.7 -> 1.8 eresources/chapter.sgml 1.197 -> 1.199 filesystems/chapter.sgml 1.5 -> 1.8 firewalls/chapter.sgml 1.86 -> 1.86 introduction/chapter.sgml 1.133 -> 1.135 jails/chapter.sgml 1.17 -> 1.18 kernelconfig/chapter.sgml 1.190 -> 1.192 linuxemu/chapter.sgml 1.136 -> 1.139 mirrors/chapter.sgml 1.458 -> 1.464 multimedia/chapter.sgml 1.130 -> 1.132 network-servers/chapter.sgml 1.116 -> 1.118 vinum/chapter.sgml 1.46 -> 1.47 virtualization/chapter.sgml 1.17 -> 1.19 x11/chapter.sgml 1.190 -> 1.194 Obtained from: The FreeBSD Simplified Chinese Project --- .../books/handbook/filesystems/chapter.sgml | 42 ++++++++++++++-------- 1 file changed, 27 insertions(+), 15 deletions(-) (limited to 'zh_CN.GB2312/books/handbook/filesystems') diff --git a/zh_CN.GB2312/books/handbook/filesystems/chapter.sgml b/zh_CN.GB2312/books/handbook/filesystems/chapter.sgml index e5b31d2596..a38c97c27c 100644 --- a/zh_CN.GB2312/books/handbook/filesystems/chapter.sgml +++ b/zh_CN.GB2312/books/handbook/filesystems/chapter.sgml @@ -1,6 +1,6 @@ @@ -100,7 +100,7 @@ - Z 文件系统 + Z 文件系统 (ZFS) Z 文件系统是由 &sun; 开发使用存储池方法的新技术。 这就是说只有在需要存储数据的时候空间才会被使用。 @@ -136,7 +136,7 @@ 既然大部份的驱动都有以模块的形式存在,它们就可以很容易的通过 /boot/loader.conf 加载。 - i386 构架的用户应在内核配置文件中加入以下的选项, + &i386; 构架的用户应在内核配置文件中加入以下的选项, 重新编译内核并重启机器: options KVA_PAGES=512 @@ -177,18 +177,19 @@ vfs.zfs.vdev.cache.size="5M" &prompt.root; echo 'zfs_enable="YES"' >> /etc/rc.conf &prompt.root; /etc/rc.d/zfs start - 这份文档剩余的部分假定系统中有2块 + 这份文档剩余的部分假定系统中有 3 块 SCSI 磁盘可用, 它们的设备名分别为 - da0 - 和 da1。 + da0, + da1 + 和 da2IDE 硬件的用户可以使用 ad 代替 SCSI 单个磁盘存储池 - 在单个磁盘上创建 ZFS, + 在单个磁盘上创建一个简单, 非冗余的 ZFS, 使用 zpool 命令: &prompt.root; zpool create example /dev/da0 @@ -312,14 +313,22 @@ example/data 17547008 0 17547008 0% /example/data <acronym>ZFS</acronym> RAID-Z - 正如前文中所提到的,这一章节将假设存在两个 + 正如前文中所提到的,这一章节将假设存在 3 个 SCSI 设备, - da0 和 - da1。 - 使用如下的命令创建一个 RAID-Z - 存储池: + da0da1 + 和 da2 (或者 ad0 + 和超出此例使用了 IDE 磁盘)。 使用如下的命令创建一个 + RAID-Z 存储池: - &prompt.root; zpool create storage raidz da0 da1 + &prompt.root; zpool create storage raidz da0 da1 da2 + + &sun; 推荐在一个 RAID-Z + 配置中使用的磁盘数量为 3 至 9 块。 + 如果你要求在单独的一个存储池中使用 10 块或更多的磁盘, + 请考虑分拆成更小 RAID-z 组。 + 如果你只有 2 块磁盘, 并仍然需要冗余, + 请考虑使用 ZFS 的 mirror 特性。 + 更多细节请参考 &man.zpool.8; 手册页。 zpool storage 至此就创建好了。 可以如前文提到的那样使用 &man.mount.8; 和 &man.df.1; 确认。 @@ -395,8 +404,8 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 2026030 235240 1628708 13% / devfs 1 1 0 100% /dev /dev/ad0s1d 54098308 1032826 48737618 2% /usr -storage 17547008 0 17547008 0% /storage -storage/home 17547008 0 17547008 0% /home +storage 26320512 0 26320512 0% /storage +storage/home 26320512 0 26320512 0% /home 这样就基本完成了 RAID-Z 的配置了。使用夜间 &man.periodic.8; @@ -440,6 +449,7 @@ config: raidz1 DEGRADED 0 0 0 da0 ONLINE 0 0 0 da1 OFFLINE 0 0 0 + da2 ONLINE 0 0 0 errors: No known data errors @@ -468,6 +478,7 @@ config: raidz1 ONLINE 0 0 0 da0 ONLINE 0 0 0 da1 ONLINE 0 0 0 + da2 ONLINE 0 0 0 errors: No known data errors @@ -511,6 +522,7 @@ config: raidz1 ONLINE 0 0 0 da0 ONLINE 0 0 0 da1 ONLINE 0 0 0 + da2 ONLINE 0 0 0 errors: No known data errors -- cgit v1.2.3