比較好理解的介紹
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所替換
後面的內容只是簡單操作了下,沒進行深入的研究,基本懂了,生產環境中用到的話再看。