Playbooks |
---|
openshift-expand-pv/config.yml |
Create a volume and mount under /mnt/local-storage for each node.
vgcreate local-volume /dev/sdb
lvcreate -L 10G -n disk1 local-volume
mkfs.ext4 /dev/local-volume/disk1
mkdir -p /mnt/local-storage/local-volume/disk1
mount /dev/local-volume/disk1 /mnt/local-storage/local-volume/disk1
chcon -R unconfined_u:object_r:svirt_sandbox_file_t:s0 /mnt/local-storage/
With Ansible Check: Provision LVM