请问透过最小安装之後,补了 lvm 套件. 最後执行 vgcreate 出现错误,有解吗? CentOS 7 用最小安装完後! 想要使用 lvm 功能. 就安装所欠缺套件? # yum install system-storage-manager # yum install lvm2.x86_64 启动服务! # systemctl enable lvm2-lvmetad.service # systemctl start lvm2-lvmetad.service 开始: # pvcreate /dev/sda4 ---> ok # vgcreate vg_01 /dev/sda4 Parse error at byte 504 (line 24): unexpected token Error parsing metadata for VG vg_01. Can't get lock for vg_01. Internal error: Volume Group vg_01 was not unlocked 就失败了. 请问要如何解决! 请问 lvm 相关服务是否只要开启 如下:就可以正常工作. # systemctl list-unit-files lvm2-lvmetad.service enabled lvm2-monitor.service enabled lvm2-pvscan@.service static 谢谢 [root@~]# fdisk -l WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/sda: 1198.0 GB, 1197998080000 bytes, 2339840000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: gpt # Start End Size Type Name 1 2048 411647 200M EFI System EFI System Partition 2 411648 61851647 29.3G Microsoft basic 3 61851648 66045951 2G Linux swap 4 66045952 2339839966 1.1T Linux LVM [root@~]# pvscan PV /dev/sda4 lvm2 [1.06 TiB] Total: 1 [1.06 TiB] / in use: 0 [0 ] / in no VG: 1 [1.06 TiB] [root@~]# vgs No volume groups found # vgscan Reading all physical volumes. This may take a while... No volume groups found 终於解决了,因要指定 pm size 才会成功. # vgcreat -s 4M vg_01 /dev/sda4 (责任编辑:IT) |