比較好了解的介紹
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所替換