# zpool create tank mirror c0t0d0 c0t0d1
freebsd# zpool create tank mirror ad1 ad3 freebsd# zpool status tank pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 ad1 ONLINE 0 0 0 ad3 ONLINE 0 0 0 errors: No known data errors
freebsd# zpool create zfs raidz ad1 ad3 freebsd# zpool status zfs pool: zfs state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM zfs ONLINE 0 0 0 raidz1 ONLINE 0 0 0 ad1 ONLINE 0 0 0 ad3 ONLINE 0 0 0 errors: No known data errors
You can see that your pool was successfully created by using the zpool list command:
freebsd# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT zfs 3.97G 234K 3.97G 0% ONLINE -
Pools are destroyed by using the zpool destroy command. This command destroys the pool even if it contains mounted datasets.
# zpool destroy tank
Destroying a Pool With Faulted Devices
# zpool destroy tank cannot destroy 'tank': pool is faulted use '-f' to force destruction anyway # zpool destroy -f tank
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。