Lvm逻辑卷

使用lvm 逻辑卷
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.
[root@prometheus-tke ~]# vgcreate vgmoint /dev/vdd  /dev/vde  
  Volume group "vgmoint" successfully created
You have mail in /var/spool/mail/root
[root@prometheus-tke ~]# lvcreate -l 100%FREE  vgmoint 
  Logical volume "lvol0" created.
You have mail in /var/spool/mail/root

image-20200529103314704

image-20200529103336876

image-20200529103352568

挂载

mount /dev/vgmoint/lvol0  /var/lib/monitoring  
查看UUID 
blkid  
将UUID 写入到/etc/fstab 中即可
comments powered by Disqus