[linux-lvm] grow lv bug

Alasdair G Kergon agk at redhat.com
Tue Sep 22 22:27:46 UTC 2009


On Wed, Sep 23, 2009 at 07:55:09AM +1000, Hugh wrote:
> Yes I did. I used --setphysicalvolumesize
> it responded that it was successful.

Without any warning messages?

>From the man page:

      --setphysicalvolumesize size
	Overrides  the  automatically-detected size of the PV.  Use with
	care, or prior to reducing the physical size of the device.

If you change the physical size of the device, it detects the new size
automatically and you don't need that argument.  But that argument instructs
LVM to pretend the device is some size other than the one it really is...

Maybe we should require --force as well and add a 'Please confirm you
know what this actually does' prompt.

Alasdair




More information about the linux-lvm mailing list