LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 01-15-2009, 01:50 PM   #1
gnoop
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
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.

Last edited by gnoop; 01-15-2009 at 01:58 PM.
 
Old 01-15-2009, 04:01 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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).
 
Old 01-15-2009, 05:19 PM   #3
gnoop
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Disillusionist View Post
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.
 
Old 01-16-2009, 10:27 AM   #4
le_forban
LQ Newbie
 
Registered: Jan 2008
Location: Brittany, France
Distribution: RHEL4&5
Posts: 7

Rep: Reputation: Disabled
Could you post the result of "mount", "cat /proc/partitions" and "lvdisplay" ?
 
Old 01-16-2009, 03:54 PM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
Also, please post output of pvdisplay and vgdisplay
 
Old 01-16-2009, 04:36 PM   #6
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
You may want to look at man 8 vgreduce.
Particularly the --removemissing option.
 
Old 01-23-2009, 11:54 AM   #7
gnoop
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rayfordj View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kickstart & logical volumes Corrado Red Hat 2 11-14-2007 01:03 PM
KDiskFree gets it wrong with Logical Volumes GTrax Linux - Software 3 11-12-2007 01:10 AM
finding and mounting logical volumes Steve Riley Fedora 5 04-14-2007 03:39 PM
Mounting Logical Volumes acidblue Fedora 6 01-28-2006 10:02 PM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 09:26 AM


All times are GMT -5. The time now is 05:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration