Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Software RAID 5

  1. #1
    Join Date
    May 2010
    Beans
    8

    Unhappy Software RAID 5

    Hi,
    I have three 250GB disks on my server and I tried to create a RAID5 array during installation for abount 6-7 times on Ubuntu Server 10.04 64bit, always failing.
    Maybe I miss something about the RAID basic concepts but I really need help.
    Here is the partitions configuration I tried to use:

    sda >> sda1 : software raid volume
    sda2 : /boot
    sda3 : swap

    sdb >> sdb1 : software raid volume

    sdc >> sdc1 : software raid volume

    md0 >> sda1+sdb1+sdc1

    md0 mount point: /

    Installation completes ok with no errors ad data is written on all 3 disks.

    On reboot though I get errors about some paths related to /proc missing and a disk UUID not found. System falls back to initramfs.

    I also tried to put /boot on a raid1 array by creating a boot partition on sdb too (sda2+sdb2) with no results.

    I apologise if I miss something far too elementary.

  2. #2
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Software RAID 5

    Not sure if it's an issue, but for better performance have you tried making symmetric partitions on the drives? You don't have to use them, just to make the drives look the same.

    sda1 /boot
    sda2 for raid
    sda3 swap

    sdb1 unused, same size as sda1
    sdb2 for raid
    sdb3 swap

    etc

    You don't even have to chain the swaps into raid, you can add more than one swap partition in ubuntu later and set same priority and that will use them as if they were in raid. On the other hand, since you want RAID5 and not only RAID0, you might as well raid the swaps too.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  3. #3
    Join Date
    May 2010
    Beans
    8

    Cool Re: Software RAID 5

    Thanks for your answer. Yes, I tried to use that scheme too. In that case, things went better, meaning that the array was created but the system did boot with a degraded array and reported something about sda, sda1 and sdb and sbd1 similarity which created the problem and suggested to use zero superblock command for the sda and sdb devices. I did so but the system could not boot after that.
    I am tempted to use another disk, on which install the OS and use the other 3 as RAID5. I could create the array with mdadm from within the OS in that way. But I would prefer not to use another disk. What I don't remember is if, in the schema you suggested, I had put /boot on sda1 or not.
    Oh, and maybe I should mention I disabled sata-raid in BIOS, so it's not the case of some interference.
    Is the scheme you reported the one you'd use? What is the optimal partition/raid scheme you suggest for a RAID5 with 3 disks available for OS and data?
    Thanks again!

  4. #4
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Software RAID 5

    I don't have 3 disks and I'm not too experienced in raid, but I have been reading about it and planning it, maybe.

    First, for software raid /boot absolutely has to be OUTSIDE the array, at least to my knowledge. So if you don't remember whether you had /boot outside the array when you tried to do the above scheme, it's worth trying again.

    Second, in this situation, speaking about the actual raid array, I would create one single raid5 device from the three partitions. Then I would use that raid5 device as physical volume for LVM.

    In that case you don't have to worry and plan the partitioning too much. LVM allows you to resize partitions later, live and without formatting them again. You can start with smaller partitions for /, /home, etc, and enlarge them as needed. You can do that as much as you want until you hit the size of the raid5 device which is of course your limit.

    Some reading material on LVM, this is for setting up on 8.10 but it's the same. Also, it doesn't matter if the physical device used for LVM is single disk, or raid device.
    http://linuxbsdos.com/2008/11/11/lvm...ntu-810/all/1/

    There are tons of articles about LVM in google too.
    I have this bookmarked for software raid also:
    http://ubuntuforums.org/showthread.php?t=408461
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  5. #5
    Join Date
    May 2010
    Beans
    31

    Re: Software RAID 5

    i dont mean to be rude an hijack your thread but could someone explain Software raid ?? i dont understand how thats possible ? is it just like several partitions on one drive ? or just several drives setup on an older system without raid capabilities?

  6. #6
    Join Date
    May 2010
    Beans
    8

    Re: Software RAID 5

    Thanks darkod, I believe LVM is a great solution. I will seriously take it into consideration for my md arrays. But I still hope the raid configuration issue is not an OS related one. I would't like to go back to SuSE... (I have more than 5 happy raid1 systems running on it).

    As about mistichu: I am far from being an expert on raid implementations. But for as far as I know software RAID performance is the same as some hardware RAID solutions.
    I confirm you can do it with some old hardware with simple ATA IDE disks on it.
    Software RAID follows the same rules as hardware RAID does.
    What changes is the channel through which the syncing is done. Obviously an older system will have performance issues. That depends on raid level too. E.g. a raid1 write performance equals that of the slowest drive, but nearly doubles the read time.
    It is not only about partitioning a single hdd, but creating multidisk devices. The arrays of disks have different kinds of specifications.
    You can find info about raid levels here:
    http://en.wikipedia.org/wiki/RAID
    Last edited by ilias74; May 16th, 2010 at 10:10 PM.

  7. #7
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Software RAID 5

    Quote Originally Posted by mistichu View Post
    i dont mean to be rude an hijack your thread but could someone explain Software raid ?? i dont understand how thats possible ? is it just like several partitions on one drive ? or just several drives setup on an older system without raid capabilities?
    In short, the raid function in motherboard BIOS common these days is also in a way software raid even though you might think the mobo hardware is doing the work. That's why it's usually called fakeraid.

    The ubuntu software raid is a function of the OS (it is also included in the desktop version, not just server) where it takes a number of partitions depending of the raid type, and creates a raid array from them. However, they can't be partitions on the same disk. You need at least 2 disks for raid, in case of raid5 the minimum is 3 for example.

    People have reported better performance of the software raid compared to the fakeraid. So even if your mobo supports fakeraid, it seems software raid is better option. Usually you would use fakeraid if you want to dual boot with windows because the software raid function is present in ubuntu and windows could not be on that array.

    If the computer has no raid capability, you could still use software raid.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  8. #8
    Join Date
    May 2010
    Beans
    31

    Re: Software RAID 5

    thanks for the info guys

  9. #9
    Join Date
    Jun 2009
    Location
    Alabama
    Beans
    2,232

    Lightbulb Re: Software RAID 5

    My personal opinion after working with RAID on enterprise-class servers for many years is, if you dont have at least five identical drives for a RAID-5 array. do something else.

    Tim
    Cyberpower PC, Core i5 2500 3.3 gHz, 8GB DDR3, ATI 6770 1GB, Samsung BX 2440 LED 1080p, 1 TB SATA III, 2 TB SATA III, Siduction Linux 64-bit

  10. #10
    Join Date
    May 2010
    Beans
    8

    Re: Software RAID 5

    Well, I work for SOHO and SB environments (5-30 users) at the moment, but could you explain why the 3 disk array would be unsuitable? And I would be glad if you could give me some help with the installation problem I have with raid5 on those 3 disks using the ubuntu 10.04 installer to partition and make raid devices. I don't think I have to give up on RAID5 just because I have 3 disks instead of 5, it doesn't make sense to me.
    Thanks.
    Last edited by ilias74; May 16th, 2010 at 08:47 PM.

Page 1 of 3 123 LastLast

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
  •