日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Solaris 10下如何使用ZFS

ZFS,作為Solaris 10的下一代文件存儲解決方案,ZFS即Zettabyte File System,也叫動態(tài)文件系統(tǒng)Dynamic File System, 是第一個128位文件系統(tǒng),無限容量、自優(yōu)化、永遠數(shù)據(jù)一致、管理簡單:
- 支持POSIX文件系統(tǒng),應用無需移植
- 無限容量,比32/64位文件系統(tǒng)大16 billion billion倍
- 對于應用來說,ZFS像一個標準的POSIX文件系統(tǒng),無需移植 。
- 對于系統(tǒng)管理員來說,ZFS提供存儲池的模型,徹底消除了卷管理的概念,及其帶來的硬盤分區(qū)的問題,可以使所有文件系統(tǒng)利用存儲池的所有設備的訪問帶寬,100%在線維護 。
- 所有操作采用copy-on-write方式,硬盤狀態(tài)永遠有效,無需fsck 。
- 所有數(shù)據(jù)塊被64位校驗,防止數(shù)據(jù)癱瘓, 并且數(shù)據(jù)可做Raid,其中一個數(shù)據(jù)損壞可由另一數(shù)據(jù)修復 。
- 提供無限份的快照,提供磁盤限額
1. 檢查預裝OS,如無 ZFS包,則需安裝軟件包:
# pkginfo |grep SUNWzfs
# pkgadd -d .
The following packages are available:
1 SUNWzfs Zettabyte File System (ZFS)
(sparc) 11.10.0,REV=2004.12.26.02.38
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:1
...
Installation ofwas successful.
2. 建立storage pool:
# zpool create -f testpool mirror /dev/dsk/c0t1d0s0 /dev/dsk/c0t1d0s1
# zpool df testpool
Poolsizeused avail capacity
-------------------- ------ ------ ------ --------
testpool500M 56.0K500M 1%
# zpool vdevs -v testpool
mirror1
c0t1d0s0
c0t1d0s1
3. 建立文件系統(tǒng):
# zfs create testpool/user1
# zfs create testpool/user2
# mkdir -p /disk/user1 /disk/user2
# zfs mount testpool/user1 /disk/user1
# zfs mount testpool/user2 /disk/user2
# df -h -F zfs
文件系統(tǒng)大小用了可用 容量掛接在
testpool/user1484M 27K484M1%/disk/user1
testpool/user2484M 27K484M1%/disk/user2
4. 測試ZFS的讀寫變化:
# cp /etc/n* /disk/user1; cp /etc/m* /disk/user2
# df -h -F zfs
文件系統(tǒng)大小用了可用 容量掛接在
testpool/user1484M 60K484M1%/disk/user1
testpool/user2484M 123K484M1%/disk/user2
5. 增加新的存儲到storage pool,擴展ZFS:
# zpool add -f testpool mirror c0t1d0s3 c0t1d0s4
# zpool df testpool
Poolsizeused avail capacity
-------------------- ------ ------ ------ --------
testpool 1000M303K 1000M 1%
s6a# zpool vdevs -v testpool
mmirror1
c0t1d0s0
c0t1d0s1
mirror2
c0t1d0s3
c0t1d0s4
# df -h -F zfs
文件系統(tǒng)大小用了可用 容量掛接在
testpool/user1982M60K982M1%/disk/user1
testpool/user2982M 123K982M1%/disk/user2
6. 破壞storage pool硬盤的數(shù)據(jù),觀察ZFS中數(shù)據(jù)不受影響:
# dd if=/dev/urandom of=/dev/rdsk/c0t1d0s1 count=10000
10000 0 記錄進入
10000 0 記錄調(diào)出
# df -h -F zfs
文件系統(tǒng)大小用了可用 容量掛接在
testpool/user1982M60K982M1%/disk/user1
testpool/user2982M 123K982M1%/disk/user2
# diff /etc/nsswitch.conf /disk/user1/nsswitch.conf

文件系統(tǒng)管理,ZFS提供一個新的易于使用的自動管理的模型,降低復雜性,減少錯誤和實施的時間 。
數(shù)據(jù)安全和完整性,ZFS數(shù)據(jù)在任何時間都是一致的 。
對于資源利用,ZFS存儲池可為多個文件系統(tǒng)共享 。
增加靈活性,ZFS擴展或縮小是動態(tài)的,無需系統(tǒng)管理員介入。
【Solaris 10下如何使用ZFS】降低費用,可免除額外的卷管理的許可費用 。

    推薦閱讀