Before you deploy Bare Metal Orchestrator as a high availability cluster, you must mount the secondary storage disk /dev/sdb1 to the file path /longhorn on each of the control plane nodes (CP1, CP2, and CP3). The storage mount file path is defined in the all.yaml file.
- Add a new device to your VM environment: .
- Create a new partition from the operating system level. Using root, run the following commands and create a new partition that will become /dev/sdb1:
fdisk /dev/sdb
- From the fdisk prompt, type n, then press Enter.
- Type p, then press Enter.
- Press Enter three times to accept the default values.
- Type w, then press Enter.
The partition is created on the disk. The format of the partition name is sd[a-z][1-9]
.
Create a file system and mount the secondary storage disk /dev/sdb1 to the /longhorn storage file path. Do the following on CP1, CP2, and CP3:
- Log in to the VM that will host the control plane node.
- Do one of the following:
-
For Ubuntu environments, run:
mkfs -t ext4 /dev/sdb1
mkdir -p /longhorn -
For Red Hat Enterprise Linux environments, run:
mkfs -t xfs /dev/sdb1
mkdir -p /longhornFor LVM based longhorn storage, run:
${USR_SBIN}/pvcreate /dev/sdb
${USR_SBIN}/vgcreate lhgrp01 /dev/sdb
${USR_SBIN}/lvcreate -l "100%FREE" -n lh01 lhgrp01
${USR_SBIN}/mkfs.xfs /dev/lhgrp01/lh01
${USR__BIN}/mkdir -p /longhorn
${USR__BIN}/mount -t auto /dev/lhgrp01/lh01 /longhorn
-
- For persistence, update /etc/fstab as follows: