How to expand lv_root

NethServer Version: 7.6.1810
Module: OS

I have recently installed a new 7.6 to use as a nas to backup our data.

I have noticed, after having installed at the customer site, that lv_root is 227 Gb instead of 3Tb

I have 4 1.0tb hard disks, and I cannot figure out how to exapnd lv_root because of the default raid configuration.

How can I expand lv_root without reinstalling everything?
Can someone help me?

pvdisplay
— Physical volume —
PV Name /dev/md2
VG Name VolGroup
PV Size <230.76 GiB / not usable 0
Allocatable yes
PE Size 4.00 MiB
Total PE 59074
Free PE 1
Allocated PE 59073
PV UUID JbZucA-CANS-ZWFL-P5ZH-xP6g-HfOx-fKWj23

[root@nethnas ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/md2
  VG Name               VolGroup
  PV Size               <230.76 GiB / not usable 0
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              59074
  Free PE               1
  Allocated PE          59073
  PV UUID               JbZucA-CANS-ZWFL-P5ZH-xP6g-HfOx-fKWj23

lvdisplay

— Logical volume —
LV Path /dev/VolGroup/lv_root
LV Name lv_root
VG Name VolGroup
LV UUID KLJYnc-6Jew-u5bO-A9Li-OpcZ-Zpd9-q3vexA
LV Write Access read/write
LV Creation host, time localhost, 2018-12-20 15:14:39 +0100
LV Status available

open 1

LV Size 227.00 GiB
Current LE 58113
Segments 1
Allocation inherit
Read ahead sectors auto

  • currently set to 256
    Block device 253:0

— Logical volume —
LV Path /dev/VolGroup/lv_swap
LV Name lv_swap
VG Name VolGroup
LV UUID 93trBb-C8n3-FDzw-Ditu-3SIs-F3Kn-gHGlV9
LV Write Access read/write
LV Creation host, time localhost, 2018-12-20 15:15:00 +0100
LV Status available

open 2

LV Size 3.75 GiB
Current LE 960
Segments 1
Allocation inherit
Read ahead sectors auto

  • currently set to 256
    Block device 253:1

— Volume group —
VG Name VolGroup
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <230.76 GiB
PE Size 4.00 MiB
Total PE 59074
Alloc PE / Size 59073 / 230.75 GiB
Free PE / Size 1 / 4.00 MiB
VG UUID DU6nWf-h4CQ-gyEk-TOLy-gd9x-0Gyl-1qVXJK

fdisk

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 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 label type: dos
Disk identifier: 0x000df54b

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 fd Linux raid autodetect
/dev/sda2 2099200 1953523711 975712256 fd Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 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 label type: dos
Disk identifier: 0x000ab35f

Device Boot Start End Blocks Id System

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes, 1953525168 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 label type: dos
Disk identifier: 0x000783a4

Device Boot Start End Blocks Id System

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes, 1953525168 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 label type: dos
Disk identifier: 0x00047016

Device Boot Start End Blocks Id System

Disk /dev/sde: 250.1 GB, 250059350016 bytes, 488397168 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 label type: dos
Disk identifier: 0x000a9ac0

Device Boot Start End Blocks Id System
/dev/sde1 * 2099200 4196351 1048576 fd Linux raid autodetect
/dev/sde2 4196352 488396799 242100224 fd Linux raid autodetect

Disk /dev/md2: 247.8 GB, 247775363072 bytes, 483936256 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 /dev/md1: 1071 MB, 1071644672 bytes, 2093056 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 /dev/mapper/VolGroup-lv_root: 243.7 GB, 243743588352 bytes, 476061696 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 /dev/mapper/VolGroup-lv_swap: 4026 MB, 4026531840 bytes, 7864320 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

I think the problem is the sde disk that is in RAID with the other disks. If u have RAID 1 including the sde disk, maximum space available for the RAID is equal to the smaller disk (250GB).

Can u post the screenshot of RAID status in dashboard?
How have u installed NethServer? Have you modify some parameters?

Thanks.