You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Create DRBD Partitions on disk

The commands below assume that /dev/sdb will be used for the DRBD partition.

device=/dev/sdb
dd if=/dev/zero of=${device} obs=512 count=100
dd if=/dev/zero of=${device} obs=512 count=100 seek=$(( $(blockdev --getsz ${device}) -100 ))
partx -v -a ${device}
parted ${device} "mklabel gpt"
parted ${device} "mkpart primary 0% 100%"
partx -v -a ${device}
  • No labels