检查依赖包
rpm -qa | grep lvm2
rpm -qa | grep parted
parted -s /dev/sdb mklabel gpt
parted -s /dev/sdb primary 0% 100%
parted -s /dev/sdb ttoggle 1 lvm
pvcreate /dev/sdb1
vgcreate nan /dev/sdb1
lvcreate -L 10G data nan
mkfs.ext4 /dev/nan/data
mkdir -p /data
cat /etc/fstab
/dev/nan/data /data /ext4 defaults 0 1
mount -a
标签:parted,nan,dev,sdb,磁盘分区,data From: https://www.cnblogs.com/nanruosen/p/17122097.html