Kubernetes: Configuração dos Pré-Requisitos: Difference between revisions
(Criou a página com "= Procedimentos = == Configuração do Storage == Vamos criar o storage para o Component Pack. Alterar o seu disco, no meu caso '''/dev/sdb''' pvcreate '''/dev/sdb'''...") |
|||
Line 3: | Line 3: | ||
== Configuração do Storage == | == Configuração do Storage == | ||
Vamos criar o storage para o Component Pack. Alterar o seu disco, no meu caso '''/dev/sdb''' | 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''' | pvcreate '''/dev/sdb''' | ||
Line 9: | Line 14: | ||
vgcreate dockerVg '''/dev/sdb''' | vgcreate dockerVg '''/dev/sdb''' | ||
lvcreate -l 95%VG --wipesignatures y -n | lvcreate -l 95%VG --wipesignatures y -n thinpoolLv dockerVg | ||
lvcreate -l 1%VG --wipesignatures y -n | 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/thinpoolv --poolmetadata dockerVg/thinpoolmetaLv | ||
cat > /etc/lvm/profile/dockerVg- | cat > /etc/lvm/profile/dockerVg-thinpoolLv.profile << EOF | ||
activation { | activation { | ||
thin_pool_autoextend_threshold=80 | thin_pool_autoextend_threshold=80 | ||
Line 22: | Line 27: | ||
EOF | EOF | ||
lvchange --metadataprofile dockerVg- | lvchange --metadataprofile dockerVg-thinpoolLv dockerVg/thinpoolLv | ||
lvs -o+seg_monitor | lvs -o+seg_monitor | ||
mkdir -p /var/lib/docker | mkdir -p /var/lib/docker | ||
= Ver também = | = Ver também = |
Revision as of 13:37, 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/thinpoolv --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