Re: RAID 1 | Test Booting from /dev/sdb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 05.05.20 10:51, Wols Lists wrote:
Change boot medium to /dev/sdb
and do a "mdadm /dev/md0 --add /dev/sda1" to get it recovered again
without loosing the "added" data (i.e. in /var/log) from booting? Also
device identifiers could change I guess. Even if I am fine with loosing
the "added" data from booting with /dev/sdb, will - when booting again
from /dev/sda - /dev/sda be the master in the array again?

It is not clear to me if I understood correctly in which case which
array member will be the master which will be the base for recovery. Is
it always the HD one booted from?

The "master" if recovery is required will be the "older" one - in this
case sda because it was disconnected. HOWEVER. Just check whether you
have a bitmap or journal enabled. You can't have both at once, but the
result should be that sda rejoins the array cleanly, raid has a record
of which writes occurred while it was offline, and it will be updated.


Does this mean in my scenario /dev/sda1 will come up again and will held data in /var/log/ where I can see i.e. log entries which are written when the system booted up using /dev/sdb as boot device?

I try to be prepared, just in case :-)

Thanks again for sharing your knowledge, Wols.
It is highly appreciated.



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux