---
name: "vdoforcerebuild"
section: "8"
platform: "linux"
package: "vdo"
version: "8.3.1.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/vdoforcerebuild"
---

# vdoforcerebuild(8)

prepare a VDO device to exit read-only mode

## NAME

vdoforcerebuild - prepare a VDO device to exit read-only mode

## SYNOPSIS

**vdoforcerebuild** *filename*

## DESCRIPTION

**vdoforcerebuild** forces an existing VDO device to exit read-only mode and to attempt to regenerate as much metadata as possible.

*filename* must be the path of the VDODataLV as described in [**lvmvdo**(7)](/lvmvdo/7.md). Since [**lvchange**(8)](/lvchange/8.md) will only mount that as read-only, a writable version of that device must be manually created, as shown in the example below.

## OPTIONS

- **--help**

  Print this help message and exit.

- **--version**

  Show the version of vdoforcerebuild.

## EXAMPLE

```
# lvchange -ay vdo1/vdo0pool_vdata
# dmsetup table vdo1-vdo0pool_vdata > vdata.table
# lvchange -an vdo1/vdo0pool_vdata
# dmsetup create vdo1-vdo0pool_vdata --table "`cat vdata.table`"
# vdoforcerebuild /dev/mapper/vdo1-vdo0pool_vdata
# dmsetup remove vdo1-vdo0pool_vdata
```

## SEE ALSO

[**lvmvdo**(7)](/lvmvdo/7.md), [**lvchange**(8)](/lvchange/8.md), [**dmsetup**(8)](/dmsetup/8.md)
