Extend LVM missing space


(Tim Miles) #1

Hi,

I installed NethServer on a server that has 3 hard drives. I used the interactive installer and it only detected one hard drive.
After installing, I noticed that the other 2 hard drives were left alone, so I decided to extend the VolGroup-lv_root to the second hard drive using the following guide: Extend and Reduce LVMs in Linux

Everything went smooth but now I found that there is 185GB nowhere.

[root@servidor01 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                      3.6T   15G  3.4T   1% /
tmpfs                 7.7G     0  7.7G   0% /dev/shm
/dev/sda1             504M   62M  417M  13% /boot
[root@servidor01 ~]# pvs
  PV         VG       Fmt  Attr PSize PFree
  /dev/sda2  VolGroup lvm2 a--  1.82t    0
  /dev/sdb1  VolGroup lvm2 a--  1.82t    0
[root@servidor01 ~]# vgs
  VG       #PV #LV #SN Attr   VSize VFree
  VolGroup   2   2   0 wz--n- 3.64t    0
[root@servidor01 ~]# lvs
  LV      VG       Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv_root VolGroup -wi-ao---- 3.63t
  lv_swap VolGroup -wi-ao---- 7.75g

Could be a bug?


(Artem Fedai) #2

Show fdisk -l show vgdisplay


(Tim Miles) #3

fdisk and vgdisplay


(Artem Fedai) #4

Include pvcreate /dev/sdc make vgextend then lvexend
show sfdisk -l
and search by “du” for used spase


(Tim Miles) #5

Don’t want to include sdc yet until I see what’s happening. :sweat:
sfdisk


(Artem Fedai) #6

Partition table is ok, somth inside of logical volume , or maybe it is MBR limits and disk should be in GPT


(Tim Miles) #7

I have no clue on how to fix this. This is out of my knowledge.
For now I’m ignoring this but I would to know what’s wrong.

Thanks.


(Artem Fedai) #8

So you have 1.8 Tb disk , sum of them it is 3.6 Tb. LVM show all 3.6 Tb in vgdisplay. U could only do lvresize -r -L -2000M /dev/VolGroup/lv_root and reboot, then list of vgdisplay and do df-h inside of system