LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-25-2023, 12:28 AM   #1
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Rep: Reputation: 0
Wich drive does RAID 1 sync?


Hi!
We upgraded our server from 18.04 to 20.04 last week and we removed one of the drives from the RAID 1 to make an image before starting.
So it's out of sync.

I just want to know if I put it back if it'll sync to the currently running OS?
Not sure if I can hotswop it.

Should I first format it perhaps?

I just really don't want it to sync the old OS back to the drive
 
Old 01-25-2023, 05:08 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 924

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
All RAIDs I know of, md included, treat re-adding a drive in an expected manner - sync to it, not from it.
 
Old 01-25-2023, 05:19 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Note the reference to "re-adding" - not adding.
Hopefully you have a bitmap, so the whole experience will be a lot less painful.
 
Old 03-17-2023, 03:51 AM   #4
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
Well I'm pretty sure I did it the wrong way but it worked. XD
I just formatted the drive that was out of sync, and readded it with sudo mdadm /dev/md0 --add /dev/sdb1
It synched and everything is fine.

It did however cause our ERP server to randomly send out all emails it sent the last month. No idea why.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wich distro is most suitable to install on USB drive (doesn't touch internal hdd/boot) Grobe Linux - Distributions 10 02-21-2020 04:44 AM
How long does hardware Raid card (raid 1) take to mirror 1 TB drive (500gb used)? abefroman Linux - Server 1 03-23-2011 11:41 AM
[SOLVED] Raid trying to sync with external USB drive -- or not? jlinkels Linux - Server 2 10-26-2010 08:51 AM
Wich interface is wich? xonner Linux - Hardware 3 03-16-2006 09:05 AM
Sync for Samsung Sync master Naphoon Linux - Hardware 1 10-16-2004 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration