天天看点

solaris ZFS文件系统

比较好理解的介绍

http://www.verydemo.com/demo_c318_i11992.html

oracle官方文档,很详尽,各种示例,各种故障,各种使用建议。

http://docs.oracle.com/cd/E26926_01/html/E25826/

虚拟机环境试验,原来的盘放系统还是USF格式,另加了俩盘做数据盘,做成ZFS的。

看一下序号:

bash-3.2# format
Searching for disks...
Inquiry failed for this logical diskdone
AVAILABLE DISK SELECTIONS:
       0. c0d0 <趚$褱@ cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c2t0d0 <VMware,-VMware Virtual -1.0  cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@0,0
       2. c2t1d0 <VMware,-VMware Virtual -1.0  cyl 1021 alt 2 hd 128 sec 32>
          /pci@0,0/pci15ad,1976@10/sd@1,0      

创建基本池

bash-3.2# zpool create tank c2t0d0 c2t1d0
'tank' successfully created, but with no redundancy; failure of one
device will cause loss of the pool      

删除

bash-3.2# zpool destroy tank      

在创建个镜像池

bash-3.2# zpool create tank mirror c2t0d0 c2t1d0      

raidz  最好三块以上吧

#zpool create tank raidz  *** *** ***      

默认挂载点我这显示的是/tank

添加tank存储池中的虚拟设备

#zpool add tank mirror c3t0d0 c4t0d0      

使设备离线

#zpool offline tank c1t0d0      

在线是online

#zpool online tank c1t0d0      
#zpool replace tank c0t0d0 c0t0d1 --c0t0d0被c0t0d1所替换      

继续阅读