ユーザ用ツール

サイト用ツール


01_linux:13_storage:34_zfs_trim

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
01_linux:13_storage:34_zfs_trim [2022/02/28 20:10] – 作成 matsui01_linux:13_storage:34_zfs_trim [2022/03/04 01:56] (現在) matsui
行 14: 行 14:
  NAME        STATE     READ WRITE CKSUM  NAME        STATE     READ WRITE CKSUM
  zpool01     ONLINE               0  zpool01     ONLINE               0
-   sdb      ONLINE                (1% trimmed, started at Tue 01 Mar 2022 04:45:29 AM JST) +   sdb      ONLINE                (6% trimmed, started at Tue 01 Mar 2022 04:45:29 AM JST) 
-   sdc      ONLINE                (1% trimmed, started at Tue 01 Mar 2022 04:45:29 AM JST+   sdc      ONLINE                (untrimmed
-   sdd      ONLINE                (0% trimmed, started at Tue 01 Mar 2022 04:45:29 AM JST)+   sdd      ONLINE                (untrimmed)
 </code> </code>
  
行 31: 行 31:
 | -s |--suspend|指定されたデバイス、またはなにも指定されていないなら、すべての望ましいデバイスで trim をサスペンドします。 \\ 1 つ以上のターゲットデバイスが無効であるか、または現在 trim されていないなら、コマンドは失敗し、あらゆるデバイスでサスペンドは起こりません。 \\ つぎに、trim は、関連するターゲットデバイスにフラグがない zpool trim を実行することによって再開することができます。| | -s |--suspend|指定されたデバイス、またはなにも指定されていないなら、すべての望ましいデバイスで trim をサスペンドします。 \\ 1 つ以上のターゲットデバイスが無効であるか、または現在 trim されていないなら、コマンドは失敗し、あらゆるデバイスでサスペンドは起こりません。 \\ つぎに、trim は、関連するターゲットデバイスにフラグがない zpool trim を実行することによって再開することができます。|
 | -w |--wait|デバイスが返る前に trim されることが終わるまで、待ちます。| | -w |--wait|デバイスが返る前に trim されることが終わるまで、待ちます。|
 +
 +
 +
 +===== Man =====
 +<color #ed1c24>※zpool tirmは手動の方が良いかもと思います。</color>
 +
 +
 +<code>
 +# man zpool
 +Be aware that automatic trimming of recently freed data blocks can put significant stress on the underlying storage devices.
 +This will vary depending of how well the specific device handles these commands.
 +For lower end devices it is often possible to achieve most of the benefits of automatic trimming by running an on-demand (manual) TRIM periodically using the zpool trim command.
 +</code>
 +
 {{tag>ZFS}} {{tag>ZFS}}
01_linux/13_storage/34_zfs_trim.1646079032.txt.gz · 最終更新: 2022/02/28 20:10 by matsui