LVM partitions extend: Difference between revisions

From Skytech
Jump to navigation Jump to search
(Created page with "Category:Linux = Extend LVM = First, unmount the LVM in question. Then, extend it: <pre> lvextend -L+10G /dev/virtualdisk/vol </pre> = Boot into Virtualhost = Unmount the…")
 
No edit summary
 
Line 11: Line 11:


= Boot into Virtualhost =
= Boot into Virtualhost =
Unmount the drive, remove the partition and resize it; then remount.
Unmount the drive, rerun partition reader, remove the partition and resize it; then remount.


<pre>
<pre>
partprobe
fdisk /dev/hdd
fdisk /dev/hdd
</pre>
</pre>

Latest revision as of 17:22, 10 October 2011


Extend LVM

First, unmount the LVM in question.

Then, extend it:

lvextend -L+10G /dev/virtualdisk/vol

Boot into Virtualhost

Unmount the drive, rerun partition reader, remove the partition and resize it; then remount.

partprobe
fdisk /dev/hdd

Remove partition, create as new larger partition,

Resize it:

resize2fs /dev/hdd1