SHARE
TWEET
Untitled
a guest
Sep 7th, 2016
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- root@localhost:~# vgs
- VG #PV #LV #SN Attr VSize VFree
- localhost-vg 2 2 0 wz--n- 29.05g 19.30g
- root@localhost:~# vgdisplay
- --- Volume group ---
- VG Name localhost-vg
- System ID
- Format lvm2
- Metadata Areas 2
- Metadata Sequence No 4
- 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 29.05 GiB
- PE Size 4.00 MiB
- Total PE 7438
- Alloc PE / Size 2498 / 9.76 GiB
- Free PE / Size 4940 / 19.30 GiB
- VG UUID XNkIcX-v0Kg-tUGr-PT7f-6ahD-lWo0-J3PxjQ
- root@localhost:~# lvextend -l +12440 /dev/localhost-vg/root
- Insufficient free space: 12440 extents needed, but only 4940 available
- root@localhost:~# resize2fs /dev/localhost-vg/root
- resize2fs 1.42.12 (29-Aug-2014)
- The filesystem is already 2440192 (4k) blocks long. Nothing to do!
- root@localhost:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/dm-0 9.1G 1.2G 7.5G 14% /
- udev 10M 0 10M 0% /dev
- tmpfs 605M 24M 581M 4% /run
- tmpfs 1.5G 0 1.5G 0% /dev/shm
- tmpfs 5.0M 0 5.0M 0% /run/lock
- tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
- /dev/sda1 236M 33M 191M 15% /boot
- root@localhost:~#
RAW Paste Data
