LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Can't delete logical volumes (https://www.linuxquestions.org/questions/linux-enterprise-47/cant-delete-logical-volumes-697571/)

gnoop 01-15-2009 01:50 PM

Can't delete logical volumes
 
So we have some logical volumes that weren't in use any more. The drives were removed from the server (SAN storage). The problem is we didn't quite coordinate it and the volumes weren't deleted before the storage was pulled.

Now, lvm is throwing errors on most any command. lvremove isn't removing the volumes as it says it can't get information about the volume group. We do have valid volumes mounted and in use on those volume groups, however.

A call to support turned up the usual. Confusion with a request to get more output with a follow-up at some future point.

I'm wondering if it's just as simple as making copies of the vg files in /etc/lvm/backup and deleting the old volumes, then going from there?

Any help is appreciated.

The errors are multiples of:

/dev/dm-16: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-17: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'X5x8vG-chsN-CVqI-H2Ky-wdyq-95aG-vf9sgV'.
Couldn't find all physical volumes for volume group oravg04.

Disillusionist 01-15-2009 04:01 PM

Do you have a complete list of the device files for the disks that were removed?

You are probably going to have to manually move the device files to a different folder (to be removed later if all goes well).

If you still have the disks, you could try reattaching them to the SAN and removing the volumes, but I wouldn't expect that to be easy (if even possible).

gnoop 01-15-2009 05:19 PM

Quote:

Originally Posted by Disillusionist (Post 3410283)
Do you have a complete list of the device files for the disks that were removed?

You are probably going to have to manually move the device files to a different folder (to be removed later if all goes well).

If you still have the disks, you could try reattaching them to the SAN and removing the volumes, but I wouldn't expect that to be easy (if even possible).

No, no list of the old devices that I see. I think the disks, along with the array they were in, are gone.

le_forban 01-16-2009 10:27 AM

Could you post the result of "mount", "cat /proc/partitions" and "lvdisplay" ?

Disillusionist 01-16-2009 03:54 PM

Also, please post output of pvdisplay and vgdisplay

rayfordj 01-16-2009 04:36 PM

You may want to look at man 8 vgreduce.
Particularly the --removemissing option.

gnoop 01-23-2009 11:54 AM

Quote:

Originally Posted by rayfordj (Post 3411397)
You may want to look at man 8 vgreduce.
Particularly the --removemissing option.

Yes, this ended up being what I did and it seems to have worked out. That allowed me to clean up the Power Path devices as well. I'll just need to reboot, I assume, to clean up the device files for the disks no longer visible to the server.


All times are GMT -5. The time now is 05:48 PM.