创建pv卷报错Device /dev/sdb2 excluded by a filter的解决方法
创建pv卷报错Device /dev/sdb2 excluded by a filter,原因大概是之前装的windows系统,改为了linux系统,无法找到分区表导致,需要重建下分区表。
具体操作如下:
[root@localhost ~]# 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.然后在重新分区,重新创建pv创建成功。
在创建的时候会提示是否擦除NTFS的签名,选择yes即可
[root@localhost ~]# pvcreate /dev/sdb1
WARNING: ntfs signature detected on /dev/sdb1 at offset 3. Wipe it? [y/n]: y
  Wiping ntfs signature on /dev/sdb1.
  Physical volume "/dev/sdb1" successfully created.声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
       
       
                





