Misleading error message with pvremove

Bug #593228 reported by Casandro on 2010-06-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Undecided
Unassigned

Bug Description

When I want to remove a physical volume which still is part of a volume group I get the following message:

root@vdr:~# pvremove /dev/sdf1
  Can't pvremove physical volume "/dev/sdf1" of volume group "vdr" without -ff

Now when I actually append -ff to the line, I end up with a corrupt volume group. It would be much better it it told the user to use vgreduce.

(note for people encountering this problem)
If you have used -ff it's easy to fix. Just type pvdisplay and look for the missing volume uuid. Then create a new physical volume with the same uuid. (parameter -u)

Neil Perry (nperry) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in lvm2
(With many applications, you can report a future bug directly on the appropriate package by opening the application's "Help" menu and choosing "Report a Problem". https://wiki.ubuntu.com/ReportingBug

affects: ubuntu → lvm2 (Ubuntu)

On Sun, Jun 13, 2010 at 10:42:42AM -0000, Launchpad Bug Tracker wrote:
> Can't pvremove physical volume "/dev/sdf1" of volume group "vdr" without -ff

How did that get into the tree?!

And messages are always supposed to use long forms of the options (--force) too.

And a description is missing from the man page.

This all needs improving...

Alasdair

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers