User Tools

Site Tools


computing:raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
computing:raid [2019/04/10 08:55] oemb1905computing:raid [2021/04/03 02:40] (current) oemb1905
Line 7: Line 7:
 ------------------------------------------- -------------------------------------------
  
-This tutorial is based on me wanting to set up a server solution for self-hosters that can survive a remote reboot, but also encrypt the data on the server that matters most, and most importantly, be able to give me a chance to replace a hard drive if one were to fail.  For those reasons, I chose RAID1 array as the wrapper, and used luks and pam_mount and once that array and debian OS were installed on my host with that arrangement - for short, I call this the 'RAID' tutorial, since that was the primary non-negotiable and all of this pivots around being able to replace failing hard drives first, and then building other 'backup' solutions on top of that later (see [[https://jonathanhaack.com/dokuwiki/doku.php?id=computing:rsyncrsnapshot|rsyncrsnapshot tutorial]].  For now, it is important to set up the RAID, luks, and pam_mount correctly, and here is what I got to work flawlessly. I used a debian stretch .iso that I ripped to a flash drive (full amd64DVD1.iso). +This tutorial is based on me wanting to set up a server solution for self-hosters that can survive a remote reboot, but also encrypt the data on the server that matters most, and most importantly, be able to give me a chance to replace a hard drive if one were to fail.  For those reasons, I chose RAID1 array as the wrapper, and used luks and pam_mount and once that array and debian OS were installed on my host with that arrangement - for short, I call this the 'RAID' tutorial, since that was the primary non-negotiable and all of this pivots around being able to replace failing hard drives first, and then building other 'backup' solutions on top of that later (see [[https://wiki.haacksnetworking.com/doku.php?id=computing:rsyncrsnapshot|rsyncrsnapshot tutorial]].  For now, it is important to set up the RAID, luks, and pam_mount correctly, and here is what I got to work flawlessly. I used a debian stretch .iso that I ripped to a flash drive (full amd64DVD1.iso). 
  
 (Optional:  I recommend not using the netinst.iso but the full DVD.iso instead.  I also do not use a network mirror, and do not install any other packages than the defaults, as I noticed this speeds up the install a lot.  Once the system is bootable and up, you can install the packages and rebuild the the OS as needed.  Debian keeps the repositories at [[https://wiki.debian.org/SourcesList|Debian Repositories]] web page and make sure that /etc/apt/sources.list is updated to those examples.  //Again, do this after the final RAID syncing below.//  Also, when you save time like this, you need to install sudo (yes, really).  Why?  The RAID1 array is suycing and slowing everything down a lot.  Just wait until it finishes, reboot, and then update.  And take as little time as possible during the install.  That's the plan I use ... ok, moving on!) (Optional:  I recommend not using the netinst.iso but the full DVD.iso instead.  I also do not use a network mirror, and do not install any other packages than the defaults, as I noticed this speeds up the install a lot.  Once the system is bootable and up, you can install the packages and rebuild the the OS as needed.  Debian keeps the repositories at [[https://wiki.debian.org/SourcesList|Debian Repositories]] web page and make sure that /etc/apt/sources.list is updated to those examples.  //Again, do this after the final RAID syncing below.//  Also, when you save time like this, you need to install sudo (yes, really).  Why?  The RAID1 array is suycing and slowing everything down a lot.  Just wait until it finishes, reboot, and then update.  And take as little time as possible during the install.  That's the plan I use ... ok, moving on!)
computing/raid.txt · Last modified: 2021/04/03 02:40 by oemb1905