随笔 - 136, 文章 - 0, 评论 - 14, 阅读 - 13万
  首页  :: 新随笔  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

创建PV失败处理

Posted on   高&玉  阅读(664)  评论(0编辑  收藏  举报

问题现象

创建PV(物理卷)

[root]# pvcreate /dev/sdn
  Device /dev/sdn excluded by a filter.

因/dev/sdn之前创建过分区sdn1,后来删除了sdn1分区,pvcreate扫描/dev/sdn存在分区信息所以才忽略创建PV。

处理过程

将/dev/sdn格式华为一个分区

[root]# parted /dev/sdn
GNU Parted 3.1
Using /dev/sdn
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos	#支持msdos和gpt两种格式(msdos最大支持2T,gpt不受限)                                                    
Warning: The existing disk label on /dev/sdn 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(物理卷)

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

 

编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
点击右上角即可分享
微信分享提示