> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> サーバー設定で定義されたディスクに関する情報を含むシステムテーブル

# system.disks

<Info>
  **ClickHouse Cloud でのクエリ**

  このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータを完全に把握するには、`clusterAllReplicas` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

[サーバー設定](/ja/reference/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-multiple-volumes_configure)で定義されたディスクに関する情報を含みます。

<div id="columns">
  ## カラム
</div>

* `name` ([String](/ja/reference/data-types)) — サーバー設定内のディスク名。
* `path` ([String](/ja/reference/data-types)) — ファイルシステム内のマウントポイントへのパス。
* `free_space` ([UInt64](/ja/reference/data-types)) — ディスク上の空き容量 (バイト単位) 。
* `total_space` ([UInt64](/ja/reference/data-types)) — ディスクの総容量 (バイト単位) 。
* `unreserved_space` ([UInt64](/ja/reference/data-types)) — 予約に使用されていない空き容量 (free\_space から、現在実行中のマージ、INSERT、その他のディスク書き込み操作で確保されている予約サイズを差し引いたもの) 。
* `keep_free_space` ([UInt64](/ja/reference/data-types)) — ディスク上で空きのまま維持すべき容量 (バイト単位) 。ディスク設定の keep\_free\_space\_bytes パラメータで定義されます。
* `type` ([String](/ja/reference/data-types)) — このディスクがデータを保存する場所を示すディスクの種類。RAM、ローカルドライブ、またはリモートストレージです。
* `object_storage_type` ([String](/ja/reference/data-types)) — ディスクの種類が object\_storage の場合のオブジェクトストレージの種類。
* `metadata_type` ([String](/ja/reference/data-types)) — ディスクの種類が object\_storage の場合のメタデータストレージの種類。
* `is_encrypted` ([UInt8](/ja/reference/data-types)) — このディスクが基盤となるデータを暗号化するかどうかを示すフラグ。
* `is_read_only` ([UInt8](/ja/reference/data-types)) — このディスクでは読み取り操作のみ実行できることを示すフラグ。
* `is_write_once` ([UInt8](/ja/reference/data-types)) — ディスクが write-once かどうかを示すフラグ。つまり、このディスクへの BACKUP はサポートしますが、このディスク上の MergeTree テーブルへの INSERT はサポートしません。
* `is_remote` ([UInt8](/ja/reference/data-types)) — このディスクに対する操作でネットワーク通信が発生するかどうかを示すフラグ。
* `is_broken` ([UInt8](/ja/reference/data-types)) — ディスクが破損しているかどうかを示すフラグ。破損したディスクの容量は 0 になり、使用できません。
* `cache_path` ([String](/ja/reference/data-types)) — ディスクがキャッシュをサポートしている場合の、ローカルドライブ上のキャッシュディレクトリへのパス。

<div id="example">
  ## 例
</div>

```sql theme={null}
SELECT * FROM system.disks;
```

```response theme={null}
┌─name────┬─path─────────────────┬───free_space─┬──total_space─┬─keep_free_space─┐
│ default │ /var/lib/clickhouse/ │ 276392587264 │ 490652508160 │               0 │
└─────────┴──────────────────────┴──────────────┴──────────────┴─────────────────┘

1 rows in set. Elapsed: 0.001 sec.
```
