创建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
~#

成功了!

相关文章
arcgis catalog 连接sde时出现 Target state not found in the STATES table 错误
Target state not found in the STATES table [SDE.DEFAULT][STATE_ID = 8802] 除了arcgis论坛说的这种情况 http://support.esri.com/technical-article/000005952 我自己分析是stateid不在status 表中了 我根据正常的sde库分析了一下,ver
2086 0
|
5月前
|
监控 Cloud Native 网络协议
函数计算操作报错合集之出现“make sure that the nas mount point address is correct and is accessible from the service vpc”的提示,需要如何排查
在使用函数计算服务(如阿里云函数计算)时,用户可能会遇到多种错误场景。以下是一些常见的操作报错及其可能的原因和解决方法,包括但不限于:1. 函数部署失败、2. 函数执行超时、3. 资源不足错误、4. 权限与访问错误、5. 依赖问题、6. 网络配置错误、7. 触发器配置错误、8. 日志与监控问题。
|
6月前
|
Ubuntu iOS开发 MacOS
Could not enumerate video devices (or none found).解决办法
Could not enumerate video devices (or none found).解决办法
92 0
|
Ubuntu 开发工具 芯片
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
186 0
安装mkimage工具,解决报错“Invalid CPU Type - valid names are:”
|
iOS开发
Xcode报错:Failed to find a suitable device for the type SimDeviceType解决方法
Xcode报错:Failed to find a suitable device for the type SimDeviceType解决方法
209 0