lvm的邏輯卷通過parted分區重啓後消失

正確的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/fstabapp

異常的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分區操做致使每次重啓後掛載目錄的分區不存在ide

相關文章
相關標籤/搜索