Share via


fsutil resource

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows 10、Windows Server 2012 R2、Windows 8.1、Windows Server 2012、Windows 8

建立次要交易式資源管理員、啟動或停止交易式資源管理員,或顯示交易式資源管理員的相關資訊,並修改下列行為:

  • 預設交易式資源管理員是否會在下一次掛接時清除其交易式中繼資料。

  • 指定的交易式資源管理員優先考慮一致性而不是可用性。

  • 指定的交易資源管理員優先考慮可用性而不是一致性。

  • 執行中交易式資源管理員的特性。

語法

fsutil resource [create] <rmrootpathname>
fsutil resource [info] <rmrootpathname>
fsutil resource [setautoreset] {true|false} <Defaultrmrootpathname>
fsutil resource [setavailable] <rmrootpathname>
fsutil resource [setconsistent] <rmrootpathname>
fsutil resource [setlog] [growth {<containers> containers|<percent> percent} <rmrootpathname>] [maxextents <containers> <rmrootpathname>] [minextents <containers> <rmrootpathname>] [mode {full|undo} <rmrootpathname>] [rename <rmrootpathname>] [shrink <percent> <rmrootpathname>] [size <containers> <rmrootpathname>]
fsutil resource [start] <rmrootpathname> [<rmlogpathname> <tmlogpathname>
fsutil resource [stop] <rmrootpathname>

參數

參數 描述
create 建立次要交易式資源管理員。
<rmrootpathname> 指定交易式資源管理員根目錄的完整路徑。
info 顯示指定的交易式資源管理員資訊。
setautoreset 指定預設交易式資源管理員是否會在下次掛接時清除交易中繼資料。
  • true - 指定交易資源管理員預設會在下次掛接時清除交易中繼資料。
  • false - 指定交易資源管理員預設不會在下次掛接時清除交易中繼資料。
<defaultrmrootpathname> 指定磁碟機名稱,後面跟著冒號。
setavailable 指定交易式資源管理員會優先考慮可用性而不是一致性。
setconsistent 指定交易式資源管理員會優先考慮一致性而不是可用性。
setlog 變更已執行之交易式資源管理員的特性。
growth 指定交易式資源管理員記錄可以成長的量。

growth 參數可以指定如下:

  • 容器數量,使用格式:<containers> containers
  • 百分比,使用格式:<percent> percent
<containers> 指定交易式資源管理員所使用的資料物件。
maxextent 指定指定交易式資源管理員的容器數量上限。
minextent 指定指定交易式資源管理員的容器數量下限。
mode {full|undo} 指定記錄所有交易 (full)或只記錄回復事件 (undo)。
rename 變更交易式資源管理員的 GUID。
shrink 指定交易式資源管理員記錄可自動減少的百分比。
size 將交易式資源管理員的大小指定為指定的容器數量。
start 啟動指定的交易式資源管理員。
停止 停止指定的交易式資源管理員。

範例

若要設定 c:\test 所指定之交易式資源管理員的記錄檔,以自動成長五個容器,請輸入:

fsutil resource setlog growth 5 containers c:test

若要設定 c:\test 所指定之交易式資源管理員的記錄檔設定為自動成長 2%,請輸入:

fsutil resource setlog growth 2 percent c:test

若要指定預設的交易式資源管理員將在磁碟機 C 上的下次掛接時清除交易中繼資料,請輸入:

fsutil resource setautoreset true c:\