扩容卷组报错:Device devsdc excluded by a filter.

vgextend_error_Device devsdc excluded by a filter
1.问题描述
vgextend myvg /dev/sdc # 将/dev/sdc磁盘不分区直接扩容至myvg卷组
# 报错: Device /dev/sdc excluded by a filter.
fdisk -l /dev/sdc # 查看磁盘标签类型
2.问题分析
由于之前对/dev/sdc磁盘进行过分区,磁盘标志类型为gpt,所以扩容卷组时检测到分区中已存在分区表,于是放弃新建,遂报错:Device /dev/sdc excluded by a filter.设备/dev/sdc已被过滤器过滤。

3.解决方案

1.parted /dev/sdc

2.mklabel msdos

3.yes

4.quit退出

5.vgextend myvg /dev/sdc

6.y确认擦去dos签名

7.vgs查看卷组可用容量

[root@localhost ~]# parted /dev/sdc
GNU Parted 3.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos                                                    
Warning: 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) quit
Information: You may need to update /etc/fstab.
​
[root@localhost ~]# vgextend myvg /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/sdc" successfully created.
  Volume group "myvg" successfully extended

vgs # 查看卷组可用容量

 收藏 (0) 打赏

您可以选择一种方式赞助本站

支付宝扫一扫赞助

微信钱包扫描赞助

未经允许不得转载:番茄网 » 扩容卷组报错:Device devsdc excluded by a filter.

分享到: 生成海报

评论 抢沙发

  • QQ号
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

像番茄一样 表里如一

表里如一表里如一
切换注册

登录

忘记密码 ?

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活