ubuntu_extend_default_lvm_space
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ubuntu_extend_default_lvm_space [2023/06/29 19:38] – wikiadmin | ubuntu_extend_default_lvm_space [2023/06/29 20:01] (current) – wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Ubuntu - Extend Your Default LVM Space ====== | ====== Ubuntu - Extend Your Default LVM Space ====== | ||
| - | So, like me, you installed Ubuntu and accepted the default | + | So, like me, you installed Ubuntu and accepted the installers |
| + | |||
| + | All credit for the concepts and sequences of commands goes to the publishers of the article that you can find by clicking the following link: | ||
| - | All credit goes to this article: | ||
| [[https:// | [[https:// | ||
| + | |||
| + | This first example below involves a 1TB physical drive of which Ubuntu' | ||
| + | |||
| + | First run df -h | ||
| < | < | ||
| Line 20: | Line 25: | ||
| tmpfs 791M 4.0K 791M 1% / | tmpfs 791M 4.0K 791M 1% / | ||
| </ | </ | ||
| + | |||
| + | Next run vgdisplay | ||
| < | < | ||
| Line 50: | Line 57: | ||
| </ | </ | ||
| + | Next run lvdisplay | ||
| < | < | ||
| Line 73: | Line 81: | ||
| Block device | Block device | ||
| </ | </ | ||
| + | |||
| + | Switching to root user | ||
| < | < | ||
| Line 79: | Line 89: | ||
| root@svr1: | root@svr1: | ||
| </ | </ | ||
| + | |||
| + | Run the following to extend the LV to the maximum size usable. | ||
| < | < | ||
| Line 121: | Line 133: | ||
| This is a continuation of the above: now extending the file system to utilize the entire resized volume on a 1TB physical drive. | This is a continuation of the above: now extending the file system to utilize the entire resized volume on a 1TB physical drive. | ||
| + | |||
| + | Re-established remote ssh connection and want to again switch to root user. | ||
| < | < | ||
| Line 127: | Line 141: | ||
| root@svr1:/ | root@svr1:/ | ||
| </ | </ | ||
| + | |||
| + | Run df -h to see where we are. Notice that ubuntu--vg-ubuntu--lv | ||
| < | < | ||
| Line 138: | Line 154: | ||
| tmpfs 791M 4.0K 791M 1% / | tmpfs 791M 4.0K 791M 1% / | ||
| </ | </ | ||
| + | |||
| + | Let's check vgdisplay | ||
| < | < | ||
| Line 165: | Line 183: | ||
| VG UUID | VG UUID | ||
| </ | </ | ||
| + | |||
| + | Let's check lvdisplay | ||
| < | < | ||
| Line 188: | Line 208: | ||
| Block device | Block device | ||
| </ | </ | ||
| + | |||
| + | Now, run the following command to resize the file system to the full size of the resized volume. | ||
| < | < | ||
| Line 197: | Line 219: | ||
| root@svr1: | root@svr1: | ||
| + | </ | ||
| + | |||
| + | Run df -h | ||
| + | |||
| + | And notice that ' | ||
| + | |||
| + | < | ||
| + | root@svr1: | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Filesystem | ||
| + | tmpfs 791M 1.2M 790M 1% /run | ||
| + | / | ||
| + | tmpfs 3.9G | ||
| + | tmpfs 5.0M | ||
| + | / | ||
| + | tmpfs 791M 4.0K 791M 1% / | ||
| + | root@svr1: | ||
| + | |||
| </ | </ | ||
| Line 204: | Line 246: | ||
| FOLLOWING IS ANOTHER UNRELATED EXAMPLE OF THE SECOND PART OF THE PROCESS: | FOLLOWING IS ANOTHER UNRELATED EXAMPLE OF THE SECOND PART OF THE PROCESS: | ||
| - | Note: The following operations and output involves a 2TB physical drive instead of 1TB (like above). | + | Example 2: |
| + | |||
| + | Note: The following operations and output involves a 2TB physical drive instead of 1TB (like above). | ||
| Again, at this point we have increased the size of the block volume where your root filesystem resides, but you still need to extend the filesystem on top of it. | Again, at this point we have increased the size of the block volume where your root filesystem resides, but you still need to extend the filesystem on top of it. | ||
ubuntu_extend_default_lvm_space.1688067486.txt.gz · Last modified: 2023/06/29 19:38 by wikiadmin
