Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

第 13 章 ZFS

目录

13.1. 初始化
13.2. Creating a Basic Filesystem
13.3. Creating a Storage Pool
13.3.1. Mirrored Pool
13.3.2. RAID-Z Pool
13.3.3. Querying Pool Status
13.3.4. Destroying Pools
13.4. Creating a Filesystem Hierarchy
13.4.1. Creating a Filesystem
13.4.2. Setting Quotas
13.4.3. Setting Reservations
13.4.4. Querying Filesystem Information
13.4.5. Renaming a Filesystem
13.4.6. Destroying a Filesystem
13.5. zfs mount/umount
13.5.1. Temporary Mount Properties
13.5.2. Mounting File Systems
13.5.3. Unmounting File Systems
13.5.4. Legacy Mount Points
13.6. Sharing ZFS File Systems
13.6.1. Controlling Share Semantics
13.6.2. Unsharing Filesystems
13.6.3. Sharing Filesystems
13.7. Device Management
13.7.1. Adding Devices to a Pool
13.7.2. Onlining and Offlining Devices
13.7.2.1. Taking a Device Offline
13.7.2.2. Bringing a Device Online
13.7.3. Replacing Devices
13.8. I/O Statistics
13.8.1. Virtual Device Statistics
13.9. Health Status
13.9.1. Basic Health Status
13.9.2. Detailed Health Status
13.10. Storage Pool Migration
13.10.1. Exporting a Pool
13.10.2. Importing Pools
13.11. Querying Properties
13.12. Backing Up and Restoring ZFS Data
13.12.1. Backing Up a ZFS Snapshot
13.12.2. Restoring a ZFS Snapshot
13.12.3. Remote Replication of a ZFS File System
13.13. ZFS Snapshots and Clones
13.13.1. ZFS Snapshots
13.13.1.1. Creating ZFS Snapshots
13.13.1.2. Destroying ZFS Snapshots
13.13.1.3. Renaming ZFS Snapshots
13.13.1.4. Displaying and Accessing ZFS Snapshots
13.13.1.5. Rolling Back to a Snapshot
13.13.2. ZFS Clones
13.13.2.1. Creating a Clone
13.13.2.2. Destroying a Clone
13.14. Emulated Volumes

13.1. 初始化

echo "zfs_enable=YES" >> /etc/rc.conf
echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf

freebsd# vi /etc/rc.conf
zfs_enable="YES"

freebsd# /etc/rc.d/zfs faststart
		

另一种临时启动方法

# /etc/rc.d/zfs onestart