Linux|RedHat/CentOS挂载LVM磁盘

【Linux|RedHat/CentOS挂载LVM磁盘】可通过以下命令挂载LVM磁盘。注意,有些命令是根据上一命令的输出确定的,最好一句一句执行。

lsblk parted -s /dev/sdd mklabel msdos parted /dev/sdd print parted -s --align cylinder /dev/sdd mkpart primary 512B 550GB parted /dev/sdd print parted /dev/sdd set 1 lvm on parted /dev/sdd print lsblk pvcreate /dev/sdd1 pvs vgcreate VolData1 /dev/sdd1 vgs lvcreate -l 100%FREE VolData1 -n lv_data1 lvs mkfs.xfs /dev/VolData1/lv_data1 ls -l /dev/mapper/VolData1-lv_data1 mkdir /data1 cat /etc/fstab echo "/dev/mapper/VolData1-lv_data1 /data1 xfsdefaults 0 0" >> /etc/fstab cat /etc/fstab mount -a df -Ph

    推荐阅读