This is not an urgent problem, but I would like to know if I am currently making use of both of my hard drives (and/or if I can fix that).
Essentially, I purchased this computer without an OS and I have successfully installed Ubuntu Server on it.
The computer comes with 2 3TB hard drives.
My understanding is that I can either have a RAID0 configuration to have 6 TB of storage space, or a RAID1 configuration where 1 3 TB drive mirrors the other 3 TB drive.
Given that I have started to run analysis on the server, I am OK with mirroring the hard drive (RAID1).
However, I don’t think I have successfully done that. For example, if I check my
/proc/mdstat file, this is what it says:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md126 : active raid1 sda sdb 2930264064 blocks super external:/md127/0 [2/2] [UU] md127 : inactive sda(S) sdb(S) 5040 blocks super external:imsm unused devices: <none>
Likewise, this how those drives are recognized using
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME SIZE FSTYPE TYPE MOUNTPOINT sda 2.7T isw_raid_member disk └─md126 2.7T raid1 ├─md126p1 512M vfat md /boot/efi └─md126p2 2.7T ext4 md / sdb 2.7T isw_raid_member disk └─md126 2.7T raid1 ├─md126p1 512M vfat md /boot/efi └─md126p2 2.7T ext4 md / sr0 1024M rom
However, this is the available space that I have using
Filesystem 1K-blocks Used Available Use% Mounted on udev 16370772 0 16370772 0% /dev tmpfs 3280440 940 3279500 1% /run /dev/md126p2 2882700496 223265236 2512931992 9% / tmpfs 16402180 0 16402180 0% /dev/shm tmpfs 5120 0 5120 0% /run/lock tmpfs 16402180 0 16402180 0% /sys/fs/cgroup /dev/md126p1 523248 6152 517096 2% /boot/efi tmpfs 3280436 0 3280436 0% /run/user/1000
So, my questions are as follows:
Am I actually mirroring my hard drive with a RAID1 configuration?
If so, how can I recover my hard drive is something goes wrong?
/proc/mdstat file, it looks like there is some sort of the link between the drives (since
md126 is listed with
super external:/md127/0, on the 2nd line)
If both hard drives are not currently being used (for RAID1 mirroring), what do I need to change? Can I start mirroring my first hard drive without erasing everything currently on the first drive?