<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 11, 2014 at 6:15 PM, John Heim <span dir="ltr"><<a href="mailto:john@johnheim.com" target="_blank">john@johnheim.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
So we have a failing RAID5 array on our mail server. I rsynced the mail to an external USB drive (formatted ext3, thanks) It looks like I am going to have to completely re-install. I want the outage to be as short as possible. I am thinking this:<br>
<br>
1. Repeat the rsync with the system up so as to not inconvenience users. There will be a lot of "file changed as we read it" kind of errors.<br>
2. Shutdown the mail programs.<br>
3. Run rsync again. This time there shouldn't be any errors.<br>
4. Install the new disks, reformat, re-install.<br>
5. Copy the mail files back.<br>
<br>
Any suggestions as to the most efficient way to do step #5? There would be no point in using rsync because the time it spends checking for changed files would be wasted.<br>
<span class=""><font color="#888888"><br>
John Heim<br>
</font></span></blockquote></div><br><br></div><div class="gmail_extra">'rsync' is still a good option to copy files back. It does not do a full check of files unless they already exist on the destination side, and even then it checks the date and filesize before doing a full checksum. If you use the options, you can preserve timestamps, view progress, and easily stop/restart the copy if needed. I'd use these options: -av --progress --partial. When copying between local disks, it's just a version of 'cp' that gives you a lot more options. Also, I'd recommend running this inside of a 'screen' or 'tmux' session so you can detach and leave it running, and/or protect against the session getting dropped from the network.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">As far as step 5 goes, do you have enough physical space to add the new drives next to the old ones? Then you could make a partition for the user data and stage it directly on the new drives.<br>
<br></div><div class="gmail_extra">Incidentally, the point of a RAID is to be able to replace failing drives without having to go through this process. Is there any reason why you can't just replace the failing drive and rebuild the existing RAID to it?<br>
<br></div><div class="gmail_extra"><br>P.S. RAID is not a backup and you should always have some kind of backup job running to external media regardless of the health of the RAID.<br><br></div><div class="gmail_extra"><br clear="all">
<div>❧ Brian Mathis</div>
<br><br></div></div><div class="gmail_extra"><br clear="all"><div>❧ Brian Mathis</div>
<br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 6:15 PM, John Heim <span dir="ltr"><<a href="mailto:john@johnheim.com" target="_blank">john@johnheim.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
So we have a failing RAID5 array on our mail server. I rsynced the mail to an external USB drive (formatted ext3, thanks) It looks like I am going to have to completely re-install. I want the outage to be as short as possible. I am thinking this:<br>
<br>
1. Repeat the rsync with the system up so as to not inconvenience users. There will be a lot of "file changed as we read it" kind of errors.<br>
2. Shutdown the mail programs.<br>
3. Run rsync again. This time there shouldn't be any errors.<br>
4. Install the new disks, reformat, re-install.<br>
5. Copy the mail files back.<br>
<br>
Any suggestions as to the most efficient way to do step #5? There would be no point in using rsync because the time it spends checking for changed files would be wasted.<br>
<br>
<br>
<br>
an<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
John Heim<br>
email: <a href="mailto:john@johnheim.com" target="_blank">john@johnheim.com</a> skype: john.g.heim<br>
<br>
______________________________<u></u>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br>
</font></span></blockquote></div><br></div>