From 350b6939a673f363e1f6455b5a425780f7479a32 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 17 Aug 2013 19:45:52 +0000 Subject: [PATCH] Clean up Static Web Hosting document * doc/source/static.rst: Correctly indent a few preformatted command example blocks, add a couple internal hyperlinks and clean up some trailing whitespace on a number of lines. Change-Id: I57980c21ac2eb08dafb05a4dc669992952b7465f --- doc/source/static.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/source/static.rst b/doc/source/static.rst index 894e7918a6..e006010c78 100644 --- a/doc/source/static.rst +++ b/doc/source/static.rst @@ -47,35 +47,35 @@ Log into ci-puppetmaster.openstack.org, su to root and run:: * Add a new cinder volume (substitute the next number in series for NN):: - cinder create --display-name "static.openstack.org/mainNN" 512 - nova volume-attach auto + cinder create --display-name "static.openstack.org/mainNN" 512 + nova volume-attach auto * On static.openstack.org, create the partition table:: - DEVICE=/dev/xvdX - parted $DEVICE mklabel msdos mkpart primary 0% 100% set 1 lvm on - pvcreate ${DEVICE}1 + DEVICE=/dev/xvdX + parted $DEVICE mklabel msdos mkpart primary 0% 100% set 1 lvm on + pvcreate ${DEVICE}1 * It should show up in pvs:: - root@static:/etc/lvm# pvs - PV VG Fmt Attr PSize PFree - /dev/xvdX1 lvm2 a- 512.00g 512.00g + root@static:/etc/lvm# pvs + PV VG Fmt Attr PSize PFree + /dev/xvdX1 lvm2 a- 512.00g 512.00g * Add it to the main volume group:: - vgextend main ${DEVICE}1 + vgextend main ${DEVICE}1 Creating a New Logical Volume ============================= Make sure there is enough space in the volume group:: - + root@static:~# vgs - VG #PV #LV #SN Attr VSize VFree + VG #PV #LV #SN Attr VSize VFree main 4 2 0 wz--n- 2.00t 347.98g -If not, see "Adding a New Device". +If not, see `Adding a New Device`_. Create the new logical volume and initialize the filesystem:: @@ -91,12 +91,12 @@ Expanding an Existing Logical Volume ==================================== Make sure there is enough space in the volume group:: - + root@static:~# vgs - VG #PV #LV #SN Attr VSize VFree + VG #PV #LV #SN Attr VSize VFree main 4 2 0 wz--n- 2.00t 347.98g -If not, see "Adding a New Device". +If not, see `Adding a New Device`_. The following example to increase the size of a volume by 100G is untested; please confirm::