Original
admin@droneteambasevm:~$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/UbntSR--vCAC--Tmp--vg-root 14048320 3345632 9966024 26% /
none 4 0 4 0% /sys/fs/cgroup
udev 3042888 4 3042884 1% /dev
tmpfs 610808 3036 607772 1% /run
none 5120 0 5120 0% /run/lock
none 3054024 0 3054024 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 240972 38813 189718 17% /boot
admin@droneteambasevm:~$ sudo fdisk -l
[sudo] password for admin:
Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a8393
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 33552383 xxxxxxxx 5 Extended
/dev/sda5 501760 33552383 xxxxxxxx 83 Linux
Step 1:
sudo fdisk /dev/sda
d 5
d 2
n 2 (extended)
n 5 (logical 501760 to 33552383)
n 6 (logical reset)
t 5 8e
t 6 8e
p
This is results.
Command (m for help): p
Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a8393
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 499712 209715199 104607744 5 Extended
/dev/sda5 501760 33552383 16525312 8e Linux LVM
/dev/sda6 33554432 209715199 88080384 83 Linux LVM
sudo reboot
Step 2:
admin@droneteambasevm:~$ sudo vgextend UbntSR-vCAC-Tmp-vg /dev/sda6
[sudo] password for admin:
No physical volume label read from /dev/sda6
Physical volume "/dev/sda6" successfully created
Volume group "UbntSR-vCAC-Tmp-vg" successfully extended
admin@droneteambasevm:~$ sudo lvextend -L +84G /dev/UbntSR-vCAC-Tmp-vg/root
Extending logical volume root to 97.74 GiB
Logical volume root successfully resized
admin@droneteambasevm:~$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/UbntSR--vCAC--Tmp--vg-root 14048320 3347364 9964292 26% /
none 4 0 4 0% /sys/fs/cgroup
udev 3042888 4 3042884 1% /dev
tmpfs 610808 3040 607768 1% /run
none 5120 0 5120 0% /run/lock
none 3054024 0 3054024 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 240972 38813 189718 17% /boot
admin@droneteambasevm:~$ sudo resize2fs /dev/UbntSR-vCAC-Tmp-vg/root
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/UbntSR-vCAC-Tmp-vg/root is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 7
The filesystem on /dev/UbntSR-vCAC-Tmp-vg/root is now 25621504 blocks long.
admin@droneteambasevm:~$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/UbntSR--vCAC--Tmp--vg-root 100746672 3364584 93122788 4% /
none 4 0 4 0% /sys/fs/cgroup
udev 3042888 4 3042884 1% /dev
tmpfs 610808 3040 607768 1% /run
none 5120 0 5120 0% /run/lock
none 3054024 0 3054024 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 240972 38813 189718 17% /boot
No comments:
Post a Comment