Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Cannot create SW RAID??

  1. #1

    Default Cannot create SW RAID??

    This is the second time this has happened [on different machines], and it's a big problem as it prevents us from updating/rebuilding machines:

    * When rebuilding a machine we would like to convert the HW RAID to SW RAID so it can be monitored via /proc/mdstat;

    * During the installation process, it is proving *impossible* to create a new SW RAID5 or RAID6 array (RAID0 for swap does seem to work OK, so it may be related to the structure chosen?). After configuring the SW RAID, installation fails because the partitions selected for RAID5 are "BUSY"!!

    We have tried:

    a) Installing blank GPT tables during installation (drop to shell and return);
    b) Installing blank GPT tables via Rescue System;
    b) Installing blank GPT partition table on each disk via System Rescue [distro];
    c) Installing blank DOS partition table via Rescue System;
    d) Installing a blank GPT partition table via System Rescue;
    e) Formatting the disks with NTFS;

    NONE of these options allowed the Installer to build the SW RAID! The VERY FIRST install actually completed, but the system did not boot.

    Are there any recommendations posted for answers to questions like:

    1) What is the best partition table and boot configuration for SW RAID?
    2) Why does the installer think that partitions are "busy" when the target partition table is empty?

    TIA!

    Lee

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,325
    Blog Entries
    15

    Default Re: Cannot create SW RAID??

    On Tue 11 Mar 2014 09:56:01 PM CDT, omnitec wrote:


    This is the second time this has happened [on different machines], and
    it's a big problem as it prevents us from updating/rebuilding machines:

    * When rebuilding a machine we would like to convert the HW RAID to SW
    RAID so it can be monitored via /proc/mdstat;
    Hi
    If your using the HW controller, your deleting the RAID setup and then
    setting as a JBOD setup?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  3. #3

    Default Re: Cannot create SW RAID??

    [QUOTE=malcolmlewis;2629995]Hi
    If your using the HW controller, your deleting the RAID setup and then
    setting as a JBOD setup?

    In both cases, the RAID configuration was removed, .. else the installer would not see individual drives. On this system there were three drives, .. I was attempting to create three RAID5 configurations. The first install did complete, but would not boot; subsequent attempts all ended with 'partition busy'.

  4. #4
    Join Date
    Sep 2012
    Posts
    7,096

    Default Re: Cannot create SW RAID??

    Quote Originally Posted by omnitec View Post
    * During the installation process, it is proving *impossible* to create a new SW RAID5 or RAID6 array
    I briefly tested in QEMU and I can create RAID5 just fine during installation, at least when starting with blank disks
    2) Why does the installer think that partitions are "busy" when the target partition table is empty?
    How should we know? When you get "busy" error switch to terminal (tty2) and examine your system. You are the only one who can answer this question.

    I had similar error when I first attempted to add third disk and install on a VM that had previous Linux MD setup which I used to experiment. Installer did not correctly destroyed existing RAID arrays so during partitioning step it ended with an error. You may be using fake raid which automatically creates Linux MD container on disks or you may forget to remove something. Again - you are the only one having possibility to actually investigate it.

  5. #5

    Default Re: Cannot create SW RAID??

    Quote Originally Posted by arvidjaar View Post
    I briefly tested in QEMU and I can create RAID5 just fine during installation, at least when starting with blank disks.
    Sure, .. it might work fine with virgin disks, but that isn't the question, is it?

    Quote Originally Posted by arvidjaar View Post
    How should we know? When you get "busy" error switch to terminal (tty2) and examine your system. You are the only one who can answer this question.
    If I could answer the question, I would not have posted here, eh? Would you have any information to contribute to a possible solution? Why would a partition be "busy" when it has a new, blank partition table created in different ways?

    Quote Originally Posted by arvidjaar View Post
    I had similar error when I first attempted to add third disk and install on a VM that had previous Linux MD setup which I used to experiment. Installer did not correctly destroyed existing RAID arrays so during partitioning step it ended with an error.
    Bingo - that is the question which needs data - *how* is the partition table cleared properly when trying to create a new RAID array? Inquiring minds want to know!!!

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,325
    Blog Entries
    15

    Default Re: Cannot create SW RAID??

    On Wed 12 Mar 2014 04:16:01 AM CDT, omnitec wrote:


    arvidjaar;2630006 Wrote:
    > I briefly tested in QEMU and I can create RAID5 just fine during
    > installation, at least when starting with blank disks.


    Sure, .. it might work fine with virgin disks, but that isn't the
    question, is it?

    arvidjaar;2630006 Wrote:
    > How should we know? When you get "busy" error switch to terminal
    > (tty2) and examine your system. You are the only one who can answer
    > this question.


    If I could answer the question, I would not have posted here, eh? Would
    you have any information to contribute to a possible solution? Why would
    a partition be "busy" when it has a new, blank partition table created
    in different ways?

    arvidjaar;2630006 Wrote:
    > I had similar error when I first attempted to add third disk and
    > install on a VM that had previous Linux MD setup which I used to
    > experiment. Installer did not correctly destroyed existing RAID
    > arrays so during partitioning step it ended with an error.


    Bingo - that is the question which needs data - *how* is the partition
    table cleared properly when trying to create a new RAID array? Inquiring
    minds want to know!!!


    Hi
    So if using gpt disks your booting via uefi, or booting from a
    different disk via a mbr?

    If using gpt disks I usually boot from the openSUSE 13.1 rescue cd and
    use gdisk to wipe the gpt and zero out the mbr ( that x and z to zap)
    exit, re run gdisk and create the partition and set the type (fd00).

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  7. #7
    Join Date
    Sep 2012
    Posts
    7,096

    Default Re: Cannot create SW RAID??

    Quote Originally Posted by omnitec View Post
    Would you have any information to contribute to a possible solution?
    With information you provided - no. You did not event tell what hardware (specifically, RAID controller) you have. Nor did you provide exact error (screenshot at this point would be helpful).

    When you get this error, switch to terminal. Check /proc/mdstat whether you possibly have some MD running. Check "dmsetup ls", may be dmraid kicked in. Check /sys/block/sdX/sdXN/holders - they contain pointers to layered devices (if any).

  8. #8

    Default Re: Cannot create SW RAID??

    Quote Originally Posted by arvidjaar View Post
    Check /proc/mdstat whether you possibly have some MD running. Check "dmsetup ls", may be dmraid kicked in. Check /sys/block/sdX/sdXN/holders - they contain pointers to layered devices (if any).
    Thanks for the suggestion, ,.. I finally figured out that part of the problem - the installer WOULD NOT WRITE an MSDOS partition table to a drive with a GPT partition table! Looks like the problem could be fdisk itself - it would not write manually - had to clear them with parted.

    The system is now installed, .. but it will not boot. Using a 500MB clean partition on the first drive for /boot, .. but neither "/boot" nor "MBR" on the boot installation configuration will work. system was happily running 12.1 for many months, .. any pointers on how to isolate this part of the problem?

    Thanks!!

  9. #9
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,287

    Default Re: Cannot create SW RAID??

    fdisk does not really handle GPT formatted disks use parted or gdisk

    You are switching the type of RAID that is generally not done you need to back any data you want and wipe the disks very clean (ie zero out entire disk) and then install. RAID can leave little pieces of configuration stuff in odd places like the last sector or first track.

    You did not say what kind of hardware RAID you had. Did you remove the RAID controller or kill it from the BIOS?

  10. #10

    Default Re: Cannot create SW RAID??

    Finally figured it out and I wanted to let folks know that the issues were:

    1) Found out the fdisk CANNOT write an MSDOS partition to a disk with a GPT table! This caused most of the heartache, .. and a lot of wasted hours. Doubt that it's a SuSE bug, but hopefully folks will be able to search and find this note.

    2) The other major issue - a HW RAID system may not have a single disk in the BIOS boot options, .. final problem found, solved, success.

    Thanks for the assistance!

Page 1 of 2 12 LastLast

Posting Permissions

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