1.问题描述
[root@zabbixagent1 admin]# pvcreate /dev/sdb /dev/sdc
Device /dev/sdc excluded by a filter.
2.问题分析
由于之前对/dev/sdc
磁盘进行过分区,磁盘标志类型为gpt
,所以扩容卷组时检测到分区中已存在分区表,于是放弃新建,遂报错:Device /dev/sdc excluded by a filter.
设备/dev/sdc已被过滤器过滤。
解决方案
[root@zabbixagent1 admin]# parted /dev/sdc
GNU Parted 3.1
使用 /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdc: 3221MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name 标志
(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) q
信息: You may need to update /etc/fstab.
[root@zabbixagent1 admin]# pvcreate /dev/sdb /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/sdb" successfully created.
Physical volume "/dev/sdc" successfully created.
[root@zabbixagent1 admin]#