当做LVM逻辑卷,创建vg是报以下错误
[root@master ~]# vgextend myvo /dev/sdc
Device /dev/sdc excluded by a filter.
导致问题的原因是添加的磁盘之前创建过分区,已经有了分区表,现在的虚拟机并不能识别磁盘的分区表,可以使用parted命令重做分区表
[root@master ~]# parted /dev/sdc
GNU Parted 3.1
使用 /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
警告: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?
是/Yes/否/No? yes
(parted) quit
信息: You may need to update /etc/fstab.
[root@master ~]# vgextend myvo /dev/sdc
WARNING: dos signature detected on /dev/sdc at offset 510. Wipe it? [y/n]: y
Wiping dos signature on /dev/sdc.
Physical volume "/dev/sdc" successfully created.
Volume group "myvo" successfully extended