Software RAID Question

Ed Tignor

Honorable
Apr 22, 2013
2
0
10,510
I set up 4 TB drives as a 3TB RAID 5 on Ubuntu. I am using it for backup, music library, TimeMachine, etc. So presumably I am safe from the loss of a drive. But what if I loose my Ubuntu? Is there configuration about the RAID drive somewhere in my Ubuntu configuration? What precautions do I need to take so that if for some reason I lose, or choose to re-install, Ubuntu, I don't lose everything on my RAID drives?
 
Solution
Backup your data.

RAID is not a backup. Assuming that you are using this as a backup, then the actual data exists already somewhere else, and losing the raid just means reconfiguring and re-copying the data.

Nothing_But_NAS

Honorable
Nov 13, 2012
95
0
10,660

This is not clear. Are you using a single drive with 4 partitions in RAID5?

As stated by the other poster, backup any data you don't want to loose. And if you are using a single drive in your RAID5, then backup everything.

To actually answer your question, if you lost Ubuntu, you can boot from a live media or simply reinstall the OS to access your RAID. Ubuntu uses md for software RAID. The config file is stored in /etc/mdadm.conf or /etc/mdadm/mdadm.conf. The config file is only used to start your RAID automatically so it is no big deal if you loose it. Each device in your RAID5 will contain metadata (stored in the superblock) about the RAID so you can easily start it manually by specifying each device.

You can do "man mdadm" or search for mdadm in your favorite browser for more reading.

 

Ed Tignor

Honorable
Apr 22, 2013
2
0
10,510


Exactly what I needed - and I will pursue the reading you have suggested.

To clarify. I have 4 one TB drives configured in a 3 TB Raid array. I am backing up my Mac to the Raid array using time machine. There is nothing on the drive that is not somewhere else. But I was curious if I would be able to recover my Raid array if I lost my OS since it is a software Raid.

Thanks,
Ed
 

TRENDING THREADS