LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-12-2011, 01:35 AM   #1
sierramike
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Rep: Reputation: Disabled
Question LVM : pvremove and now volume group not found


Hi,

I think I did a mistake.

Let's say I have 4 partitions :
/dev/hda1
/dev/hdb1
/dev/hdc1
/dev/hdd1
(none are for boot nor for the system files)
I added all to my volume group the 4 partitions (after setting them as physical volumes)
Yesterday I shrinked the filesystem so it is less than the size of hda1. All worked perfectly.
This morning I did pvremove /dev/hdd1 which told me to start pvremove -ff /dev/hdd1. I did that, and now lvm says me it doesn't find all pv's for my volume group and the volume group is not found ...

After thinking, I think what I forgot is to remove /dev/hdd1 from the volume group before doing the pvremove ...

Is there a way to fix this ?

Thanks a lot ...
 
Old 08-12-2011, 09:00 AM   #2
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 629

Rep: Reputation: 174Reputation: 174
OK, I am not going to be of much help right now, as I am at work and am currently trapped on a WiNdOwS machine, but I recall doing the same thing about five years ago. I did manage to recover from this error by manually editing/recreating the appropriate, text file, entries in the /etc directory.

I cannot recall, off the top of my head, where these files live, probably some LVM-ish sounding subdirectory, and these text files *can* be edited/created to bring your PVs back.

PS: In general, if some LVM2 command requires you to force the command, you probably don't want to do it.
 
Old 08-12-2011, 09:14 AM   #3
sierramike
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
In fact, I found the answer myself, which was really easy as 1-2-3 !

vgreduce myvolumegroup --removemissing

That did the trick, everything back to normal !

I love LVM ...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
can't recover LVM volume: Please specify a *single* volume group to restore SoftDux Linux - General 1 08-04-2011 03:31 PM
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 07:45 PM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM
Missing LV from LVM volume group jalla2000 Linux - Software 1 04-21-2008 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration