Restore RAID Drive on New OS

282

You want to Assemble your array, not create it. See the man page (mdadm).

Once you do that, back up all your data and start over with a RAID 6 + spare. A linear set basically concatenates all the drive to maximize storage. It also means that if you lose even one of those drives, all of your data is gone.

https://raid.wiki.kernel.org/index.php/RAID_setup#Linear_mode

"Ok, so you have two or more partitions (emphasis mine) which are not necessarily the same size (but of course can be), which you want to append to each other. Spare-disks are not supported here. If a disk dies, the array dies with it. ..."

Share:
282

Related videos on Youtube

Mr. Hankey
Author by

Mr. Hankey

Updated on September 18, 2022

Comments

  • Mr. Hankey
    Mr. Hankey over 1 year

    I have a list with several objects. Each object has its own button. One is an edit button and the other is a save button.

    If I click on the edit button, the button should no longer be displayed and the save button should be displayed. I have implemented this logic. The problem is that when I click on the Edit button, it iterates through the entire list and all the buttons are changed.

    However, when I click on a button, I only want the button to be changed for that element and not for the entire list. How can I make it so that it only applies to one element at a time?

    const [editing, setEditing] = useState(false);
    const editingTraining  = (id) => {
        console.log("Editing works")
        setEditing(!editing);
    }
         {trainingData.map((d, i) => (
                <div key={i}>                
                    {
                        editing === false && <button className="button is-info" onClick={() => editingTraining(d.trainingsid)}>Edit</button>
                    }
                    {
                        editing === true && <button className="button is-success" onClick={() => editingTraining(d.trainingsid)}>Save</button>
                    }
                    <br />
                </div>
            ))}
    
  • john smith
    john smith over 8 years
    Ok I will look how to assemble it. All drives are the same and I want it spanned because I have the data backed up.
  • ppetraki
    ppetraki over 8 years
    If you're going to span disks like that then, at least use RAID 0, so you can write data in stripes across the whole set instead of writing to blocks 0-100 only to the first drive, 101-200 to the second, and so on. Much faster
  • john smith
    john smith over 8 years
    Brill, it worked. For anyone else looking to "assemble" the raid array, I used this link for help ubuntuforums.org/showthread.php?t=923253
  • ppetraki
    ppetraki over 8 years
    @johnsmith Great!
  • john smith
    john smith over 8 years
    ppetraki, can I please ask you, I didn't know how to describe what is /dev/md0? I know it's my array of drives, but like, what do you call it if you want to create a /dev/md0 (i.e. it's not a mount point, so what do you actually call it)?
  • ppetraki
    ppetraki over 8 years
    @johnsmith When I work with a HW RAID, I call the entire shelf of disks an array and each logical lun exposed a "raid set". You'll find lots of slang in this area. A stripe is a stripe, but sometimes people call the pieces that make up a stripe a "chunk", others call it an "extent" (a concept that originally came from filesystems), or even a "segment".