Results 1 to 4 of 4

Thread: Software RAID1 configuration

  1. #1
    Join Date
    Sep 2021
    Beans
    2

    Software RAID1 configuration

    Hello,
    i have four disks. Two of them are for system and swap, two of them are for / home and other data.
    The each pair sets are configured as software RAID1. The configuration was as shown below:


    https://pasteimg.com/image/screenshot-45.ck0TH



    https://pasteimg.com/image/screenshot-3.ck48s



    https://pasteimg.com/image/screenshot-4.ckOa9



    https://pasteimg.com/image/screenshot-5.ckekC


    After installing the system, everything is fine, the problem is when one drive that has home folders is disconnected.
    The system is booting up but can't for the profile status:

    https://pasteimg.com/image/screenshot-10.ckv2J

    fstab file:

    https://pasteimg.com/image/screenshot-2.ck66Y



    Does anyone have any suggestions why this configuration doesn't work?

    The distribution is Zentyal 7.0 based on Ubuntu. It does not matter whether the system is virtual or installed on a physical machine.
    Reconnecting the drive doesn't always help

  2. #2
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Software RAID1 configuration

    Did you use mdadm to create the arrays or lvm2?
    Did you use uuid to define the arrays or diid you use device names?
    If you use device names and you disconnect one drive then the device names may change.

  3. #3
    Join Date
    Sep 2021
    Beans
    2

    Re: Software RAID1 configuration

    I used mdadm and lvm manager to create array and LVM during installation process
    In /etc/mdadm/mdadm.conf I have UUID of md device
    I tried to use UUID of /dev/mapper/vgzentyal--1-home in fstab file but it doesnt change. After change fstab or mdadm.conf I used update-initramfs

  4. #4
    Join Date
    Mar 2007
    Beans
    1,325

    Re: Software RAID1 configuration

    As I was asking about the UUIDs of the drives. See the link below:
    https://unix.stackexchange.com/quest...ids-with-mdadm

    What does
    Code:
    # cat /proc/mdstat
    show when you have a drive disconnected?
    I've always been able to disconnect a drive and have a RAID 1 array come up degraded. In fact that general how you replace a failed drive.

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
  •