/dev/sdb 提示 Device /dev/sdb excluded by a filter解决办法

疑难杂症   运维技术  


[root@localhost etc]# pvcreate /dev/sdb 
Device /dev/sdb excluded by a filter  


[root@localhost etc]# blkid 
/dev/sdb: PTTYPE="gpt" 
/dev/sdc: PTTYPE="gpt" 
/dev/sdd: PTTYPE="gpt" 
/dev/sdf: UUID="SvYD8p-R0vi-E1IF-tSWn-XlLT-dMJT-atrfyc" TYPE="LVM2_member" 
/dev/sde: UUID="kU0J7M-Huhf-3NGm-Fc2y-5sRs-1Flj-yAuFSY" TYPE="LVM2_member" 
/dev/mapper/centos-root: UUID="950c61e1-4cdf-461e-8713-195715c0c156" TYPE="xfs" 


[root@localhost etc]# parted /dev/sdb
GNU Parted 3.1  
Using /dev/sdb  
Welcome to GNU Parted! Type 'help' to view a list of commands.  
(parted) mklabel msdos
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?  
Yes/No? yes  
(parted) quit                                                             
Information: You may need to update /etc/fstab.  


[root@localhost etc]# pvcreate /dev/sdb                                   
WARNING: dos signature detected on /dev/sdb at offset 510. Wipe it? [y/n]: yes  
  Wiping dos signature on /dev/sdb.
  Physical volume "/dev/sdb" successfully created.