Bumped by Community user
    Bumped by Community user
3 Rollback to Revision 1
source | link
=============================================================================

Thanks for help , the lost space has found . I run fdisk -l and found that i need to create new partition on 2 disks , i created new partitions , after that i created 2 phisical volumes and added it to VG . And now i can use the space . One problem doesn't solved . I still see Logical Volume VDI but i can't do nothing with it .


Wed Dec 30 05:52:28 root@oldpc:/dev/centos#lvdisplay centos/vdi
  --- Logical volume ---
  LV Name                vdi
  VG Name                centos
  LV UUID                mwPyhU-r32l-J5Mj-EAIY-fLjL-dfXU-1vf1jc
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2015-12-18 19:41:58 +0200
  LV Pool metadata       vdi_tmeta
  LV Pool data           vdi_tdata
  LV Status              available
  # open                 5
  LV Size                251.46 GiB
  Allocated pool data    4.14%
  Allocated metadata     2.43%
  Current LE             64373
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

****

Wed Dec 30 06:00:35 root@oldpc:/dev/centos#ls -l
total 0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 home -> ../dm-7
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 newone -> ../dm-9
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 root -> ../dm-4
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 swap -> ../dm-0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 usr -> ../dm-5
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 var -> ../dm-8


Wed Dec 30 06:25:08 root@oldpc:/dev/centos#lvs
  LV     VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home   centos Vwi-aotz--  93.13g vdi         6.02
  newone centos -wi-a-----  15.75g
  root   centos Vwi-aotz--  65.88g vdi         1.63
  swap   centos -wi-ao----   7.45g
  usr    centos Vwi-aotz--  93.13g vdi         3.25
  var    centos Vwi-aotz--   9.31g vdi         7.43
  vdi    centos twi-aotz-- 251.46g             4.14   2.43
=============================================================================

Thanks for help , the lost space has found . I run fdisk -l and found that i need to create new partition on 2 disks , i created new partitions , after that i created 2 phisical volumes and added it to VG . And now i can use the space . One problem doesn't solved . I still see Logical Volume VDI but i can't do nothing with it .


Wed Dec 30 05:52:28 root@oldpc:/dev/centos#lvdisplay centos/vdi
  --- Logical volume ---
  LV Name                vdi
  VG Name                centos
  LV UUID                mwPyhU-r32l-J5Mj-EAIY-fLjL-dfXU-1vf1jc
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2015-12-18 19:41:58 +0200
  LV Pool metadata       vdi_tmeta
  LV Pool data           vdi_tdata
  LV Status              available
  # open                 5
  LV Size                251.46 GiB
  Allocated pool data    4.14%
  Allocated metadata     2.43%
  Current LE             64373
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

****

Wed Dec 30 06:00:35 root@oldpc:/dev/centos#ls -l
total 0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 home -> ../dm-7
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 newone -> ../dm-9
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 root -> ../dm-4
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 swap -> ../dm-0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 usr -> ../dm-5
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 var -> ../dm-8


Wed Dec 30 06:25:08 root@oldpc:/dev/centos#lvs
  LV     VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home   centos Vwi-aotz--  93.13g vdi         6.02
  newone centos -wi-a-----  15.75g
  root   centos Vwi-aotz--  65.88g vdi         1.63
  swap   centos -wi-ao----   7.45g
  usr    centos Vwi-aotz--  93.13g vdi         3.25
  var    centos Vwi-aotz--   9.31g vdi         7.43
  vdi    centos twi-aotz-- 251.46g             4.14   2.43
2 added 2089 characters in body
source | link
=============================================================================

Thanks for help , the lost space has found . I run fdisk -l and found that i need to create new partition on 2 disks , i created new partitions , after that i created 2 phisical volumes and added it to VG . And now i can use the space . One problem doesn't solved . I still see Logical Volume VDI but i can't do nothing with it .


Wed Dec 30 05:52:28 root@oldpc:/dev/centos#lvdisplay centos/vdi
  --- Logical volume ---
  LV Name                vdi
  VG Name                centos
  LV UUID                mwPyhU-r32l-J5Mj-EAIY-fLjL-dfXU-1vf1jc
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2015-12-18 19:41:58 +0200
  LV Pool metadata       vdi_tmeta
  LV Pool data           vdi_tdata
  LV Status              available
  # open                 5
  LV Size                251.46 GiB
  Allocated pool data    4.14%
  Allocated metadata     2.43%
  Current LE             64373
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

****

Wed Dec 30 06:00:35 root@oldpc:/dev/centos#ls -l
total 0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 home -> ../dm-7
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 newone -> ../dm-9
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 root -> ../dm-4
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 swap -> ../dm-0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 usr -> ../dm-5
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 var -> ../dm-8


