---
name: "mdcreate"
section: "8"
platform: "linux"
package: "raidtools"
version: "0.42-33"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/mdcreate"
---

# mdcreate(8)

creates a mdtab entry

## NAME

mdcreate - creates a mdtab entry

## SYNOPSYS

**mdcreate** \[-cxk\] \[-fx\] personality md\_dev dev0 dev1 ...

## DESCRIPTION

mdcreate sets up a mdtab entry, and adds some checksum informations to insure consistency of the virtual device.

## OPTIONS

- *-cn*

  Set the chunk size as **PAGE\_SIZE \<\< n**. You can also set the chunk size in kilobytes with **-cxk** where x is a power of 2.

- *-fn*

  (raid-1 only)\
   Set the maximum fault number as **n**.

## EXAMPLES

Currently, usable personalities are **linear, raid0 & raid1**. To create a mdtab entry for a raid0 device using 8k chunks, use :

**/sbin/mdcreate -c8k raid0 /dev/md0 /dev/sdb1 /dev/sdc1**
