From 55e28bbe0b8dee162c1f2f8909ec4d47314b6173 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Thu, 14 Apr 2016 12:54:06 -0700 Subject: [PATCH] Add more lvm commands to cinder documentation Sometimes we want to extend a logical volume to the entire size of the volume group. The command to do this is quite strange and I am tried of googling it. It is so documented. Change-Id: I600ceb41c57e27eaaf68a1643be848cd331130a5 --- doc/source/sysadmin.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/sysadmin.rst b/doc/source/sysadmin.rst index a7ce576809..c35c66072b 100644 --- a/doc/source/sysadmin.rst +++ b/doc/source/sysadmin.rst @@ -466,3 +466,9 @@ The following example increases the size of a volume by 100G:: NAME=volumename sudo lvextend -L+100G /dev/main/$NAME sudo resize2fs /dev/main/$NAME + +The following example increases the size of a volume to the maximum allowable:: + + NAME=volumename + sudo lvextend -l +100%FREE /dev/main/$NAME + sudo resize2fs /dev/main/$NAME