Kubernetes: Configuração dos Pré-Requisitos: Difference between revisions
Line 18: | Line 18: | ||
lvcreate -l 1%VG --wipesignatures y -n thinpoolmetaLv dockerVg | lvcreate -l 1%VG --wipesignatures y -n thinpoolmetaLv dockerVg | ||
lvconvert -y --zero n -c 512K --thinpool dockerVg/ | lvconvert -y --zero n -c 512K --thinpool dockerVg/thinpoolLv --poolmetadata dockerVg/thinpoolmetaLv | ||
cat > /etc/lvm/profile/dockerVg-thinpoolLv.profile << EOF | cat > /etc/lvm/profile/dockerVg-thinpoolLv.profile << EOF |
Revision as of 13:38, 6 February 2019
Procedimentos
Configuração do Storage
1) Instalando os pacotes necessários
yum update yum -y install lvm2 device-mapper-persistent-data
2) Vamos criar o storage para o Component Pack. Alterar o seu disco, no meu caso /dev/sdb
pvcreate /dev/sdb vgcreate dockerVg /dev/sdb lvcreate -l 95%VG --wipesignatures y -n thinpoolLv dockerVg lvcreate -l 1%VG --wipesignatures y -n thinpoolmetaLv dockerVg lvconvert -y --zero n -c 512K --thinpool dockerVg/thinpoolLv --poolmetadata dockerVg/thinpoolmetaLv cat > /etc/lvm/profile/dockerVg-thinpoolLv.profile << EOF activation { thin_pool_autoextend_threshold=80 thin_pool_autoextend_percent=20 } EOF lvchange --metadataprofile dockerVg-thinpoolLv dockerVg/thinpoolLv lvs -o+seg_monitor mkdir -p /var/lib/docker
Ver também
- Mais Artigos sobre Connections
- HCL Connections: Administrando o Component Pack