加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 卷组消失了,LV仍然可用

发布时间:2020-12-13 16:36:16 所属栏目:Linux 来源:网络整理
导读:我的KVM主机在LVM卷上运行VM时遇到了问题.截至昨晚,逻辑卷不再是这样(我无法创建它们的快照,即使我已经好几个月了). 运行任何扫描都会导致找不到任何内容: [root@apollo ~]# pvscanNo matching physical volumes found[root@apollo ~]# vgscanReading all p
我的KVM主机在LVM卷上运行VM时遇到了问题.截至昨晚,逻辑卷不再是这样(我无法创建它们的快照,即使我已经好几个月了).

运行任何扫描都会导致找不到任何内容:

[root@apollo ~]# pvscan
No matching physical volumes found

[root@apollo ~]# vgscan
Reading all physical volumes.  This may take a while...
No volume groups found

root@apollo ~]# lvscan
No volume groups found

如果我尝试从/ etc / lvm / backups / vg0恢复VG conf备份,我会收到以下错误:

[root@apollo ~]# vgcfgrestore -f /etc/lvm/backup/vg0 vg0
Couldn't find device with uuid 20zG25-H8MU-UQPf-u0hD-NftW-ngsC-mG63dt.
Cannot restore Volume Group vg0 with 1 PVs marked as missing.
Restore failed.

/ etc / lvm / backups / vg0具有以下物理卷:

physical_volumes {

            pv0 {
                    id = "20zG25-H8MU-UQPf-u0hD-NftW-ngsC-mG63dt"
                    device = "/dev/sda5"    # Hint only

                    status = ["ALLOCATABLE"]
                    flags = []
                    dev_size = 4292870143   # 1.99902 Terabytes
                    pe_start = 384
                    pe_count = 524031       # 1.99902 Terabytes
            }
}

fdisk -l / dev / sda显示以下内容:

[root@apollo ~]# fdisk -l /dev/sda

Disk /dev/sda: 6000.1 GB,6000069312512 bytes
64 heads,32 sectors/track,5722112 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000188b7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               2       32768    33553408   82  Linux swap / Solaris
/dev/sda2           32769       33280      524288   83  Linux
/dev/sda3           33281     1081856  1073741824   83  Linux
/dev/sda4         1081857     3177984  2146435072   85  Linux extended
/dev/sda5         1081857     3177984  2146435071+  8e  Linux LVM

服务器正在运行4磁盘硬盘RAID10,根据megacli和smartd看起来非常健康.

/ var / log / messages中唯一奇怪的消息是每隔几小时出现的以下信息:

Jun 10 09:41:57 apollo udevd[527]: failed to create queue file: No space left on device

输出df -h

[root@apollo ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3            1016G  119G  847G  13% /
/dev/sda2             508M   67M  416M  14% /boot

有没有人有任何想法下一步做什么?除了无法对它们进行快照之外,VM目前都运行良好.

更新了额外信息
这不是缺少inode:

[root@apollo ~]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda3            67108864   48066 67060798    1% /
/dev/sda2              32768      47   32721    1% /boot

pvs,vgs& lvs要么输出任何内容,要么“找不到卷组”.

解决方法

我想某种方式udev停止工作,所以你无法访问低级命令.

你可以试试:

pvs
vgs
lvs

用于检查运行的lvm配置的命令.

您可以尝试重新启动udev(或作为最后的手段重新启动服务器).

出于好奇,df -i说什么?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读