linux_wiki:os_install_vm_template

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
linux_wiki:os_install_vm_template [2016/05/18 23:40]
billdozor
linux_wiki:os_install_vm_template [2016/09/28 22:05]
billdozor [Add/Expand Storage]
Line 278: Line 278:
   - Extend the logical volume that needs the space (/home will be used in this example)   - Extend the logical volume that needs the space (/home will be used in this example)
     - **Option 1 (Preferred)**: Move the physical extents of the logical volume to the new disk, so all of it resides on the same VMDK, and then use all of that new disk's space.     - **Option 1 (Preferred)**: Move the physical extents of the logical volume to the new disk, so all of it resides on the same VMDK, and then use all of that new disk's space.
-      * This method is preferred because there is a performance hit when a partition spans VMDKs +      * This method is preferred because there is a performance hit when a partition spans VMDKs<code bash>pvmove --name lvhome /dev/sda2 /dev/sdb1
-      * <code bash>pvmove --name lvhome /dev/sda2 /dev/sdb1+
 lvextend --resizefs /dev/mapper/vglocal-lvhome /dev/sdb1</code> lvextend --resizefs /dev/mapper/vglocal-lvhome /dev/sdb1</code>
     - Option 2: Give the logical volume all of the space from the newly added physical volume<code bash>lvextend --resizefs --extents +100%PVS /dev/mapper/vglocal-lvhome /dev/sdb1</code>     - Option 2: Give the logical volume all of the space from the newly added physical volume<code bash>lvextend --resizefs --extents +100%PVS /dev/mapper/vglocal-lvhome /dev/sdb1</code>
  • linux_wiki/os_install_vm_template.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)