Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is a weird setup, and I don't quite understand. RAID 0 is striping, which means that half of md2's data resides on md0 and md1, respectively. You can convert md0 to a four-disk array, then remove the two smaller disks (see below), but this will only give you half of the striped data. Am I missing something?
EDIT: I do wonder how much time you'd save by growing a mirrored array vs. just rsync'ing the filesystem. Not so much, perhaps?
Raid 1 stores identical copies across all drives. As such, this has the simplest procedure for adding and removing drives. When a new drive is added, the data is copied across from one of the existing drives. When removing a drive, the drive can simply be deleted from the array.
EDIT2: svg00's quotation comes from the same Wiki page.
Last edited by berndbausch; 12-23-2020 at 02:51 AM.
This is a weird setup, and I don't quite understand...
I started with the 2Tb and got the additional 3Tb disks later. I wanted a single mountpoint for the whole 5Tb and the raid 0 did the job.
I was hoping for a response that would have given me a straightforward way, time is not really the issue.
If it could have been a case of banging the 10Tb in , adding it to the existing raid somehow and just letting it get on with it, followed by the 2nd 10 for the mirror and removing the previous four, that would have been cool with little or no downtime.
Given the answers so far it seems that I would be better creating a new raid1 and rsync'ing, that is just a pain since it has to be rsync'ed with the OS services paused to prevent losing changes - that could take half a day downtime and then putting it in place of the existing raid0, fstab edits etc.
Can't just add the 10's and extend as I am out of sata ports.
I misunderstood this, and of course I did not know your SATA port limitation.
First, you can remove one drive from each mirror, e.g. sdc and sde, thereby making room for attaching the new drives. The mirrors should continue to function with a single disk each.
After that, personally I would create a new RAID md3 from the two new disks and rsync the data from md2 to md3.
Or build another RAID1 (let's call it md4) on top of md2 and md3, then let the md driver perform the synchronization, then remove md2. Not sure if the now degraded md4 can be undone after that. That's why the rsync method seems safer.
Another thought: Build md3 on a different system and rsync the data over the network.
I misunderstood this, and of course I did not know your SATA port limitation.
First, you can remove one drive from each mirror, e.g. sdc and sde, thereby making room for attaching the new drives. The mirrors should continue to function with a single disk each.
After that, personally I would create a new RAID md3 from the two new disks and rsync the data from md2 to md3.
Or build another RAID1 (let's call it md4) on top of md2 and md3, then let the md driver perform the synchronization, then remove md2. Not sure if the now degraded md4 can be undone after that. That's why the rsync method seems safer.
Another thought: Build md3 on a different system and rsync the data over the network.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.