创建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.

发表评论

后才能评论