I am completely new to dealing with filesystems and disk. I have ssh access to a physical machine which has two physical disks I believe.
When I do fdisk -l
I get:
root@206-166-40-41-os-compute:/home/prjdefault# fdisk -l
Disk /dev/sda: 73.4 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders, total 143305920 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 1048576 bytes
I/O size (minimum/optimal): 1048576 bytes / 1048576 bytes
Alignment offset: 405504 bytes
Disk identifier: 0x0001d370
Device Boot Start End Blocks Id System
/dev/sda1 2048 143296511 71647232 83 Linux
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 73.4 GB, 73372631040 bytes
98 heads, 9 sectors/track, 162478 cylinders, total 143305920 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 1048576 bytes
I/O size (minimum/optimal): 1048576 bytes / 1048576 bytes
Alignment offset: 12288 bytes
Disk identifier: 0x1f7aafb8
Device Boot Start End Blocks Id System
/dev/sdb1 24 143305919 71652948 8e Linux LVM
Disk /dev/mapper/vgroot-lvroot: 15.0 GB, 14998831104 bytes
255 heads, 63 sectors/track, 1823 cylinders, total 29294592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 1048576 bytes
I/O size (minimum/optimal): 1048576 bytes / 1048576 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgroot-lvroot doesn't contain a valid partition table
and df -h
gives me:
root@206-166-40-41-os-compute:/home/prjdefault# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 4.0K 16G 1% /dev
tmpfs 3.2G 556K 3.2G 1% /run
/dev/dm-0 14G 3.9G 9.1G 31% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 16G 0 16G 0% /run/shm
none 100M 0 100M 0% /run/user
and pvdisplay -v
:
root@206-166-40-41-os-compute:/home/prjdefault# pvdisplay -v
Scanning for physical volume names
--- Physical volume ---
PV Name /dev/sda1
VG Name vgroot
PV Size 68.33 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 17491
Free PE 13915
Allocated PE 3576
PV UUID oxpDr3-ZVTm-IPd9-Lgfq-wrfA-Z64o-zRS25Z
--- Physical volume ---
PV Name /dev/sdb1
VG Name vgroot
PV Size 68.33 GiB / not usable 1.58 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 17493
Free PE 17493
Allocated PE 0
PV UUID psfXAo-HhvA-fl2S-RwA6-IuBX-pmRr-flej70
As can be seen from output of df
I am almost already using up all my disk space. I need to use this machine as a database, I have the database installed but while loading the database I hit out of space error so I had to delete everything and now I am trying to utilize all the disk space from LVM volumes but I cannot figure out how to do it. I tried following this tutorial but I did not know where to mount the new partition so it can add space to my home directory?
My question might be unclear as I am not familiar with the filesystems jargon in linux.
Edit: Also adding pvdisplay -m
just in case, as well as vgs
, lvs
:
root@206-166-40-41-os-compute:/home/prjdefault# pvdisplay -m
--- Physical volume ---
PV Name /dev/sda1
VG Name vgroot
PV Size 68.33 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 17491
Free PE 13915
Allocated PE 3576
PV UUID oxpDr3-ZVTm-IPd9-Lgfq-wrfA-Z64o-zRS25Z
--- Physical Segments ---
Physical extent 0 to 3575:
Logical volume /dev/vgroot/lvroot
Logical extents 0 to 3575
Physical extent 3576 to 17490:
FREE
--- Physical volume ---
PV Name /dev/sdb1
VG Name vgroot
PV Size 68.33 GiB / not usable 1.58 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 17493
Free PE 17493
Allocated PE 0
PV UUID psfXAo-HhvA-fl2S-RwA6-IuBX-pmRr-flej70
--- Physical Segments ---
Physical extent 0 to 17492:
FREE
prjdefault@206-166-40-41-os-compute:~$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
vgroot 2 1 0 wz--n- 136.66g 122.69g
prjdefault@206-166-40-41-os-compute:~$ sudo lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lvroot vgroot -wi-ao--- 13.97g
vgs
andlvs
man lvextend
andman lvcreate