创建pv时 pvcreate 提示Device not found (or ignored by filtering).

简介: 创建pv时

创建pv时


# pvcreate /dev/md1
  Device /dev/md1 not found (or ignored by filtering).

检查一下,发现已经用分区了!

# fdisk /dev/md1
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): 
Command (m for help): n
To create more partitions, first replace a primary with an extended partition.
Command (m for help): p
Disk /dev/md1: 931.2 GiB, 999856013312 bytes, 1952843776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 524288 bytes
Disklabel type: dos
Disk identifier: 0x538ce953
Device     Boot Start        End    Sectors   Size Id Type
/dev/md1p1       2048 1952843775 1952841728 931.2G 83 Linux


再重新创建


# pvcreate /dev/md1p1
WARNING: xfs signature detected on /dev/md1p1 at offset 0. Wipe it? [y/n]: y
  Wiping xfs signature on /dev/md1p1.
  Physical volume "/dev/md1p1" successfully created
~#

成功了!

相关文章
|
存储 关系型数据库 MySQL
linux环境安装8.0以上版本的MySQL详细教程(亲测好用)
linux环境安装8.0以上版本的MySQL详细教程(亲测好用)
5266 0
|
数据可视化 数据挖掘 大数据
【Kibana】kibana详细介绍与说明
【Kibana】kibana详细介绍与说明
1161 0
|
缓存 Linux 开发工具
CentOS 7- 配置阿里镜像源
阿里镜像官方地址http://mirrors.aliyun.com/ 1、点击官方提供的相应系统的帮助 :2、查看不同版本的系统操作: 下载源1、安装wget yum install -y wget2、下载CentOS 7的repo文件wget -O /etc/yum.
280479 0
|
11月前
|
安全 数据库 Windows
Win11新UEFI安全启动证书推送中,3步自查+手动更新避坑指南
2026年6月旧UEFI安全启动证书将到期,未更新可能导致Windows设备无法启动。微软正向Win11 22H2/23H2设备推送新证书(含KB5067019补丁),用户可通过系统信息确认版本与安全启动状态,联网后通过Windows更新或微软官网手动安装。安装后可用PowerShell命令验证。注意:勿随意修改BIOS控制位,须参照最新官方指南操作,避免启动异常,建议尽早完成更新。
8864 5
|
人工智能 Devops 虚拟化
VMware vSphere 8.0 Update 3d 下载 - 企业级工作负载平台
VMware vSphere 8.0 Update 3d 下载 - 企业级工作负载平台
13985 17
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.0 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.0 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
4234 1
VMware Remote Console 13.0.0 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
Ubuntu 关系型数据库 MySQL
Linux系统MySQL安装
【10月更文挑战第19天】本文介绍了在 Linux 系统上安装 MySQL 的步骤,包括安装前准备、安装 MySQL、启动 MySQL 服务、配置 MySQL 以及验证安装。适用于 Ubuntu/Debian 和 CentOS/Fedora 系统,提供了详细的命令示例。
3092 1
|
消息中间件 关系型数据库 MySQL
消息中间件系列教程(05) -RabbitMQ -管理控制台的使用
消息中间件系列教程(05) -RabbitMQ -管理控制台的使用
798 1
|
Kubernetes 调度 异构计算
生产环境 K8S + Deepseek 实现大模型部署 和 容器调度(图解+史上最全)
生产环境 K8S + Deepseek 实现大模型部署 和 容器调度(图解+史上最全)
生产环境 K8S + Deepseek 实现大模型部署 和 容器调度(图解+史上最全)
|
应用服务中间件 nginx Docker
Docker:WARNING: Published ports are discarded when using host network mode 解决方法
Docker在使用 `host`网络模式时会忽略端口映射,因为此模式下容器已经直接暴露在主机网络上。通过理解并合理选择网络模式,可以有效解决 `WARNING: Published ports are discarded when using host network mode`的警告。根据具体需求,选择适合的网络模式,以便在保证性能的同时确保灵活性和安全性。希望本文提供的方法和分析能帮助您在使用Docker时更好地处理网络配置问题。
3826 12

热门文章

最新文章