-1407 在複製檔案失敗的時候出現
# sudo chflags -R nouchg {#資料夾名稱}更多參數說明 , 參考(二)
檢查硬碟Smart狀況
列出目前mount的硬碟有哪些
# df# diskutil list
# iostat
用brew 安裝smartmonitor
# brew install smartmontools
# pkg change-facet facet.locale.zh=True
                ZH_CN                    zh_CN.UTF-8
                ZH_CN.UTF-8              zh_CN.UTF-8
                ZH_HK                    zh_HK.UTF-8
                ZH_HK.UTF-8              zh_HK.UTF-8
                ZH_SG                    zh_SG.UTF-8
                ZH_SG.UTF-8              zh_SG.UTF-8
                ZH_TW                    zh_TW.UTF-8
                ZH_TW.UTF-8              zh_TW.UTF-8
                Zh_CN                    zh_CN.GB18030
                Zh_CN.GB18030            zh_CN.GB18030
                Zh_TW                    zh_TW.BIG5
                Zh_TW.big5               zh_TW.BIG5
# svccfg -s svc:/system/environment:init setprop environment/LANG = astring: \ zh_TW.UTF-8
# svcadm refresh svc:/system/environment
# svccfg -s svc:/system/environment:init listprop environment/LANG
# su 使用root身份
# vncserver 開啟服務
# vncserver -kill :1 關閉第一個服務
tar xzf netatalk-3.1.8.tar.gz
    cd netatalk-3.1.8
    ./configure  --without-ddp --with-init-style=solaris --prefix=/usr/local/netatalk-3.1.8
    make
    sudo -s     
    install  
參考來源pkgadd -d http://get.opencsw.org/now /opt/csw/bin/pkgutil -U /opt/csw/bin/pkgutil -y -i smartmontools /usr/sbin/pkgchk -L CSWsmartmontools # list files參考
pkg change-facet facet.version-lock.consolidation/sunpro/sunpro-incorporation=falseMaking usb bootable for Solaris from Windows. format usb FAT (not FAT32 OR NTFS) Go Oracle Solaris 11.3 Downloads - Installation from CD/DVD or USB and download x86 usb live media Go to Tools for OSForensics - ImageUSB - Write an image to multiple USB Flash Drives an download imageusb Install imageusb software When open Step 1 choose the usb unit you want make bootable Step 2 SELECT THE ACTION TO BE PERFOMED. Choose option WRITE TO USB DRIVE Step 3 SELECT THE IMAGE. when browse to find file image choose the extension option ALL FILES to find your file with extension *.usb Step 4 click WRITE and wait until the process finish. Thats it. reboot the computer and if everything went ok you are done.
zpool set autoexpand=on {#poolname}
往後替換硬碟的時候換成更大的硬碟,容量會自動增加,預設是關閉的。
列舉清單
zpool list
zpool status {#pool name} 
zpool status {#pool name} -x 顯示錯誤的pool
zpool status {#pool name} -v 顯示所有的pool資訊 
zpool clear {#pool name} {#device id} 清除單一錯誤硬碟的錯誤訊息
zpool clear {#pool name} 清除所有硬碟的錯誤訊息
zpool replace {#pool name} {#device id of faulty drive} {#device id of new drive}後者換前者
zpool replace {#pool name} {#device id of faulty drive} 自動找可用的硬碟來替換錯誤硬碟
hot spare等更多狀況之指令
設定pool的特性zfs set casesensitivity=mixed -o nbmand=on {#pool name}
smb分享 很清楚的一篇文章 smb分享 官方文件
安裝SMB service
pkg install service/file-system/smb
指定分享名稱
zfs set share=name={#share name},path={#pool path},prot=smb {#pool name} 
開啟smb分享
zfs set sharesmb=on {#pool name} 
啟用smb服務
svcadm enable -r smb/server
啟用idmapsvcadm enable idmap svcadm enable smb/client
加入windows群組 WORKGROUP
smbadm join -w {#workgroup-name} 
修改 /etc/pam.conf檔案,在最後一行加入
other password required pam_smb_passwd.so.1 nowarn
查看分享狀態
smbadm show-shares {#machine name} 
zfs get sharesmb {#poll name}smbadm enable-user {#user name}
mount 外部 smb
# tar -zxvf FSWpart.tar.gz 
# tar -zxvf FSWfsmisc.tar.gz 
# pkgadd -d . FSWpart 
# pkgadd -d . FSWfsmisc 衝突檔案選擇 yes 列出可用partition# iostat -En  建立資料夾,接著mount # mkdir /mnt/d 
# mount -F ntfs /dev/dsk/c5t0d0p3 /mnt/d   將mount target加入到 /dev/dsk中/dev/dsk/c5t0d0p2 - /mnt/c ntfs - yes - 
/dev/dsk/c5t0d0p3 - /mnt/d ntfs - yes -