Gmirror. RAID 1
-
There is a question about soft-raid. I'm standing on a server raid and one of the drives stopped working. We removed it from the raid and now the server writes the raid in operation with one disk and synchronization is complete. On the second drive, we installed a new version of pfsense but he was a non-working in terms of BGP and we decided to revert to the old version pfsense using raid. so we need to restore the raid back. Now the question. To restore a soft-raid whether a second disc with a new system installed just add to the raid, its all data automatically overwritten raid? or need to completely format the second drive, and only then add it to the raid? Or need to make a similar file system partitions of identical and only then add to the raid? Do not overwritten working configuration on the old one broken out of the new synchronization or gmirror automatically knows that the new drive should be cleaned and the data is transferred from the old to the new addition?
Thanks! -
Normally it is enough to tell gmirror to forget and reinsert the NEW drive (the one you want to wipe/overwrite)
gmirror forget gm0 /dev/ad1 gmirror insert gm0 /dev/ad1
In some cases you may want to use DD to wipe the drive manually and then do the above (or at least wipe the very start and very end of the disk)
-
Thank you.