UAT Deploy Command

UAT Deploy Command

  • 环境准备
    • ROOT权限登陆
    • mount

环境准备

ROOT权限登陆

vim /etc/ssh/sshd_config

---------------------------
PermitRootLogin yes

systemctl restart sshd.service

mount

pvcreate /dev/vdb
vgextend vg00 /dev/vdb

lvcreate -l 50%free -n lv_data vg00

lvcreate -l 100%free -n lv_pcc vg00

mkfs.xfs /dev/vg00/lv_data
mkfs.xfs /dev/vg00/lv_pcc
mkdir /data
mount /dev/vg00/lv_data /data
mkdir /pcc
mount /dev/vg00/lv_pcc /pcc

cat >> /etc/fstab << EOF
/dev/vg00/lv_data      /data                    xfs     defaults        0 0
/dev/vg00/lv_pcc       /pcc                     xfs     defaults        0 0
EOF

cat /etc/fstab

mount -a

reboot

你可能感兴趣的:(PROJECT)