[SOLVED] Services dying on snapraid sync execution!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Using one of my parity disks as a temp holding just in case. Something is off though. I did an rsync from my /snapraid/pool (mergerfs directory) > this mountpoint.
How can I have 2.9t total on the pool, but rsync only moved 2.3? I know my content files on each aren't that big and overwrote each other. 600gigs isn't a small error.
Code:
rsync -auv --progress /snapraid/pool/* /snapraid/parity/4tb35/
sending incremental file list
sent 4,670,106 bytes received 3,178 bytes 718,966.77 bytes/sec
total size is 2,427,928,040,391 speedup is 519,533.60
*EDIT* Just checked, no hidden directories / files either. Could I possibly have managed to duplicate some stuff at one point? I have had a few drives go south so in copying data off the drive... idk. Only answer?
Last edited by jmgibson1981; 04-04-2021 at 05:22 PM.
1. If there is matching data already at the destination that rsync is copying it will not be transferred. Rsync is different than cp in that cp copies everything and overwrites what is already there, rsync only copies what is needed to make source & destination match (thus the "sync" part.)
In fact with the command you posted just above, rsync only sent ~4.5 MB, not 2.4 TB
Ok. Going to adjust the title of thread to why this whole mess started and explain.
Original title for posterity "Migrating snapraid > raid 1 + lvm. Inconsistency with data totals?"
First off, 99.9% sure all my data is there and I had duplicates. The reason I was looking to switch to raid 1 + lvm was ever since I removed that drive my services would crash on snapraid sync, namely ssh and docker. This is obviously a huge issue. I never found anything in the logs indicating why this was happening during a sync. More frustrating is I had recently moved the server to a remote place with no screen or keyboard. So I've carried it across my yard once or twice... Big yard. As such I cannot definitely with logs prove this is the reason but here is where I'm at.
Snapraid doesn't like duplicates apparently. Near as I can tell I was basically giving my machine a heart attack when I told it to sync. In theory duplicates should never happen if done right. I did not. Instead of restoring lost disk from parity I moved what I could off it into the pool and managed to make a major duplication. As of 3 hours ago when I started the sync my ssh and docker services were at 18 hours of uptime. I had set a crontab for both to restart if they died which runs every 2 minutes as I could be gone for awhile. I just got home, 3 hours later and my ssh and docker are now at 21 hours up. Sync is still going and I had immediate ssh access when I connected.
Ultimately the problem is solved and I now have zero reason to switch to lvm & raid 1. To be honest I probably never would have found this out had I not decided to make that switch once these problems started happening the other day. I didn't bother to post about it because I needed it up now, not whenever I got help so I just did what I could to get it up asap.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.