Skip to contentSkip to conversation

vgreduce --removemissing does not remove missing

linux-lvm Olivier Eymere 1 participant 1 message Jun 14, 2005

lore
Share & tools
lore
#0 lore raw

We have had a disk failure and are trying to recover what we can. Having seen that there were major disk problems we were running pvmove but, alas, it never finished. I don't care that much about the data on the disk but I am puzzled as to why 'vgreduce --removemissing' reports that it is removing logical volumes but does not actually seem to do anything. When I run vgscan this is what I get:

Reading all physical volumes. This may take a while...
/dev/cdrom: open failed: No medium found Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Couldn't find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found
Found volume group "VolGroup01" using metadata type lvm2

Then I run:
vgreduce --verbose --removemissing VolGroup00 Finding volume group "VolGroup00"
Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Archiving volume group "VolGroup00" metadata. VolGroup00/pvmove0 has missing extents: removing (including dependencies)
Deactivating (if active) logical volume pvmove0 Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Found volume group "VolGroup00"
Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Found volume group "VolGroup00"
Removing LV pvmove0 from VG VolGroup00 VolGroup00/pvmove0 has missing extents: removing (including dependencies)
Deactivating (if active) logical volume pvmove0 Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Found volume group "VolGroup00"
Couldn't find device with uuid 'Ay85t2-628y-fE0f-js0t-8RO4-WAy4-9qbaZy'. Found volume group "VolGroup00"
Removing LV pvmove0 from VG VolGroup00

It looks to me that it is removing the pvmove0 LV but when I run vgscan again it says the same thing about not finding device with uuid ... Am I not understanding what vgreduce is trying to do or should that pv have been removed?

__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html