cache\_metadata\_size(8) System Manager's Manual cache\_metadata\_size(8)

# [NAME](#NAME)

**cache\_metadata\_size** - Estimate the size of the metadata device needed for a given configuration.

# [SYNOPSIS](#SYNOPSIS)

```
cache_metadata_size [options]
```

# [DESCRIPTION](#DESCRIPTION)

**cache\_metadata\_size** estimates the size of the metadata. Either **--nr-blocks**, or **--block-size** and **--device-size** must be specified.

# [OPTIONS](#OPTIONS)

[**--nr-blocks {natural}**](#nr_blocks)

Specify the number of cache blocks.

[**--block-size {sectors}**](#block_size)

Specify the size of each cache block in 512 byte sectors.

[**--device-size {sectors}**](#device_size)

Specify total size of the fast device used in the cache. In 512 byte sectors.

[**--max-hint-width {nr bytes}**](#max_hint_width)

Specify hint width.

```


    Cache policies use a per block 'hint' to record extra info (for instance


    hit counts).  At the moment all policies use a 4 byte hint


    width.  If you want to use a different hint width specify it with this


    switch.
```

# [EXAMPLE](#EXAMPLE)

$ **cache\_metadata\_size** **--nr-blocks** 10240

$ **cache\_metadata\_size** **--block-size** 128 **--device-size** 1024000

# [SEE ALSO](#SEE_ALSO)

[**cache\_dump**(8)](/man/enterprise-packages/thin-provisioning-tools/cache_dump.8), [**cache\_repair**(8)](/man/enterprise-packages/thin-provisioning-tools/cache_repair.8), [**cache\_restore**(8)](/man/enterprise-packages/thin-provisioning-tools/cache_restore.8)

# [AUTHOR](#AUTHOR)

Joe Thornber &lt;ejt@redhat.com&gt;, Heinz Mauelshagen &lt;heinzm@redhat.com&gt;

Device Mapper Tools System Manager's Manual

---

Document: cache_metadata_size(8) from thin-provisioning-tools 1.3.4-r3 (Chainguard OS)
