Setting up RAID 1 on 14.04 with an existing drive












9















I have a currently installed Seagate ST3000DM001 (about 90% full) and a new Seagate ST3000DM001 (blank). I would like to setup RAID 1 without losing the data on my currently installed drive.



If I use the mdadm process outlined in this tutorial: http://www.mysolutions.it/tutorial-mdadm-software-raid-ubuntu-debian-systems/, will my data be preserved?










share|improve this question























  • Also see serverfault.com/q/44574/229499

    – muru
    Sep 21 '14 at 18:03
















9















I have a currently installed Seagate ST3000DM001 (about 90% full) and a new Seagate ST3000DM001 (blank). I would like to setup RAID 1 without losing the data on my currently installed drive.



If I use the mdadm process outlined in this tutorial: http://www.mysolutions.it/tutorial-mdadm-software-raid-ubuntu-debian-systems/, will my data be preserved?










share|improve this question























  • Also see serverfault.com/q/44574/229499

    – muru
    Sep 21 '14 at 18:03














9












9








9


10






I have a currently installed Seagate ST3000DM001 (about 90% full) and a new Seagate ST3000DM001 (blank). I would like to setup RAID 1 without losing the data on my currently installed drive.



If I use the mdadm process outlined in this tutorial: http://www.mysolutions.it/tutorial-mdadm-software-raid-ubuntu-debian-systems/, will my data be preserved?










share|improve this question














I have a currently installed Seagate ST3000DM001 (about 90% full) and a new Seagate ST3000DM001 (blank). I would like to setup RAID 1 without losing the data on my currently installed drive.



If I use the mdadm process outlined in this tutorial: http://www.mysolutions.it/tutorial-mdadm-software-raid-ubuntu-debian-systems/, will my data be preserved?







hard-drive raid mdadm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 21 '14 at 15:47









ShayneShayne

50126




50126













  • Also see serverfault.com/q/44574/229499

    – muru
    Sep 21 '14 at 18:03



















  • Also see serverfault.com/q/44574/229499

    – muru
    Sep 21 '14 at 18:03

















Also see serverfault.com/q/44574/229499

– muru
Sep 21 '14 at 18:03





Also see serverfault.com/q/44574/229499

– muru
Sep 21 '14 at 18:03










1 Answer
1






active

oldest

votes


















10














