欢迎光临
我们一直在努力

suse启动报错couldn’t find device with uuid=‘xxxx’

故障描述:
suse11系统启动不能打开lvroot,并报错:couldn’t find device with uuid=’KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’

原因分析:
lvm关于pv的元数据丢失,vg不能启用,lvroot也不能打开,导致启动报错,要为pv指定uuid,然后使用vgcfgrestore命令恢复元数据。

处理过程:
1.通过光盘启动进入救援模式。
2.执行lvs,发现没有lvroot
3.执行vgscan报错:
Couldn’t find all physical volumes for volume group vg00
Couldn’t find device with uuid=’KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’
4.执行vgcfgrestore vg00也报错:
Couldn’t find all physical volumes for volume group vg00
Couldn’t find device with uuid=’KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’
5.执行pvdisplay,显示出/dev/sdb和一个unknown device的信息,并报错Couldn’t find device with uuid=’KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’,unknown device的uuid就是=’KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’。
6.执行ls /dev |grep sd,显示有sda、sdb1和sdb2三个设备文件。
7.执行fdisk -l /dev/sda命令发现磁盘信息与pvdisplay显示的unknown device的信息相同,可以确定sda的uuid就是KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’。
8.执行pvcreate –uuid =’KPeEvZ-ha4f-0CPY-GBsx-fhtr-gaWQ-pbuheq’ –restorefile /etc/lvm/archive/vg00_00000.vg /dev/sda,重写lvm元数据区,注意一定要用正确的uuid,该项操作不会影响到lvm的数据区,即不会损害数据。
9.执行vgcfgrestore vg00恢复vg。
10.执行lvs,发现lvroot可以被看到。
11.执行lvchange -a y /dev/vg00,发现vg00卷组能正常启用。
12.重启系统,可以从硬盘正常启动。

未经允许不得转载:SRE空间 » suse启动报错couldn’t find device with uuid=‘xxxx’

分享到:更多 ()

评论 抢沙发

评论前必须登录!

 

oracle