admin@Ubuntu-SV-1404:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 481M 4.0K 481M 1% /dev
tmpfs 99M 948K 98M 1% /run
/dev/dm-0 98G 81G 13G 87% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 492M 0 492M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 40M 184M 18% /boot
admin@Ubuntu-SV-1404:~$ sudo vgdisplay -v
Finding all volume groups
Finding volume group "Ubuntu-SV-1404-vg" "【参照 その1】"
--- Volume group ---
VG Name Ubuntu-SV-1404-vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 149.76 GiB
PE Size 4.00 MiB
Total PE 38338
Alloc PE / Size 38338 / 149.76 GiB
Free PE / Size 0 / 0
VG UUID RIfIUw-aftq-bBSe-xayv-AGEg-Ka2z-48rwwN
--- Logical volume ---
LV Path /dev/Ubuntu-SV-1404-vg/root "【参照 その2】"
LV Name root
VG Name Ubuntu-SV-1404-vg
LV UUID pL9YCI-VF7l-1eBG-kMCM-EdO3-3jDK-GDMgv3
LV Write Access read/write
LV Creation host, time Ubuntu-SV-1404, 2017-04-22 09:01:34 +0900
LV Status available
# open 1
LV Size 148.76 GiB
Current LE 38083
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
〜後略〜
admin@Ubuntu-SV-1404:~$ sudo fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders, total 314572800 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: 0x00038162
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 209713151 104605697 5 Extended
/dev/sda5 501760 209713151 104605696 8e Linux LVM
Command (m for help): n
Partition type:
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): p
Partition number (1-4, default 3):
First sector (499712-314572799, default 499712): 209713152
Last sector, +sectors or +size{K,M,G} (209713152-314572799, default 314572799):
Command (m for help): p
Disk /dev/sda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders, total 314572800 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: 0x00038162
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 209713151 104605697 5 Extended
/dev/sda3 209713152 314572799 52429824 83 Linux "参照その3"
/dev/sda5 501760 209713151 104605696 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
admin@Ubuntu-SV-1404:~$ sudo vgextend Ubuntu-SV-1404-vg /dev/sda3
Volume group "Ubuntu-SV-1404-vg" successfully extended
admin@Ubuntu-SV-1404:~$ sudo lvextend -l +100%FREE /dev/Ubuntu-SV-1404-vg/root
Extending logical volume root to 148.76 GiB
Logical volume root successfully resized
admin@Ubuntu-SV-1404:~$ sudo resize2fs /dev/Ubuntu-SV-1404-vg/root
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/Ubuntu-SV-1404-vg/root is mounted on /; on-line resizing required
old_desc_blocks = 7, new_desc_blocks = 10
The filesystem on /dev/Ubuntu-SV-1404-vg/root is now 38996992 blocks long.
admin@Ubuntu-SV-1404:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 481M 4.0K 481M 1% /dev
tmpfs 99M 952K 98M 1% /run
/dev/dm-0 147G 81G 60G 58% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 492M 0 492M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 40M 184M 18% /boot