Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a volumegroup which consists of three harddisks and several LVs (var,tmp,root,swap). One of the harddisks crashed recently, but i urgently need some data from LV var. So, after rebooting the machine without the crashed disk, i run

vgchange -D -a y volGroup0 

in order to activate the volumegroup and mount the logical volumes. However, the command returns

Cannot activate XXX. All segments are missing
0 logical volume(s) in volume group "volGroup0" now active.

What does that mean? Is all data lost? What could be the next step in order to rescue some data?

share|improve this question
Were you using dm-RAID at all, or just spanning multiple PVs with volGroup0? – John Jun 18 '13 at 13:35
up vote 0 down vote accepted

In order to recover the data (note that any data on the failed disk is lost), you'll need to replace the failed disk with a new one and rebuild the LVM. You won't be able to mount the group otherwise.

To do this, you'll need to know the failed disk's UUID by using pvscan. It'll say that a UUID is missing and this is what you need.

Then, when you have the new disk in the server, type: pvcreate --uuid uidhere /dev/sdc where "uidhere" is the UUID you got from pvscan and /dev/sdc is the new disk device.

Then, type vgcfgrestore volgroupname where volgroupname is the name given to the volume group (so vgcfgrestore volGroup0).

Then, type vgscan to recover the volume group. And finally, vgchange -ay volGroup0 to activate the group. You'll likely need to e2fsck the affected partition if it's unreadable.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.