RAID 10 with external hard drives on linux
i recently turned my old laptop (lenovo G550) into a NAS machine running ubuntu server.
since it's a laptop, i can't put more than 1 SATA HDD (or SSD) into it. because of that, i need to use external HDDs.
how would i do a RAID 10 with external HDDs on linux using only the command line?
linux external-hard-drive raid
add a comment |
i recently turned my old laptop (lenovo G550) into a NAS machine running ubuntu server.
since it's a laptop, i can't put more than 1 SATA HDD (or SSD) into it. because of that, i need to use external HDDs.
how would i do a RAID 10 with external HDDs on linux using only the command line?
linux external-hard-drive raid
add a comment |
i recently turned my old laptop (lenovo G550) into a NAS machine running ubuntu server.
since it's a laptop, i can't put more than 1 SATA HDD (or SSD) into it. because of that, i need to use external HDDs.
how would i do a RAID 10 with external HDDs on linux using only the command line?
linux external-hard-drive raid
i recently turned my old laptop (lenovo G550) into a NAS machine running ubuntu server.
since it's a laptop, i can't put more than 1 SATA HDD (or SSD) into it. because of that, i need to use external HDDs.
how would i do a RAID 10 with external HDDs on linux using only the command line?
linux external-hard-drive raid
linux external-hard-drive raid
asked Dec 23 '18 at 16:11
iamsl4v
82
82
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Generally the answer to RAID10 on Linux is md. It is very good software RAID.
However I am not sure that RAID10 is what you want if you need to fall back to USB2 connecter harddrives.
This shows your laptop as having 3 USB 2 ports. That limits a drive to about 30-35MiB/sec. Which means that the disc is likely much faster than the interface. So USB10 (stripe, mirrored) is probably as fast as mirrored. Which means that RAID1 (mirror) might use have the disc and have near equal performance. *1
And depending on the internal layout those 3 USB port might share a combined bandwith, so max speed of 3 external discs might me limited to 35MiB/sec.
that mean that you have a few choices:
- RAID 10, with all the disc usage of RAID 10 and likely no advantage from half of the discs
- RAID 1 (mirror)
- RAID 1E (using 3 or 4 disc in a mirror).
- Use the ExpressCard/34 interface and add a SATA, SAS or USB3 interface (you will have access to at least one PCI-e lane, so at least 2.5GB/sec which is much faster then USB2)
- Use portmultiplexing on the internal SATA bus. Technically SATA will do fine with that, but most laptops do not seem to support it).
Personally I would choose to either:
- Settle for low cost low USB2 performace. 2 external USB drives, mirrored with mdadm will do just fine
- Or consider a SATA expresscard/34, wither with 2 ports and 2 drives or with a port multiplexer. The geek in me like the last option but it might not makes the most economical sense.
Last note: Please not that you are limited to 100mbit ethernet. So about 10MB/sec. That means that the network interface might be slower than the disk so that the USB2 RAID mirror makes the most sense.
*1: unless doing lots of random access.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387144%2fraid-10-with-external-hard-drives-on-linux%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
Generally the answer to RAID10 on Linux is md. It is very good software RAID.
However I am not sure that RAID10 is what you want if you need to fall back to USB2 connecter harddrives.
This shows your laptop as having 3 USB 2 ports. That limits a drive to about 30-35MiB/sec. Which means that the disc is likely much faster than the interface. So USB10 (stripe, mirrored) is probably as fast as mirrored. Which means that RAID1 (mirror) might use have the disc and have near equal performance. *1
And depending on the internal layout those 3 USB port might share a combined bandwith, so max speed of 3 external discs might me limited to 35MiB/sec.
that mean that you have a few choices:
- RAID 10, with all the disc usage of RAID 10 and likely no advantage from half of the discs
- RAID 1 (mirror)
- RAID 1E (using 3 or 4 disc in a mirror).
- Use the ExpressCard/34 interface and add a SATA, SAS or USB3 interface (you will have access to at least one PCI-e lane, so at least 2.5GB/sec which is much faster then USB2)
- Use portmultiplexing on the internal SATA bus. Technically SATA will do fine with that, but most laptops do not seem to support it).
Personally I would choose to either:
- Settle for low cost low USB2 performace. 2 external USB drives, mirrored with mdadm will do just fine
- Or consider a SATA expresscard/34, wither with 2 ports and 2 drives or with a port multiplexer. The geek in me like the last option but it might not makes the most economical sense.
Last note: Please not that you are limited to 100mbit ethernet. So about 10MB/sec. That means that the network interface might be slower than the disk so that the USB2 RAID mirror makes the most sense.
*1: unless doing lots of random access.
add a comment |
Generally the answer to RAID10 on Linux is md. It is very good software RAID.
However I am not sure that RAID10 is what you want if you need to fall back to USB2 connecter harddrives.
This shows your laptop as having 3 USB 2 ports. That limits a drive to about 30-35MiB/sec. Which means that the disc is likely much faster than the interface. So USB10 (stripe, mirrored) is probably as fast as mirrored. Which means that RAID1 (mirror) might use have the disc and have near equal performance. *1
And depending on the internal layout those 3 USB port might share a combined bandwith, so max speed of 3 external discs might me limited to 35MiB/sec.
that mean that you have a few choices:
- RAID 10, with all the disc usage of RAID 10 and likely no advantage from half of the discs
- RAID 1 (mirror)
- RAID 1E (using 3 or 4 disc in a mirror).
- Use the ExpressCard/34 interface and add a SATA, SAS or USB3 interface (you will have access to at least one PCI-e lane, so at least 2.5GB/sec which is much faster then USB2)
- Use portmultiplexing on the internal SATA bus. Technically SATA will do fine with that, but most laptops do not seem to support it).
Personally I would choose to either:
- Settle for low cost low USB2 performace. 2 external USB drives, mirrored with mdadm will do just fine
- Or consider a SATA expresscard/34, wither with 2 ports and 2 drives or with a port multiplexer. The geek in me like the last option but it might not makes the most economical sense.
Last note: Please not that you are limited to 100mbit ethernet. So about 10MB/sec. That means that the network interface might be slower than the disk so that the USB2 RAID mirror makes the most sense.
*1: unless doing lots of random access.
add a comment |
Generally the answer to RAID10 on Linux is md. It is very good software RAID.
However I am not sure that RAID10 is what you want if you need to fall back to USB2 connecter harddrives.
This shows your laptop as having 3 USB 2 ports. That limits a drive to about 30-35MiB/sec. Which means that the disc is likely much faster than the interface. So USB10 (stripe, mirrored) is probably as fast as mirrored. Which means that RAID1 (mirror) might use have the disc and have near equal performance. *1
And depending on the internal layout those 3 USB port might share a combined bandwith, so max speed of 3 external discs might me limited to 35MiB/sec.
that mean that you have a few choices:
- RAID 10, with all the disc usage of RAID 10 and likely no advantage from half of the discs
- RAID 1 (mirror)
- RAID 1E (using 3 or 4 disc in a mirror).
- Use the ExpressCard/34 interface and add a SATA, SAS or USB3 interface (you will have access to at least one PCI-e lane, so at least 2.5GB/sec which is much faster then USB2)
- Use portmultiplexing on the internal SATA bus. Technically SATA will do fine with that, but most laptops do not seem to support it).
Personally I would choose to either:
- Settle for low cost low USB2 performace. 2 external USB drives, mirrored with mdadm will do just fine
- Or consider a SATA expresscard/34, wither with 2 ports and 2 drives or with a port multiplexer. The geek in me like the last option but it might not makes the most economical sense.
Last note: Please not that you are limited to 100mbit ethernet. So about 10MB/sec. That means that the network interface might be slower than the disk so that the USB2 RAID mirror makes the most sense.
*1: unless doing lots of random access.
Generally the answer to RAID10 on Linux is md. It is very good software RAID.
However I am not sure that RAID10 is what you want if you need to fall back to USB2 connecter harddrives.
This shows your laptop as having 3 USB 2 ports. That limits a drive to about 30-35MiB/sec. Which means that the disc is likely much faster than the interface. So USB10 (stripe, mirrored) is probably as fast as mirrored. Which means that RAID1 (mirror) might use have the disc and have near equal performance. *1
And depending on the internal layout those 3 USB port might share a combined bandwith, so max speed of 3 external discs might me limited to 35MiB/sec.
that mean that you have a few choices:
- RAID 10, with all the disc usage of RAID 10 and likely no advantage from half of the discs
- RAID 1 (mirror)
- RAID 1E (using 3 or 4 disc in a mirror).
- Use the ExpressCard/34 interface and add a SATA, SAS or USB3 interface (you will have access to at least one PCI-e lane, so at least 2.5GB/sec which is much faster then USB2)
- Use portmultiplexing on the internal SATA bus. Technically SATA will do fine with that, but most laptops do not seem to support it).
Personally I would choose to either:
- Settle for low cost low USB2 performace. 2 external USB drives, mirrored with mdadm will do just fine
- Or consider a SATA expresscard/34, wither with 2 ports and 2 drives or with a port multiplexer. The geek in me like the last option but it might not makes the most economical sense.
Last note: Please not that you are limited to 100mbit ethernet. So about 10MB/sec. That means that the network interface might be slower than the disk so that the USB2 RAID mirror makes the most sense.
*1: unless doing lots of random access.
edited Dec 29 '18 at 23:50
answered Dec 23 '18 at 17:17
Hennes
58.9k792141
58.9k792141
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387144%2fraid-10-with-external-hard-drives-on-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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