遇见Device /dev/sdb excluded by a filter如何解决

保哥有一台服务器,以前安装的是Windows2016操作系统。近期,业务部署需求发生改变,需要安装rhel7.6。安装完操作系统后,开始挂载剩余的存储空间。创建lv的时候提示:Device /dev/sdb excluded by a filter。

操作步骤

1,查看以前Windows2016服务器下的空闲分区。

[root@shizhanxia.com ~]# fdisk -l
Disk /dev/sdb: 4798.3 GB, 4798283776000 bytes, 9371648000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 1048576 bytes
Disk label type: gpt
Disk identifier: 58520033-4270-43FF-87E5-CA79567EC17F
# Start End Size Type Name
1 34 262177 128M Microsoft reser Microsoft reserved partition
Partition 1 does not start on physical sector boundary.
2 264192 9371645951 4.4T Microsoft basic Basic data partition

2,删除该分区/dev/sdb

[root@shizhanxia.com ~]# fdisk /dev/sdb
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d
Partition number (1,2, default 2):
Partition 2 is deleted
Command (m for help): d
Selected partition 1
Partition 1 is deleted
Command (m for help): w
The partition table has been altered!
[root@gctn-east-p01 ~]# pvcreate /dev/sdb
Device /dev/sdb excluded by a filter

解决方案

剩余内容需解锁后查看

您需要赞助解锁才能查看当前内容

赞助者赞助者免费
已付费?登录刷新

原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/1066.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
保哥的头像保哥
上一篇 2024年6月26日
下一篇 2024年6月26日

相关推荐

发表回复

登录后才能评论