安装
yum install lvm2
创建pv
[root@prometheus-tke ~]# pvcreate /dev/vdd
WARNING: xfs signature detected on /dev/vdd at offset 0. Wipe it? [y/n]: y
Wiping xfs signature on /dev/vdd.
Physical volume "/dev/vdd" successfully created.
[root@prometheus-tke ~]# pvcreate /dev/vde
WARNING: xfs signature detected on /dev/vde at offset 0. Wipe it? [y/n]: y
Wiping xfs signature on /dev/vde.
Physical volume "/dev/vde" successfully created.
创建vg
[root@prometheus-tke ~]# vgcreate vgmoint /dev/vdd /dev/vde
Volume group "vgmoint" successfully created
You have mail in /var/spool/mail/root
创建lv
[root@prometheus-tke ~]# lvcreate -l 100%FREE vgmoint
Logical volume "lvol0" created.
You have mail in /var/spool/mail/root
挂载
mount /dev/vgmoint/lvol0 /var/lib/monitoring
查看UUID
blkid
将UUID 写入到/etc/fstab 中即可