Linux LVM commands result in

  • Couldn't find device with uuid

  • Couldn't find all physical volumes for volume group


Help!  Commands like 'lvs', 'lvdisplay', 'vgdisplay', and 'pvscan' result in an error like the following:

Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.

Volume group "metabackupvg" not found

[root@dwetlprod2 ~]# pvscan
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  PV /dev/emcpoweraa1   VG srcdata1vg      lvm2 [50.00 GB / 0    free]
  PV /dev/emcpowerz1    VG srcdata2vg      lvm2 [50.00 GB / 0    free]
  PV /dev/emcpowerj1    VG metalogvg       lvm2 [3.00 GB / 0    free]
  PV /dev/emcpowerl1    VG metalogvg       lvm2 [3.00 GB / 0    free]
  PV /dev/emcpowern1    VG metalogvg       lvm2 [4.99 GB / 0    free]
  PV /dev/emcpowerad1   VG metalogvg       lvm2 [14.00 GB / 0    free]
  PV /dev/emcpowery1    VG auditbackupvg   lvm2 [229.99 GB / 0    free]
  PV /dev/emcpoweru1    VG metabackupvg    lvm2 [45.00 GB / 0    free]
  PV unknown device     VG metabackupvg    lvm2 [69.99 GB / 0    free]
  PV /dev/emcpoweraf1   VG metabackupvg    lvm2 [124.99 GB / 0    free]
  PV /dev/emcpowerv1    VG auditlogvg      lvm2 [3.00 GB / 0    free]
  PV /dev/emcpowerw1    VG auditlogvg      lvm2 [3.00 GB / 0    free]
  PV /dev/emcpowerx1    VG auditlogvg      lvm2 [3.00 GB / 0    free]
  PV /dev/emcpowert1    VG auditlogvg      lvm2 [89.99 GB / 0    free]
  PV /dev/emcpowerb1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerc1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerd1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowere1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerk1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerm1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowero1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerq1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerp1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerr1    VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerab1   VG auditdatavg     lvm2 [25.00 GB / 0    free]
  PV /dev/emcpowerf1    VG metadatavg      lvm2 [11.00 GB / 0    free]
  PV /dev/emcpowerg1    VG metadatavg      lvm2 [11.00 GB / 0    free]
  PV /dev/emcpowerh1    VG metadatavg      lvm2 [11.00 GB / 0    free]
  PV /dev/emcpoweri1    VG metadatavg      lvm2 [11.00 GB / 0    free]
  PV /dev/emcpowers1    VG metadatavg      lvm2 [20.00 GB / 0    free]
  PV /dev/emcpowera1    VG metadatavg      lvm2 [20.00 GB / 0    free]
  PV /dev/emcpowerae1   VG metadatavg      lvm2 [14.00 GB / 0    free]
  Total: 32 [1.04 TB] / in use: 32 [1.04 TB] / in no VG: 0 [0   ]

Solution


This scenario indicates that a disk is missing from the volume group.
 This is clear since pvscan scans all disks for physical volumes, and
it's telling us that it cannot find a device.  In my case, I deleted a
LUN from the EMC that I knew was no longer being used, but I forgot to
update the LVM configuration.  To correct the issue, I removed the lost
physical volume from the volume group using the --removemissing argument of the vgreduce command.

Tip: Run vgreduce with the --test and --verbose options to validate what will be executed and confirm this is what you want to do.

[root@dwetlprod2 ~]# vgreduce --removemissing --verbose metabackupvg
    Finding volume group "metabackupvg"
    Wiping cache of LVM-capable devices
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find all physical volumes for volume group metabackupvg.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
  Couldn't find device with uuid 'R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP'.
    Archiving volume group "metabackupvg" metadata (seqno 73).
    metabackupvg/backup2lv has missing extents: removing (including dependencies)
    Removing LV backup2lv from VG metabackupvg
    Removing PV with UUID R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP from VG metabackupvg
    Creating volume group backup "/etc/lvm/backup/metabackupvg" (seqno 74).
  Wrote out consistent volume group metabackupvg
[root@dwetlprod2 ~]#

If a device needs to be added back, a solution for recovery is to cut
another 70G LUN on the EMC, present it to the host and add it back into
the volume group with the same UUID.  Read my post on adding a new lun.

[root@dwetlprod2 ~]# pvcreate --uuid R5zG2s-g4yi-ytEO-8Xvk-2B0s-S36G-9nWhXP /dev/emcpowerah
  Physical volume "/dev/emcpowerah" successfully created
[root@dwetlprod2 ~]# vgcfgrestore metabackupvg
  Restored volume group metabackupvg
[root@dwetlprod2 ~]# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "srcdata1vg" using metadata type lvm2
  Found volume group "srcdata2vg" using metadata type lvm2
  Found volume group "metalogvg" using metadata type lvm2
  Found volume group "auditbackupvg" using metadata type lvm2
  Found volume group "auditlogvg" using metadata type lvm2
  Found volume group "metabackupvg" using metadata type lvm2
  Found volume group "auditdatavg" using metadata type lvm2
  Found volume group "metadatavg" using metadata type lvm2

