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 an EC2 Instance(EBS Backed-root partition) with EBS volumes configured via LVM. I have formatted it as ext4 and can mount it to store data etc.

Now i want take a snapshot of the root partition, hence in that case i go and detach the other non-root EBS volumes (configured in LVM).

Here a regular detach does not work, and i have "force" detach almost always.

Although, i another similar setup with RAID instead of LVM and there after stopping RAID, i can easily detach.

The whole setup is running Ubuntu Maverick 10.10

Please assist me in the same.

share|improve this question
up vote 3 down vote accepted

It sounds like you need to disable the volume group with vgchange -a n vgname before you call the EBS detach API

share|improve this answer

Disabling a VG , with active LV's will not work.

You should first disable all LV's inside the VG and only after that you can disable the VG.

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.