一: Volume 參數調整 nas> vol options vol_name nosnap=on, nosnapdir=on, minra=off, no_atime_update=on, nvfail=off, snapmirrored=off, create_ucode=on, convert_ucode=on, maxdirsize=10470, fs_size_fixed=off, guarantee=volume, svo_enable=off, svo_checksum=off, svo_allow_rman=off, svo_reject_errors=off, no_i2p=off, fractional_reserve=100, extent=off, try_first=volume_grow 1) 由于snapshot為消耗一定的系統資源,在确定不使用snapshot的情況下,其中參數“nosnap=on”和“nosnapdir=on”在不使用snapshot情況下設定為“on”,如果Volume需要使用“snapshot”作為備件工具,這兩個參數需設定為“off”。 對于volume參數設定的更改,使用如下的指令: nas> vol options vol_name nosnap on 2)如果存儲是使用Aggregate的方式,(Aggregate--被定義為給卷(Volumes)配置設定空間的許多磁盤的池(pool)),對于aggregate的參數設定如下所示: nas> aggr options aggr_name root, diskroot, nosnap=on, raidtype=raid_dp, raidsize=16, snapmirrored=off, resyncsnaptime=60, fs_size_fixed=off, snapshot_autodelete=on, lost_write_protect=on 對于”nosnap=on”同樣表示aggregate不參用snapshot. 3 )可選最小預讀(Minra)控制了每個卷的資料預取或預讀特性。Minra是最小預讀的縮寫。 是以,設定 minra=on 表示應該在該卷标上進行最小預讀。OLTP 資料庫工作負荷主要是随機通路的,是以,預取是無效的,并且會浪費關鍵系統資源。預設時最小預讀關閉。要開啟最小預讀,完成下列操作: vol options <volname> minra on 4) 另外,通過抑制輸入端的通路更新,可以提高filer性能。如果您的環境有很重的讀流量并且在上能忽略“最後通路時間”在檔案上的錯誤,可以考慮開啟這一選件。這是維持其内部檔案資料和時間資訊的資料庫中的情況。 vol options <volname> no_atime_update on 資料庫保護 vol options volume_name nvfail off (改為 on) 5) 最優化檔案 wafl scan reallocate reallocate wafl scan rellocate vol or filer 6) 使用oplocks options iscsi.iswt.max_ios_per_session 256 options cifs.oplocks.enable on options cifs.tcp_windows_size 64240 options cifs.max_mpx 253 opitons cifs.oplocks.enable off options nfs.tcp_recvwindowsize 64240 options nfs.udp.xfersize 65536 options nfs.tcp.recvwindowsize 65536 options nfs.tcp.xfersize 65536 options iscsi.iswt.max_ios_per_session 256 options nfs.nfs_uncached_io=1 options wafl.default_security_style ntfs options cifs.restrict_anonymous.enable on options ssl.enable on options timed.sched 1m options timed.auto_adjst on options timed.min_skew 0 options timed.windows 5s options timed_sched 1h options raid.scrub.perf_impact high options raid.verify.per_impact high 7) flexshare priority set volume level=high priority set volume vol2 level=low system=low cache=reuse : priority on priority show level 的options 是配置在每個卷為基礎,可給于一個卷有高優先性資源或底 在每個卷的基礎的在配置 system 的options level 和 system 的options 包括: veryhign; hign; medium ; low; verylow cache 的options 是在每個卷的基礎上 它包括: reuse; keep; default 例如: priority set volume vol1 level=high priority show volume -v vol1 priority set volume vol2 level=low system=low cache=reuse priority show volume -v vol2 volume: vol2 enabled:on level:low system:low cache:reuse 預設配置: priority show default -v default: level:medium system:medium 改變default的配置: priority set default system=low priority set volume vol1 level=high system=med cache=reuse priority set volume dbvol level=veryhigh system=30 options raid.max_fill_holes.size 0 |