It is possible, but know that it will take a bit of time for the mirror to finish since we are talking about 3 TB. What I would do is:




  1. First prepare the disk with gdisk since fdisk can not do a partition larger than 2TB. Let us assume that the partition created was sdb1


  2. Run sudo mdadm --create --verbose /dev/md0 --force --level=1 --raid-devices=1 /dev/sdb1. The important part here is to tell mdadm that you are using --raid-devices=1 one disk right now for the RAID Level 1.


  3. Format the newly created RAID partition and copy everything from the original disk to this partition.



  4. Now prepare the other drive to be included to the RAID by issuing the following command (Assuming the original drive is sda1:



    sudo mdadm --grow /dev/md0 --raid-devices=2 --add /dev/sda1


    This will grow the RAID Array (md0), set the amount of devices on it to 2 (sdb1, sda1) and add the original sda1 to it.




You can check the process of it with sudo mdadm --detail /dev/md0 it should show something like this at the end:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 spare rebuilding /dev/sda1


And after it is finished:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 active sync /dev/sda1


I recommend a reboot after this to make Nautilus see the RAID correctly. You can verify this is working but literally removing one of the drives while having the unit mounted and still being able to execute or view a video in it. Of course the output of --detail above would be something like:



Number   Major   Minor   RaidDevice State
0 0 0 0 removed
1 8 65 1 active sync /dev/sda1


In this case I disconnected the drive sdb and still could work on the information.



UPDATE: Since util-linux 2.24, fdisk not supports partitioning 2+ TB and has support for GPT schemes. This support has landed in Ubuntu 14.10. Apart from this, the interface has gotten much friendlier and it supports better human readable sizes. The overall changes can be found in:



util-linux 2.24 - Release Notes
util-linux 2.25 - Release Notes






share|improve this answer


























  • Simple solution to a simple question. Thanks Luis!

    – Shayne
    Sep 22 '14 at 13:40











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f526747%2fsetting-up-raid-1-on-14-04-with-an-existing-drive%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









10














It is possible, but know that it will take a bit of time for the mirror to finish since we are talking about 3 TB. What I would do is:




  1. First prepare the disk with gdisk since fdisk can not do a partition larger than 2TB. Let us assume that the partition created was sdb1


  2. Run sudo mdadm --create --verbose /dev/md0 --force --level=1 --raid-devices=1 /dev/sdb1. The important part here is to tell mdadm that you are using --raid-devices=1 one disk right now for the RAID Level 1.


  3. Format the newly created RAID partition and copy everything from the original disk to this partition.



  4. Now prepare the other drive to be included to the RAID by issuing the following command (Assuming the original drive is sda1:



    sudo mdadm --grow /dev/md0 --raid-devices=2 --add /dev/sda1


    This will grow the RAID Array (md0), set the amount of devices on it to 2 (sdb1, sda1) and add the original sda1 to it.




You can check the process of it with sudo mdadm --detail /dev/md0 it should show something like this at the end:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 spare rebuilding /dev/sda1


And after it is finished:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 active sync /dev/sda1


I recommend a reboot after this to make Nautilus see the RAID correctly. You can verify this is working but literally removing one of the drives while having the unit mounted and still being able to execute or view a video in it. Of course the output of --detail above would be something like:



Number   Major   Minor   RaidDevice State
0 0 0 0 removed
1 8 65 1 active sync /dev/sda1


In this case I disconnected the drive sdb and still could work on the information.



UPDATE: Since util-linux 2.24, fdisk not supports partitioning 2+ TB and has support for GPT schemes. This support has landed in Ubuntu 14.10. Apart from this, the interface has gotten much friendlier and it supports better human readable sizes. The overall changes can be found in:



util-linux 2.24 - Release Notes
util-linux 2.25 - Release Notes






share|improve this answer


























  • Simple solution to a simple question. Thanks Luis!

    – Shayne
    Sep 22 '14 at 13:40
















10














It is possible, but know that it will take a bit of time for the mirror to finish since we are talking about 3 TB. What I would do is:




  1. First prepare the disk with gdisk since fdisk can not do a partition larger than 2TB. Let us assume that the partition created was sdb1


  2. Run sudo mdadm --create --verbose /dev/md0 --force --level=1 --raid-devices=1 /dev/sdb1. The important part here is to tell mdadm that you are using --raid-devices=1 one disk right now for the RAID Level 1.


  3. Format the newly created RAID partition and copy everything from the original disk to this partition.



  4. Now prepare the other drive to be included to the RAID by issuing the following command (Assuming the original drive is sda1:



    sudo mdadm --grow /dev/md0 --raid-devices=2 --add /dev/sda1


    This will grow the RAID Array (md0), set the amount of devices on it to 2 (sdb1, sda1) and add the original sda1 to it.




You can check the process of it with sudo mdadm --detail /dev/md0 it should show something like this at the end:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 spare rebuilding /dev/sda1


And after it is finished:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 active sync /dev/sda1


I recommend a reboot after this to make Nautilus see the RAID correctly. You can verify this is working but literally removing one of the drives while having the unit mounted and still being able to execute or view a video in it. Of course the output of --detail above would be something like:



Number   Major   Minor   RaidDevice State
0 0 0 0 removed
1 8 65 1 active sync /dev/sda1


In this case I disconnected the drive sdb and still could work on the information.



UPDATE: Since util-linux 2.24, fdisk not supports partitioning 2+ TB and has support for GPT schemes. This support has landed in Ubuntu 14.10. Apart from this, the interface has gotten much friendlier and it supports better human readable sizes. The overall changes can be found in:



util-linux 2.24 - Release Notes
util-linux 2.25 - Release Notes






share|improve this answer


























  • Simple solution to a simple question. Thanks Luis!

    – Shayne
    Sep 22 '14 at 13:40














10












10








10







It is possible, but know that it will take a bit of time for the mirror to finish since we are talking about 3 TB. What I would do is:




  1. First prepare the disk with gdisk since fdisk can not do a partition larger than 2TB. Let us assume that the partition created was sdb1


  2. Run sudo mdadm --create --verbose /dev/md0 --force --level=1 --raid-devices=1 /dev/sdb1. The important part here is to tell mdadm that you are using --raid-devices=1 one disk right now for the RAID Level 1.


  3. Format the newly created RAID partition and copy everything from the original disk to this partition.



  4. Now prepare the other drive to be included to the RAID by issuing the following command (Assuming the original drive is sda1:



    sudo mdadm --grow /dev/md0 --raid-devices=2 --add /dev/sda1


    This will grow the RAID Array (md0), set the amount of devices on it to 2 (sdb1, sda1) and add the original sda1 to it.




You can check the process of it with sudo mdadm --detail /dev/md0 it should show something like this at the end:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 spare rebuilding /dev/sda1


And after it is finished:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 active sync /dev/sda1


I recommend a reboot after this to make Nautilus see the RAID correctly. You can verify this is working but literally removing one of the drives while having the unit mounted and still being able to execute or view a video in it. Of course the output of --detail above would be something like:



Number   Major   Minor   RaidDevice State
0 0 0 0 removed
1 8 65 1 active sync /dev/sda1


In this case I disconnected the drive sdb and still could work on the information.



UPDATE: Since util-linux 2.24, fdisk not supports partitioning 2+ TB and has support for GPT schemes. This support has landed in Ubuntu 14.10. Apart from this, the interface has gotten much friendlier and it supports better human readable sizes. The overall changes can be found in:



util-linux 2.24 - Release Notes
util-linux 2.25 - Release Notes






share|improve this answer















It is possible, but know that it will take a bit of time for the mirror to finish since we are talking about 3 TB. What I would do is:




  1. First prepare the disk with gdisk since fdisk can not do a partition larger than 2TB. Let us assume that the partition created was sdb1


  2. Run sudo mdadm --create --verbose /dev/md0 --force --level=1 --raid-devices=1 /dev/sdb1. The important part here is to tell mdadm that you are using --raid-devices=1 one disk right now for the RAID Level 1.


  3. Format the newly created RAID partition and copy everything from the original disk to this partition.



  4. Now prepare the other drive to be included to the RAID by issuing the following command (Assuming the original drive is sda1:



    sudo mdadm --grow /dev/md0 --raid-devices=2 --add /dev/sda1


    This will grow the RAID Array (md0), set the amount of devices on it to 2 (sdb1, sda1) and add the original sda1 to it.




You can check the process of it with sudo mdadm --detail /dev/md0 it should show something like this at the end:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 spare rebuilding /dev/sda1


And after it is finished:



Number   Major   Minor   RaidDevice State
0 8 49 0 active sync /dev/sdb1
1 8 65 1 active sync /dev/sda1


I recommend a reboot after this to make Nautilus see the RAID correctly. You can verify this is working but literally removing one of the drives while having the unit mounted and still being able to execute or view a video in it. Of course the output of --detail above would be something like:



Number   Major   Minor   RaidDevice State
0 0 0 0 removed
1 8 65 1 active sync /dev/sda1


In this case I disconnected the drive sdb and still could work on the information.



UPDATE: Since util-linux 2.24, fdisk not supports partitioning 2+ TB and has support for GPT schemes. This support has landed in Ubuntu 14.10. Apart from this, the interface has gotten much friendlier and it supports better human readable sizes. The overall changes can be found in:



util-linux 2.24 - Release Notes
util-linux 2.25 - Release Notes







share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 27 '14 at 15:34

























answered Sep 21 '14 at 17:48









Luis AlvaradoLuis Alvarado

146k138486654




146k138486654













  • Simple solution to a simple question. Thanks Luis!

    – Shayne
    Sep 22 '14 at 13:40



















  • Simple solution to a simple question. Thanks Luis!

    – Shayne
    Sep 22 '14 at 13:40

















Simple solution to a simple question. Thanks Luis!

– Shayne
Sep 22 '14 at 13:40





Simple solution to a simple question. Thanks Luis!

– Shayne
Sep 22 '14 at 13:40


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f526747%2fsetting-up-raid-1-on-14-04-with-an-existing-drive%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?