Wed Dec 30 06:25:08 root@oldpc:/dev/centos#lvs
  LV     VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home   centos Vwi-aotz--  93.13g vdi         6.02
  newone centos -wi-a-----  15.75g
  root   centos Vwi-aotz--  65.88g vdi         1.63
  swap   centos -wi-ao----   7.45g
  usr    centos Vwi-aotz--  93.13g vdi         3.25
  var    centos Vwi-aotz--   9.31g vdi         7.43
  vdi    centos twi-aotz-- 251.46g             4.14   2.43
=============================================================================

Thanks for help , the lost space has found . I run fdisk -l and found that i need to create new partition on 2 disks , i created new partitions , after that i created 2 phisical volumes and added it to VG . And now i can use the space . One problem doesn't solved . I still see Logical Volume VDI but i can't do nothing with it .


Wed Dec 30 05:52:28 root@oldpc:/dev/centos#lvdisplay centos/vdi
  --- Logical volume ---
  LV Name                vdi
  VG Name                centos
  LV UUID                mwPyhU-r32l-J5Mj-EAIY-fLjL-dfXU-1vf1jc
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2015-12-18 19:41:58 +0200
  LV Pool metadata       vdi_tmeta
  LV Pool data           vdi_tdata
  LV Status              available
  # open                 5
  LV Size                251.46 GiB
  Allocated pool data    4.14%
  Allocated metadata     2.43%
  Current LE             64373
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

****

Wed Dec 30 06:00:35 root@oldpc:/dev/centos#ls -l
total 0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 home -> ../dm-7
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 newone -> ../dm-9
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 root -> ../dm-4
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 swap -> ../dm-0
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 usr -> ../dm-5
lrwxrwxrwx. 1 root root 7 Dec 24 06:14 var -> ../dm-8


Wed Dec 30 06:25:08 root@oldpc:/dev/centos#lvs
  LV     VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home   centos Vwi-aotz--  93.13g vdi         6.02
  newone centos -wi-a-----  15.75g
  root   centos Vwi-aotz--  65.88g vdi         1.63
  swap   centos -wi-ao----   7.45g
  usr    centos Vwi-aotz--  93.13g vdi         3.25
  var    centos Vwi-aotz--   9.31g vdi         7.43
  vdi    centos twi-aotz-- 251.46g             4.14   2.43
    Post Migrated Here from serverfault.com
1
source | link

Lost space in LVM

LVM

Hey. First of all I want to say excuse me for my bad English. I a problem after installing CentOS 7 with LVM. Some space lost after problem with LVM configuration.

I tried to add some logical volume and to map it to folder /vdi. It had some error and I skipped, to do it after installation.

Now I have Logical Volume without LV Path and I have no idea what to do with it. The computer has 2 same disks, 250 GB.

PVDisplay :


 --- Physical volume ---

  PV Name               /dev/sda2
  VG Name               centos
  PV Size               136.48 GiB / not usable 2.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              34939
  Free PE               0
  Allocated PE          34939
  PV UUID               vsobHT-PuGe-0rvc-yvum-t9nz-LvIm-5dEHP8

  --- Physical volume ---

  PV Name               /dev/sdb1
  VG Name               centos
  PV Size               138.44 GiB / not usable 2.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              35439
  Free PE               0
  Allocated PE          35439
  PV UUID               8Wh85T-4JLh-Mx4n-d4u3-xZ9s-H4wn-9rI1OT

VGDisplay


  --- Volume group ---

  VG Name               centos
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  16
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                7
  Open LV               5
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               274.91 GiB
  PE Size               4.00 MiB
  Total PE              70378
  Alloc PE / Size       70378 / 274.91 GiB
  Free  PE / Size       0 / 0
  VG UUID               NVtlTj-8tx1-0rph-g8VA-TXXH-lFV2-k0zfdO

LVDisplay


  --- Logical volume ---

  LV Name                vdi
  VG Name                centos
  LV UUID                mwPyhU-r32l-J5Mj-EAIY-fLjL-dfXU-1vf1jc
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2015-12-18 19:41:58 +0200
  LV Pool metadata       vdi_tmeta
  LV Pool data           vdi_tdata
  LV Status              available
  # open                 5
  LV Size                251.46 GiB
  Allocated pool data    4.14%
  Allocated metadata     2.43%
  Current LE             64373
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

df

Filesystem              Type      Size  Used Avail Use% Mounted on
/dev/mapper/centos-root ext4       55G   76M   52G   1% /
devtmpfs                devtmpfs  3.8G     0  3.8G   0% /dev
tmpfs                   tmpfs     3.8G     0  3.8G   0% /dev/shm
tmpfs                   tmpfs     3.8G  8.6M  3.8G   1% /run
tmpfs                   tmpfs     3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/centos-usr  ext4       92G  1.3G   86G   2% /usr
/dev/sda1               ext4      1.9G  147M  1.7G   9% /boot
/dev/mapper/centos-home ext4       92G  4.1G   83G   5% /home
/dev/mapper/centos-var  ext4      9.1G  136M  8.5G   2% /var
tmpfs                   tmpfs     773M     0  773M   0% /run/user/0}

I hope this information gives you an overview of the problem and somebody knows the solution. Thanks in advance.