daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Sep 7th, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@localhost:~# vgs
  2.   VG           #PV #LV #SN Attr   VSize  VFree
  3.   localhost-vg   2   2   0 wz--n- 29.05g 19.30g
  4. root@localhost:~# vgdisplay
  5.   --- Volume group ---
  6.   VG Name               localhost-vg
  7.   System ID
  8.   Format                lvm2
  9.   Metadata Areas        2
  10.   Metadata Sequence No  4
  11.   VG Access             read/write
  12.   VG Status             resizable
  13.   MAX LV                0
  14.   Cur LV                2
  15.   Open LV               2
  16.   Max PV                0
  17.   Cur PV                2
  18.   Act PV                2
  19.   VG Size               29.05 GiB
  20.   PE Size               4.00 MiB
  21.   Total PE              7438
  22.   Alloc PE / Size       2498 / 9.76 GiB
  23.   Free  PE / Size       4940 / 19.30 GiB
  24.   VG UUID               XNkIcX-v0Kg-tUGr-PT7f-6ahD-lWo0-J3PxjQ
  25.  
  26. root@localhost:~# lvextend -l +12440 /dev/localhost-vg/root
  27.   Insufficient free space: 12440 extents needed, but only 4940 available
  28. root@localhost:~# resize2fs /dev/localhost-vg/root
  29. resize2fs 1.42.12 (29-Aug-2014)
  30. The filesystem is already 2440192 (4k) blocks long.  Nothing to do!
  31.  
  32. root@localhost:~# df -h
  33. Filesystem      Size  Used Avail Use% Mounted on
  34. /dev/dm-0       9.1G  1.2G  7.5G  14% /
  35. udev             10M     0   10M   0% /dev
  36. tmpfs           605M   24M  581M   4% /run
  37. tmpfs           1.5G     0  1.5G   0% /dev/shm
  38. tmpfs           5.0M     0  5.0M   0% /run/lock
  39. tmpfs           1.5G     0  1.5G   0% /sys/fs/cgroup
  40. /dev/sda1       236M   33M  191M  15% /boot
  41. root@localhost:~#
RAW Paste Data
Top