Recently we configured an Ubuntu 16.04 on Server. We have two 256 GBs SSDs. After a while we recognised that our main RAID partition has only 20GBs while other partition has more than 200GBs.
Here's what fdisk -l
prints out:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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
Disklabel type: dos
Disk identifier: 0x807adac1
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 614399 612352 299M fd Linux raid autodetect
/dev/sda2 614400 1662975 1048576 512M 82 Linux swap / Solaris
/dev/sda3 1662976 43606015 41943040 20G fd Linux raid autodetect
/dev/sda4 43606016 500117503 456511488 217.7G fd Linux raid autodetect
Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 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
Disklabel type: dos
Disk identifier: 0x9a57a62a
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 614399 612352 299M fd Linux raid autodetect
/dev/sdb2 614400 1662975 1048576 512M 82 Linux swap / Solaris
/dev/sdb3 1662976 43606015 41943040 20G fd Linux raid autodetect
/dev/sdb4 43606016 500117503 456511488 217.7G fd Linux raid autodetect
Disk /dev/md0: 298.7 MiB, 313196544 bytes, 611712 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/md2: 217.6 GiB, 233599664128 bytes, 456249344 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: 20 GiB, 21458059264 bytes, 41910272 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
The problem is we run out of space everytime we want to install or run something new on /dev/md1 which is our main partition.
Question is though, how can we run away from this? Is there a way to use /dev/md2
beside /dev/md1
so that we don't encounter low space disk issues or even shrink /dev/md2
and grow /dev/md1
?
We followed so many tutorials but no luck resizing /dev/md1
.