Linux LVM磁盘分区管理
源文档地址:https://www.2daygeek.com/create-lvm-storage-logical-volume-manager-in-linux/ https://s2.loli.net/2023/03/15/pJ3cE9fsOM1uyGK.png
1. 创建PV
创建前/dev/sdb不能分区,如果已经分区,使用fdisk /dev/sdb 删除分区 # pvcreate /dev/sdb /dev/sdc WARNING: dos signature detected on /dev/sdb at offset 510. Wipe it? : y Wiping dos signature on /dev/sdb. WARNING: dos signature detected on /dev/sdc at offset 510. Wipe it? : y Wiping dos signature on /dev/sdc. Physical volume "/dev/sdb" successfully created. Physical volume "/dev/sdc" successfully created. # pvdisplay --- Physical volume --- PV Name /dev/sda2 VG Name openeuler PV Size
页:
[1]