linux 掛載(mount) cifs(windows網路)效能調整
mount cifs -o username="帳號",password="密碼",domain="網域",cache=loose <source dir> <dest dir>
這方式有可能造成多人正在存取檔案時, 我們存取失敗,但實測機率不高, 或許沒有很頻繁多人讀取
mount cifs -o username="帳號",password="密碼",domain="網域",cache=loose <source dir> <dest dir>
這方式有可能造成多人正在存取檔案時, 我們存取失敗,但實測機率不高, 或許沒有很頻繁多人讀取
實戰時, 讓restic透過rclone傳輸檔案, 約莫20萬個檔案, 將會導致記憶體不足, 目前看起來應該是--buffer-size需要設定,
已經有人反映,就只能等rclone 更新, 或是GO更新了
netsh interface portproxy add v4tov4 listenport=<本機port> listenaddress=<本機ip> connectport=<forward ip port> connectaddress=<forward ip>
先前曾寫過 (ESXi)如何自製加上客製驅動程式之iso檔案 一直都沒有問題
直到最近因需要重做esxi安裝檔, 出現 winerror 10054錯誤, https://twitter.com/vfrontde/status/998868087586934785 上面說明是PWOER SHELL 改用 TLS1.2 造成的
可改用離線版的製作方式, 把相關檔案先下載到本地端, 就可以避開線上製作造成WinError 10054的問題
# 安裝 vmware powercli ( powershell 需以管理者身分執行 )
set-executionpolicy unrestricted
Install-Module -Name VMware.PowerCLI
Import-Module VMware.ImageBuilder
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true
#設定變數 $StandardImageProfileName="ESXi-6.7.0-20200604001-standard" $CustImageProfileName="ESXi-6.7.0-20200604001-william-20200729" $CustVendorName="kafeiou.pw" #匯出原版esxi Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml Export-ESXImageProfile -ImageProfile $StandardImageProfileName -ExportToBundle -filepath "$StandardImageProfileName.zip" Remove-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml #加入相關檔案 Add-EsxSoftwareDepot "$StandardImageProfileName.zip" # 支援6.5,6.7 Add-EsxSoftwareDepot .\vibs\net55-r8168-8.045a-napi-offline_bundle.zip Add-EsxSoftwareDepot .\vibs\net-igb-5.3.2-99-offline_bundle.zip Add-EsxSoftwareDepot .\vibs\sata-xahci-1.42-1-offline_bundle.zip #設定(權限) New-EsxImageProfile -CloneProfile $StandardImageProfileName -name $CustImageProfileName -Vendor $CustVendorName Set-EsxImageProfile -Name $CustImageProfileName -ImageProfile $CustImageProfileName -AcceptanceLevel CommunitySupported #啟用額外功能 , 支援6.5,6.7 Add-EsxSoftwarePackage -ImageProfile $CustImageProfileName -SoftwarePackage "net55-r8168" Add-EsxSoftwarePackage -ImageProfile $CustImageProfileName -SoftwarePackage "net-igb" Add-EsxSoftwarePackage -ImageProfile $CustImageProfileName -SoftwarePackage "sata-xahci" #匯出客製esxi Export-ESXImageProfile -ImageProfile $CustImageProfileName -ExportToIso -filepath "$CustImageProfileName.iso"
3. 第三方來源
https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages
ps. 相關patch檔案下載
https://customerconnect.vmware.com/patch#search
原因就不多說了, windows , unix的new line定義不同
解法:
Project–>Setting->Working Copy -> EOL-Style-> As is(no conversion)
https://github.com/stascorp/rdpwrap
到上面網址下載最新版本(需要下載1.6.2(含)以上版本)
下載檔案解開後, 執行 install..bat (管理者權限執行)
執行完畢後,請順便將其中一個檔案(RDPWInst.exe),複製到c:\program files\rdp wrapper\
然後再到rdpwrap的issue區域看看有沒有自動更新的程序(因為rdp wrapper版本更新很慢,有人會做出自動更新的程序)
以我的例子 windows 10 版號 1909. OS Build 18363.592 , 須到這裡 https://github.com/stascorp/rdpwrap/pull/859 下載autoupdate-v07.09.2019.zip 這個檔案, 解開後複製到 c:\program files\rdp wrapper\ , 再執行autoupdate.bat(管理者權限執行) , 然後測試是否成功, 若成功,再到c:\program files\rdp wrapper\helper\ 底下執行開機自動update的程序,這樣就大功告成.
這個很吃版本號碼, 若windows 10版號更新, 可能需要再到網站下載最新的自動更新程序.
建議搭配windows update blocker 程式, 暫時不要讓windows 10自動更新
HKEY_LOCAL_MACHINE/SOFTWARE/Policies/Microsoft/Windows/WindowsUpdate/AU
將 UseWUServer 改成 0 關閉, 就可以安裝了,
安裝完畢記得改回1
PS. UseWUServer 應該是透過網域WSUS更新.
仿間都說為了要增進SSD效率與壽命, 必須確保trim功能是關閉的
MacOS
sudo trimforce enable
Windows
# cmd 以管理者權限執行 fsutil behavior set disabledeletenotify 0
Linux (複雜,先不弄)