We can do this with one simple command:Ģ. Now, to replace the drive and re-build the mirror (swap sda/sdb depending on what drive failed):ġ.Create the exact same partitioning as on /dev/sda. BTRFS will do checksums and ensure identical undamaged twins exist on at least two devices in a set of partitions. Now, if there is a failure on the primary boot drive, you’ll still get a GRUB error, but you can easily change the hard drive it’s trying to boot from between hd1 or hd0 (use the ‘e’ option to edit from the GRUB menu). Euw you really don't want damaged data to be mirrored, which RAID can do by accident and RSYNC can do because you told it to. My data backs up nightly to my server with rsync, so I am not worried about data safety if one drive fails, I have found a lot of site that explain how to set-up a RAID1 mirror, but nothing on RAID0. Once this is complete, both your drives are bootable should one fail (or you unplug one, etc.). I have 2 160gb SATAII hard drives that I want to set up as a RAID0 stripe for performance. This would be the most important thing you can do BEFORE you have a failure!Ģ.Input the command “/sbin/grub”, hit Enterģ.Enter the following commands in the GRUB shell: I realize this isn’t really a function/feature of FreePBX, as it’s really the OS, so I thought I’d share what I did in case anyone else needed help:įirst, make both drives bootable (as explained in the above link) or while your system is up and running. I was able to successfully boot from either drive, as well as replace a drive and rebuild the RAID.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |