Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2014 22:18
Show Gist options
  • Save anonymous/5d3c21d1f7b638ae5761 to your computer and use it in GitHub Desktop.
Save anonymous/5d3c21d1f7b638ae5761 to your computer and use it in GitHub Desktop.
root@ubuntu:~# fdisk -l /dev/sda
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: 0x0002acaf
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 209715199 104606721 5 Extended
/dev/sda5 501760 62912511 31205376 8e Linux LVM
root@ubuntu:~# vgdisplay
--- Volume group ---
VG Name moodle
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.76 GiB
PE Size 4.00 MiB
Total PE 7618
Alloc PE / Size 7618 / 29.76 GiB
Free PE / Size 0 / 0
VG UUID Y72yOD-BJfR-S6Pa-Eo1j-GZN6-DSwY-TbdhEj
root@ubuntu:~# pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name moodle
PV Size 29.76 GiB / not usable 1.81 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 7618
Free PE 0
Allocated PE 7618
PV UUID wQ5mJe-p9bv-AoGl-5Xpw-S77Z-xNr2-5D90Hu
root@ubuntu:~# pvscan
PV /dev/sda5 VG moodle lvm2 [29.76 GiB / 0 free]
Total: 1 [29.76 GiB] / in use: 1 [29.76 GiB] / in no VG: 0 [0 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment