Results 1 to 2 of 2

Thread: Migrate to Software RAID1 with Encrypted LVM

  1. #1
    Join Date
    Jan 2020
    Beans
    1

    Migrate to Software RAID1 with Encrypted LVM

    I have an exiting Ubuntu server (v18.x).
    The server has a single hard drive and with an encrypted LVM. This was all done using the standard installation procedure (nothing special)
    The server also has LAMP installed with an application running on top of it.

    The system is running without any problems but I have a spare identical hard drive and want to install this and use Software RAID1 to mirror the data incase of drive failure.

    What is the easiest way to convert the existing installation (single drive with encrypted LVM) to an installation with dual drives, Software RAID plus an LVM volume, LAMP & application ?

    Can I convert this in-place somehow or do I have to start again from scratch as in...
    1. Backup my LAMP application (configuration, Database, web files etc.)
    2. Re-install Ubuntu from scratch with Software RAID & Encrypted LVM
    3. Install LAMP
    4. Restore my configuration, Database & web files.

    I've seen articles on how to install software RAID & encrypted LVM from scratch but can't find anything on how to convert and existing installation.

    Thanks in advance...

  2. #2
    Join Date
    May 2013
    Location
    Galiza
    Beans
    450
    Distro
    Ubuntu

    Re: Migrate to Software RAID1 with Encrypted LVM

    I've no experience with servers but...

    Yes, your plan makes sense if using Software RAID.
    Otherwise, with a RAID controller you'd used that to build the RAID from your existing installation.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •