?? ???????? ?????????????? ?????????????????????? ?????????? ?????????????? ZFS ?? ?????????????? Solaris Express Developer Edition 5/07.
?????????????????????? ???????????????????????????? ?????????????? ZFS – ?????? ????????????-?????????????? ZFS ?????????? ???????????????????? ?????????????????????????? ???????????????? zfs rename -r.
????????????????, ?????????? ?????????????? ???????????? ???????? ???????????????? ???????????? ZFS ?? ?????????????????? users/home@today. ???? ?????????????????? ???????? ?????? ???????????? ?????????? ?????????????????????????? ?????????? ????????????????, ?????????????? ?????????? ???? users/home/@yesterday .
???????????? ???????????????????????? ?????????? ???????????????????????? ?????????? ????????????, ?????????????? ?????????? ?????????????????????????????? ????????????????????.
???????????????? ???????????? GZIP – ?? ???????????????????? ?? ???????????? lzjb ?????? ???????????????? ???????????? ZFS ?????????? ???????????????????? ???????????? gzip. ???????????? ?????????? ???????????????????? ?????? gzip (???? ??????????????????) ?????? gzip-N, ?????? N ?????????????????? ???????????????? ???? 1 ???? 9. ????????????:
# zfs create -o compression=gzip users/home/snapshots # zfs get compression users/home/snapshots NAME PROPERTY VALUE SOURCE users/home/snapshots compression gzip local # zfs create -o compression=gzip-9 users/home/oldfiles # zfs get compression users/home/oldfiles NAME PROPERTY VALUE SOURCE users/home/oldfiles compression gzip-9 local |
???????????????? ???????????????????? ?????????? ???????????????????????????????? ???????????? ZFS – ?????? ?????????????????? ???????????????????? ???????????????????? ???????????????? ?????????????? ZFS ?????????????????????????? ?????????????????????? ?????????????????? ?????? ???? ???????????? ????????????, ???????? ?????? ????????????????. ?????? ?????????????? ???????????????????? ditto blocks.
?????????????? ?? ?????????????? ?????????????? ?????????? ?????????? ?????????????????? ???????????????? ?????????????????????????? ?????????? ???????????????????????????????? ???????????? ?????? ???????????? ???????????????? ?????????????? ???????????????? zfs set copies. ????????????:
# zfs set copies=2 users/home # zfs get copies users/home NAME PROPERTY VALUE SOURCE users/home copies 2 local |
????????????????e ????????????????: 1, 2 ?????? 3. ???????????????? ???? ??????????????????: 1. ?????? ?????????? ???????????????? ?????????????????????????????? ???? ?????????????????? ?? ???????????????????????? ???????????? ????????, ????????????????, ?????? ???????????????????? ?????????????????? ?????? ?????????????????? RAID-Z.
???????????????? ?????????????????????????? ?????????? ???????????????????????????????? ???????????? ZFS ???????? ?????????????????? ????????????????????????:
???????????????????? ?????????????????????? ???????????? ?? ???????????????????? ?????????????????????? ???????????????????????????? ?????????? ???????????????????????? ?????????? ???????????? ??????????, ????????????????, ?????? ???????? ???????????????? (???????????????? ????????) ?????? ???????? ???????????????? ZFS;
???????????????????????????? ???????????? ????????????, ???????? ?? ???????????? ?????????????????????? ???????????? ???????????? ??????????;
???????????????? ???????????? ???????????? ?????????? ???????????????? ?????? ???????????? ???????????????? ??????????????, ???????????? ???? ?????????? ???????????????????????? ???????????? ???????? ?????????????????? ???????????????? ????????????.
?????????????????????????????????????? ???????????????????? ?? ?????????????? ???????? ?????????????????? ???????????????? ???????????? (zpool status) – ?????????????? zpool status - v ???????????????????????? ?????? ?????????????????????? ???????????? ???????????? ?? ?????????????????????? ????????????????. ?????????? ???????? ???????????????????? ???????????????????????? ?????????????? find -inum ?????? ?????????????????????? ???????? ???????????? ???? ???????????? ???????????? ???????????????????????? ?????????????????? ????????????????????????.
???????????????????? ???? ?????????????????????? ?????????????????????????? ???????????????? ???????????? ZFS – ?????????????????????????? ?????????????? ?????????????????????? ?????????????????????????? ???????????????? ????????????. ???????????????? ???? ????, ?????? ?????? ?????????????????????? ?????????????????????????? ???????????????? ???????????? ZFS ???? ?????????????????? ?????????????????? ???????????? ?????????????????? ??????????????, ???????????????? /etc/dfs/dfstab, ?????? ???????????????????? ???????????????????? ?????????????????????? ?????????????????????????? ZFS ?????????? ???????????????????????? ?????????????? sharemgr. ?????????????? sharemgr ?????????????????? ?????????????????? ?????????????????? ?? ?????????????????????????????????? ?????????????? ?????????????????????? ?????????????????????????? ?? ?????????????????????????????? ??????????????. ???????? ZFS ?????????????????????????? ???????????????????????? ?? ???????????? ?????????????????????? ?????????????????????????? zfs.
?????? ?? ?? ???????????????????? ????????????????, ?????? ?????????????????????? ?????????????????????????? ???????????????? ?????????????? ZFS ?????????? ?????????????????? ???????????????? ZFS sharenfs ???????? ??????????????. ????????????:
# zfs set sharenfs=on tank/home |
?????????? ?????? ?????????????????????? ?????????????????????????? ???????????????? ?????????????? ZFS ?? ???????????? zfs ?????????? ???????????? ?????????? ???????????????????? sharemgr add-share. ????????????:
# sharemgr add-share -s tank/data zfs # sharemgr show -vp zfs zfs nfs=() zfs/tank/data /tank/data /tank/data/1 /tank/data/2 /tank/data/3 |
?????????? ?????? ???????????????????? ?????????????????? ?????????????????????????? ?????????????????? ZFS ?????????? ?????????????????? ?????????????? sharemgr. ?? ?????????????????? ?????????????? ???????????????? ?????????????????????????? sharemgr ?????? ?????????????????? ???????????????? nosuid ?? ?????????????????? ???????????????????????? ???????????????? ???????????????? ZFS. ?????????? ???????????? ???????????? ZFS ?????????????? ?????????????????? ?????????????????????? /zfs.
# sharemgr set -P nfs -p nosuid=true zfs/tank/data # sharemgr show -vp zfs zfs nfs=() zfs/tank/data nfs=(nosuid="true") /tank/data /tank/data/1 /tank/data/2 /tank/data/3 |
???????????????????????????????????? ZFS ?? Solaris iSCSI – ?????? ZFS ?????????? ?????????????? ?????? ?????????????? ???????????????????? Solaris iSCSI ?????????? ?????????????????? ?????? ???????? ???????????????? shareiscsi. ???????? ?????????? ?????????????????? ???????????? ?????????????????? ?????????????? ???????????????????? iSCSI ?? Solaris. ????????????:
# zfs create -V 2g tank/volumes/v2 # zfs set shareiscsi=on tank/volumes/v2 # iscsitadm list target Target: tank/volumes/v2 iSCSI Name: iqn.1986-03.com.sun:02:984fe301-c412-ccc1-cc80-cf9a72aa062a Connections: 0 |
?????????? ???????????????? ???????????????? ???????????????????? iSCSI ?????????????????????????? ?????????????????? iSCSI. ?????? ?????????????????? ???????????????????? ???? ???????????????? ???????????????????? iSCSI Solaris ????. ?????????? 14, Configuring Solaris iSCSI Targets and Initiators (Tasks), ?? ?????????????????? System Administration Guide: Devices and File Systems .
?????? ?????????????????? ???????????????????????????? ???????????????????? ?? ?????????????????? ???????? ZFS ?? ???????????????? ???????????????? ???????????????????? iSCSI ????. ZFS Administration Guide .
???????????????????? ?????????????? ZFS
???????????????? ZFS xattr – ???????????????? xattr ?????????? ???????????????????????? ?????? ???????????????????? ?????? ?????????????????? ?????????????????????? ?????????????????? ?????? ???????????????????????? ???????????????? ?????????????? ZFS. ???????????????? ???? ?????????????????? – ????????????????.
???????????????? ZFS canmount – ???????????????? canmount ???????????????????????? ?????? ???????????????? ?????????????????????? ???????????????????????? ???????????? ???????????? ???????????????? zfs mount.
???????????????????????????????? ???????????????? ZFS – ?? ???????????????????? ?? ?????????????????????? ?????????????????????? ?????????????????? ZFS ???????????????????????? ???????????????????????????????? ????????????????, ?????????????? ?????????? ???????????????????????????? ?????? ???????????????? ???????????????????? ???????????????????? ?????? ???????????????????? ???????????????????? ???????????????? ?????????????? ZFS. ???????????????????????????????? ???????????????? ???? ???????????? ???? ?????????????????? ZFS, ???? ???? ?????????? ???????????????????????? ?????? ???????????????????? ???????????????????????????????? ???????????????????? ?? ?????????????? ????????????.
?????????????????? ?????????????? ?????? ???????????????? ???????????????? ???????????? ZFS – ???????????????? ?????????? ?????????????????? ???? ???????????? ?????????? ???????????????? ???????????????? ??????????????, ???? ?? ?????????????????????????????? ?? ???????????????? ????????????????.
?? ?????????????????? ???????????????? ?????????????? ?????????????????????????? ??????????????????:
# zfs create tank/home # zfs set mountpoint=/export/zfs tank/home # zfs set sharenfs=on tank/home # zfs set compression=on tank/home |
# zfs create -o mountpoint=/export/zfs -o sharenfs=on -o compression=on tank/home |
?????????????????????? ???????? ???????????????????? ???????????????? ?????????????? ZFS – ???????? ?????????????????? ?????????? ???????????? ???? ????????????, ?????????????????? ?????????? ?????????????? zfs get ?????????????? ???????????????????? ?????? ???????? ?????????????? ????????????. ?? ???????????????????? ???????????????? ???????????????? ???????????????????? ?????? ???????? ?????????????? ???????????? ?????? ???????????? ?????????????? zfs get ???????? ????????????????????. ????????????:
# zfs get -s local all tank/home atime off local tank/home/bonwick atime off local tank/home/marks quota 50G local |
?????????? ???????????????? zfs receive – ?????????? ???????????????? -F ?????????????? zfs receive ???????????????????????? ?????? ?????????????????????????????? ???????????? ???????????????? ?????????????? ???? ???????????????????? ???????????? ?????????? ?????????????????????? ?????????????????? ??????????????????. ???????? ???????????????? ?????????? ?????????????????????????? ?? ???????????? ?????????????????? ???????????????? ?????????????? ?? ???????????????????? ?????????? ???????????????? ???????????? ?? ?????????????????????????? ??????????????????.
?????????????????????? ???????????? ZFS – ???????????????????????????? ?????????????????????? ????????????. ?????? ???????????????? ???????????? ???????????????? ?????????????? ???????????????? zfs snapshot ???????????????? -r ?????????????????? ???????????????????? ?????????????? ???????????? ?????? ???????? ???????????????? ???????????????? ????????????. ?????????? ????????, ???????????????? -r ???????????????????? ?????????????? ?????? ???????????????? ???????????? ?????? ???????????????? ?????????????????????????? ????????????.
?????? ?????????????????? ???????????????????????????? ???????????????????? ???? ???????? ?????????????????????????????????????? ????. ZFS Administration Guide .