Run a file system check on the device then mount it.  If your device
(LUN) was mistakenly deleted, or in the case of physical media the disk
has gone kaput, then you'll need to restore data from backups.

You may have noticed that I didn't even fdisk the replacement device.
 Don't forget to do this step if you will be restoring data and you're
restoring to a partition.

Linux_LVM Couldn't find device with uuid的更多相关文章

  1. Please specify exact device preset UUID

    Please specify exact device preset UUID 重启RAD IDE,重新选择 IOS Simulator ,iphone 机型!

  2. DELPHI 调试IOS时出现 Please specify exact device preset UUID

    右击设备DEVICE, 选择REFRESH刷新, 再重新选择一个设备即可.

  3. Android中连接蓝牙设备时遇到createRfcommSocketToServiceRecord的UUID问题和BluetoothSocket的connect失败

    [问题] 折腾: [记录]编写Android中的蓝牙模块驱动和底层HART设备 期间,参考: Bluetooth | Android Developers – ManagingAConnection ...

  4. 记一次磁盘UUID不能识别故障处理

    早上zabbix报警,磁盘满了,登录服务器查看信息,一顿操作,突然发现最后lvextend命令不能扩容,查看LVM信息 报错信息"Couldn't find device with uuid ...

  5. 关于xcode导出设置中的一些概念

    Development Certificates:在电脑通过秘钥串生成一个私人秘钥,这就是:CertificateSigningRequest.certSigningRequest 简称CSR,团队中 ...

  6. android蓝牙打印机

    您还未登录!|登录|注册|帮助 首页 业界 移动 云计算 研发 论坛 博客 下载 更多 reality_jie的专栏 编程的过程是一种微妙的享受       目录视图 摘要视图 订阅 CSDN2013 ...

  7. Android蓝牙实例(和单片机蓝牙模块通信)

    最近做毕设,需要写一个简单的蓝牙APP进行交互,在网上也找了很多资料,终于给搞定了,这里分享一下^_^. 1.Android蓝牙编程 蓝牙3.0及以下版本编程需要使用UUID,UUID是通用唯一识别码 ...

  8. Android 读取蓝牙设备信息开发

    (1)Android手机一般以客户端的角色主动连接SPP协议设备(接上蓝牙模块的数字传感器),连接流程是: 1.使用registerReceiver注册BroadcastReceiver来获取蓝牙状态 ...

  9. BLE Hacking:使用Ubertooth one扫描嗅探低功耗蓝牙

    0×00 前言 低功耗蓝牙(Low Energy; LE),又视为Bluetooth Smart或蓝牙核心规格4.0版本.其特点具备节能.便于采用,是蓝牙技术专为物联网(Internet of Thi ...

随机推荐

  1. centos下使用fdisk扩展分区容量大小

    硬盘空间为20G,VMware增加磁盘大小,需要再增加10G空间 扩展完后,重启系统,再次使用fdisk -l查看,会发现硬盘空间变大了: 重新创建分区,调整分区信息 本次实验主要对/dev/sda4 ...

  2. ultraedit使用记录

    ultraedit使用记录 10:57:33 在日常的工作中,我经常用keil进行程序的编写等工作,不过在编写过程中Keil对中文的支持不是很好,容易发生问题:同事推荐我用ultraedit进行程序的 ...

  3. 避免Gson使用时将一些字符自动转换为Unicode转义字符

    // 避免Gson使用时将一些字符自动转换为Unicode转义字符 public static Gson gson = new GsonBuilder().disableHtmlEscaping(). ...

  4. C#中的异常捕获机制(try catch finally)

    (转自:http://blog.csdn.net/zevin/article/details/6901489) 一.C#的异常处理所用到关键字try 用于检查发生的异常,并帮助发送任何可能的异常.ca ...

  5. 蓝牙(cc2540) 协议栈 学习一

    ---------------------------------------------------------- app ------------------------------------- ...

  6. spring 多数据源动态切换

    理解spring动态切换数据源,需要对spring具有一定的了解 工作中经常遇到读写分离,数据源切换的问题,那么以下是本作者实际工作中编写的代码  与大家分享一下! 1.定义注解 DataSource ...

  7. 几种常见排序算法的C++描述

    基本的排序算法有如下特点: 1.几种容易的算法都是以O(N2)排序的 2.Shell排序编程简单,其也是以O(N2)排序的,在实践中用的很多 3.复杂的排序算法往往都是按照O(NlogN)尽心排序的 ...

  8. String、StringBuffer、StringBuilder分析(jdk8)

    以下代码只挑选了关键方法进行分析 public final class String //String类不可继承,实现了序列化 implements java.io.Serializable, Com ...

  9. Android studio 导入ApiDemo

    1.import 项目,sdk目录:sdk\samples\android-21\legacy\ApiDemos,import时一直下一步就ok了. 2.Error:Error: The file n ...

  10. react table dropdown

    <DropdownButton type="primary" trigger={['click']} onClick={() => this.detail(item)} ...