正确的lvm操作步骤
pvcreate /dev/vdb
pvs
vgcreate -h
man vgcreate
vgcreate data_vg /dev/vdb
vgs
man lvcreate
lvcreate --size 1000G -n log_lv data_vg
lvs
ls /dev/mapper/
mkfs.ext4 /dev/mapper/data_vg-log_lv
echo "/dev/mapper//data_vg-log_lv /data ext4 defaults 0 0" >> /etc/fstab

异常的lvm操作步骤
pvcreate /dev/vdb
vgcreate logdata_vg /dev/vdb
lvcreate --size 1000G -n lv_log logdata_vg
parted -s /dev/mapper/logdata_vg-lv_log print
parted -s /dev/vdb print
parted /dev/mapper/logdata_vg-lv_log
mkfs.ext4 /dev/mapper/logdata_vg-lv_logp1
mount /dev/mapper/logdata_vg-lv_logp1 /data
echo "/dev/mapper/logdata_vg-lv_log /data ext4 defaults 0 0" >> /etc/fstab
由于多了parted分区操作导致每次重启后挂载目录的分区不存在