1

I am running Ubuntu server 14. I have two 2 Terabyte Seagate drives raided to make a 4 terabytes. However when I mount the logical drive and run sudo lshw -c disk it shows as having 3999 GB of room. However when I run df command it shows only 2113 gb. I used ext4 when formatting it. I followed this guide to add my drives.

Arronical
  • 20,241
Larry
  • 69

2 Answers2

1

Maybe you have something else configured than raid0. Looks a bit like raid1 cause 2113gb/1024=2,06TB wich might be because of some spare sectors.

If you want to have full size you would need raid0 (stripe), that gives you maximum speed and no extra data safety.

Raid-Levels on Wikipedia

After verifying the correct Raid Type we need to check on the device and how the system sees it.

In your case we have a hardware controller that normally gives raid-arrays as normal drives to the system. I.e. /dev/sdc /dev/sdd etc.

use: sudo lshw -c disk to see the devices Ubuntu sees.

In your case we see that the raid is presented as /dev/sdc

If you have the desktop envirement setup you could simply use gparted (sudo apt-get install gparted). That looks simply like the diskmanager in Windows and is quite selfexplaining.

If you do not have the desktop set up and running a terminal mode server use sudo fdisk /dev/sdc to enter the terminal partitioning tool.

If you have not setup a LVM this will be the guide to follow: How to resize / enlarge / grow a non-LVM ext4 partition Just replace the /dev/??? with your /dev/sdc to match it your configuration.

!!! PLEASE ALWAYS NOTE THAT CHANGES TO THE PARTITIONTABLE WILL/MIGHT RESULT IN A COMPLETE LOSS OF DATA ON THAT DRIVE !!! BACKUP EVERYTHING FIRST!

Hope this will do the trick for you.

KRAER
  • 41
0

The issue is with your disk layout. From the fdisk -l,

Total sectors = 7812456448
Used Sectors = 4294967294 - 2048 = 4294965246
Free Sectors = Total sectors - Used Sectors

To extend and use all sectors:

Follow this nice answer How to resize partition