LVM question
Matt Graham
mhgraham at crow202.org
Sun Jul 19 12:30:31 MST 2015
On 2015-07-18 10:25, Stephen M wrote:
> The original size [of the LV was] 3G for my home directory. I am
> trying to
> reduce it to 2G so then I can increase my /usr to 8G from 7G.
> lvreduce -L 1G /dev/testLVM/lvhome
> Do you really want to reduce lvhome? [y,n]: y
> Command failed with status code 5
The man page for lvreduce says:
-L, --size [-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
Reduce or set the logical volume size in units of megabytes. With the -
sign the value will be subtracted from the logical volume's actual size
and without it it will be taken as an absolute size.
...so it thought you were resizing the LV to 1G, and lvreduce probably
is smart enough to tell that the filesystem on the LV is 2G in size.
You probably wanted "lvreduce -L 2G /dev/testlvm/lvhome" or "lvreduce -L
-1G /dev/testlvm/lvhome".
--
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.
More information about the PLUG-discuss
mailing list