[opensuse] Adding disks to a software RAID array
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home. I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home. Previously: /dev/sda1 / /dev/sda2 /home Now: /dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home When I have re-installed Leap 42.1 onto the SSD, I want to reformat the whole of sda and add it to the md0 array, but I'm not sure of the sequence of steps. Do I just repartition it in YaST to create a new sda1 using the whole disk? If so, which filesystem type should I choose (Linux native, Linux RAID?). Do I format it before adding it to the array (the partition already in the array is formatted as ext4)? Do I have to set up encryption on the new partition, or will this happen automatically when it joins md0? md0 was created using --force as there was initially only one device. Can I add the next device using mdadm --grow --add? Many thanks, Bob -- Bob Williams System: Linux 4.1.20-11-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.21.0, Qt: 5.5.1 and Plasma:
On 2016-05-17 08:34, Bob Williams wrote:
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home.
I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home.
Previously:
/dev/sda1 / /dev/sda2 /home
Now:
/dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home
sda is the SSD, and sdb the rotating rust?
When I have re-installed Leap 42.1 onto the SSD, I want to reformat the whole of sda and add it to the md0 array, but I'm not sure of the sequence of steps.
Don't. You can not make an array with such dissimilar media. You need two rotating disks. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 17/05/16 10:46, Carlos E. R. wrote:
On 2016-05-17 08:34, Bob Williams wrote:
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home.
I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home.
Previously:
/dev/sda1 / /dev/sda2 /home
Now:
/dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home
sda is the SSD, and sdb the rotating rust?
No, sda and sdb are both 3TB rotating rust. The SSD has not been installed yet, but when it is, I want to use the existing sda to join the md0 array.
When I have re-installed Leap 42.1 onto the SSD, I want to reformat the whole of sda and add it to the md0 array, but I'm not sure of the sequence of steps.
Don't. You can not make an array with such dissimilar media. You need two rotating disks.
See my comment above -- Bob Williams System: Linux 4.1.20-11-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.21.0, Qt: 5.5.1 and Plasma:
On 2016-05-17 12:07, Bob Williams wrote:
On 17/05/16 10:46, Carlos E. R. wrote:
On 2016-05-17 08:34, Bob Williams wrote:
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home.
I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home.
Previously:
/dev/sda1 / /dev/sda2 /home
Now:
/dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home
sda is the SSD, and sdb the rotating rust?
No, sda and sdb are both 3TB rotating rust. The SSD has not been installed yet, but when it is, I want to use the existing sda to join the md0 array.
Why don't you create the raid now, as you have the two rotating disks already installed? I don't understand. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2016-05-17 11:35, Carlos E. R. wrote:
On 2016-05-17 12:07, Bob Williams wrote:
On 17/05/16 10:46, Carlos E. R. wrote:
On 2016-05-17 08:34, Bob Williams wrote:
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home.
I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home.
Previously:
/dev/sda1 / /dev/sda2 /home
Now:
/dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home
sda is the SSD, and sdb the rotating rust?
No, sda and sdb are both 3TB rotating rust. The SSD has not been installed yet, but when it is, I want to use the existing sda to join the md0 array.
Why don't you create the raid now, as you have the two rotating disks already installed? I don't understand.
Because he's intending to use the whole of the disks for the RAID for /home but the older disk still has his root filesystem on it. Personally, I would probably keep the root filesystem on both disks, as a backup to the SSD that can be be booted if ever necessary, and make the /home RAID in the sd*2 partitions on both disks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 17/05/16 11:57, Dave Howorth wrote:
On 2016-05-17 11:35, Carlos E. R. wrote:
On 2016-05-17 12:07, Bob Williams wrote:
On 17/05/16 10:46, Carlos E. R. wrote:
On 2016-05-17 08:34, Bob Williams wrote:
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home.
I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home.
Previously:
/dev/sda1 / /dev/sda2 /home
Now:
/dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home
sda is the SSD, and sdb the rotating rust?
No, sda and sdb are both 3TB rotating rust. The SSD has not been installed yet, but when it is, I want to use the existing sda to join the md0 array.
Why don't you create the raid now, as you have the two rotating disks already installed? I don't understand.
Because he's intending to use the whole of the disks for the RAID for /home but the older disk still has his root filesystem on it.
Correct
Personally, I would probably keep the root filesystem on both disks, as a backup to the SSD that can be be booted if ever necessary, and make the /home RAID in the sd*2 partitions on both disks.
Good idea. -- Bob Williams System: Linux 4.1.20-11-default Distro: openSUSE 42.1 (x86_64) Desktop: KDE Frameworks: 5.21.0, Qt: 5.5.1 and Plasma:
On Tue, May 17, 2016 at 3:46 AM, Carlos E. R.
On 2016-05-17 08:34, Bob Williams wrote:
I am in the process of setting up my system partition on an SSD drive. Working towards this I have bought a second (rotating) hard drive which will form the basis of a RAID1 array for /home.
I have managed to create an encrypted RAID1 array comprising a single drive, onto which I have copied /home.
Previously:
/dev/sda1 / /dev/sda2 /home
Now:
/dev/sda1 / /dev/sda2 not mounted (contains old /home) /dev/sdb1 -> /dev/md0 /home
sda is the SSD, and sdb the rotating rust?
When I have re-installed Leap 42.1 onto the SSD, I want to reformat the whole of sda and add it to the md0 array, but I'm not sure of the sequence of steps.
Don't. You can not make an array with such dissimilar media. You need two rotating disks.
Well you can, but with md/mdadm you'd want the HDD created with --write-mostly. This is explicitly intended to be used with slow devices like over a network for one of the block devices. -- Chris Murphy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Bob Williams
-
Carlos E. R.
-
Chris Murphy
-
Dave Howorth