about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-02-25 17:35:16 +0000
committerSilvino Silva <silvino@bk.ru>2018-02-25 17:35:16 +0000
commit4de6c813ede901132b05f0d36c13900c6e9a4366 (patch)
tree56cfdf4f6944aa9a15ed2e6f57c2c4a0c243f26b /tools
parentecbc34995441845c078f8f17d74bd88d730fc386 (diff)
downloaddoc-4de6c813ede901132b05f0d36c13900c6e9a4366.tar.gz
lvm better partition creation
Diffstat (limited to 'tools')
-rw-r--r--tools/lvm.html16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/lvm.html b/tools/lvm.html
index 898a8d3..a61ca8a 100644
--- a/tools/lvm.html
+++ b/tools/lvm.html
@@ -40,17 +40,19 @@
 
         <h2 id="lvmpart">1. LVM Partition</h2>
 
-        <p>Create a LVM partition, fdisk should
-        show something like this;</p>
+        <p>There is no need to create a partition with fdisk or parted
+        if all device will be used for lvm, just <a href="#pv">pvcreate</a>
+        against the device (pvcreate /dev/sda).</p>
+
+        <p>Create a LVM partition with parted;</p>
 
         <pre>
-        # parted /dev/sda
+        parted --script ${DEV} \
+                unit mib \
+                mkpart primary 1000 4000 \
+                set 1 lvm on
         </pre>
 
-        <p>I use defaults unless to define system partition last sector,
-        where in this example is size, +80G</p>
-
-
         <h2 id="pv">2. Create physical volume</h2>
 
         <pre>