??? ??????????????? Solaris Express Developer Edition 5/07 ???????????? ????????? ZFS ????????? ?????? ???????????????.
??????????????? ZFS ????????? ?????? ?????? – zfs rename-r ????????? ???????????? ?????? ZFS ?????? ?????? ????????? ???????????? ????????? ??????????????? ????????? ??? ????????????.
?????? ??????, users/home@today?????? ZFS ?????? ????????? ????????? ???????????? ?????? ??? ?????? ??? ????????? ???????????? ?????? ????????? ????????? users/home/@yesterday??? ???????????????.
???????????? ??????????????? ????????? ????????? ??? ?????? ????????? ????????? ???????????????.
GZIP ?????? ?????? ?????? – ZFS ?????? ???????????? lzjb ???????????? ????????? 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 |
?????? ????????? ?????? 1, 2 ?????? 3?????????. ???????????? 1?????????. ????????? ????????? ????????? ?????? ?????? RAID-Z ??????????????? ?????? ?????? ??? ?????? ????????? ???????????????.
ZFS ????????? ???????????? ????????? ?????? ??? ???????????? ??? ?????? ??? ?????? ????????? ????????? ????????????.
?????? ZFS ????????? ?????? ????????? ??????(????????? ??????)??? ?????? ?????? ?????? ?????? ?????? ??????????????? ????????? ??? ???????????? ????????? ?????? ????????? ???????????????.
????????? ???????????? ????????? ??? ?????? ???????????? ????????? ????????? ???????????????.
????????? ?????? ????????? ?????? ?????? ????????? ????????? ????????? ?????? ????????? ????????? ??? ????????????.
????????? ????????? ??? ?????? ??????( zpool status) – zpool status - v ????????? ???????????? ??????????????? ????????? ???????????? ?????? ????????? ????????? ??? ????????????. ???????????? find -inum ????????? ???????????? ????????? Inode ???????????? ?????? ????????? ???????????? ????????????.
ZFS ?????? ????????? ?????? ?????? – ?????? ????????? ?????? ??????????????? ?????????????????????. ZFS ?????? ????????? ????????? ?????? /etc/dfs/dfstab??? ?????? ????????? ?????? ????????? ????????? ????????? ????????? sharemgr ????????? ???????????? ZFS ?????? ????????? ????????? ??? ????????????. ?????? ????????? ?????? ????????? sharemgr ????????? ???????????? ?????? ??? ????????? ??? ????????????. ZFS ????????? zfs ?????? ???????????? ???????????? ???????????????.
?????? ?????????????????? ??????????????? ZFS ?????? ???????????? ZFS sharenfs ????????? ???????????? ZFS ?????? ???????????? ????????? ??? ????????????. ?????? ?????? ????????? ????????????.
# zfs set sharenfs=on tank/home |
?????? ????????? sharemgr add-share ?????? ????????? ???????????? zfs ?????? ???????????? ZFS ?????? ???????????? ????????? ??? ????????????. ?????? ?????? ????????? ????????????.
# 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 |
?????? ?????? sharemgr ????????? ???????????? ZFS ????????? ????????? ??? ????????????. ?????? ?????? sharemgr??? ???????????? ?????? ZFS ?????? ???????????? nosuid ????????? ???????????? ????????? ?????? ?????????. 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 ????????? shareiscsi ????????? ???????????? ZFS ????????? Solaris iSCSI ?????? ????????? ????????? ??? ????????????. ??? ????????? ???????????? Solaris iSCSI ????????? ???????????? ???????????? ????????? ??? ????????????. ?????? ?????? ????????? ????????????.
# 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 ????????? ??????????????? ???????????????. Solaris iSCSI ????????? ??????????????? ?????? ????????? ????????? System Administration Guide: Devices and File Systems??? 14??? Configuring Solaris iSCSI Targets and Initiators (Tasks)??? ??????????????????.
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 ????????? ?????? ???????????? F ????????? ???????????? ???????????? ??? ?????? ?????? ??????????????? ?????? ???????????? ?????? ????????? ??? ????????????. ????????? ????????? ????????? ????????? ????????? ?????? ????????? ?????? ???????????? ????????? ?????? ??? ????????? ???????????? ??? ??? ????????????.
????????? ZFS ????????? – ????????? ???????????? ????????? ??? ????????????. zfs snapshot ????????? ???????????? ?????? ????????? ???????????? ?????? ?????? -r ????????? ???????????? ?????? ?????? ?????? ???????????? ???????????? ??????????????? ?????? ??? ????????????. ?????? -r ????????? ???????????? ????????? ?????? ??? ?????? ?????? ???????????? ??????????????? ????????? ???????????????.
????????? ????????? ????????? ?????? ????????? ????????? ZFS Administration Guide??? ??????????????????.