Differences between revisions 1 and 100 (spanning 99 versions)
Revision 1 as of 2007-06-21 12:53:17
Size: 3016
Editor: ?FransPop
Comment: Initial (incomplete) version
Revision 100 as of 2016-09-03 16:49:30
Size: 4814
Editor: fsbano
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Setting up Debian on a Fake (ata) RAID device == #language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[pt_BR/DebianInstaller/SataRaid|Português Brasileiro]] - [[ru/DebianInstaller/SataRaid|Русский]]-~
----
This page describes how to install Debian using the Serial ATA RAID (aka '''fake RAID''', '''BIOS RAID''') feature provided by your SATA disk controller. These are controllers that advertise RAID functions but are not supported by a hardware chip for parity.
Line 3: Line 6:
This page explains how to use Debian Installer to set up Debian on a fake RAID (ata RAID) disk (using {{{dmraid}}}). {{{#!wiki debian
Not to be confused with the Linux kernel's software RAID feature (Multidisk Device). This is the preferable and more reliable method to establish software RAID arrays.
Line 5: Line 9:
Note that support for this is experimental and currently only available in the Lenny version of the installer (daily built images). It is strongly recommended that you make a backup of any data on your system that you do not wish to lose before using this option. See the Debian [[http://www.debian.org/releases/stable/amd64/ch06s03#mdcfg|installation guide]] for more information.
}}}
Line 7: Line 12:
Fake RAID support has currently only been tested on i386, but should also work on amd64. Other architectures are not supported. Use the following method only if you want to have a dual-boot system with Debian and the other operating system on the same Serial ATA RAID:
Line 9: Line 14:
There have not yet been any tests installing Debian alongside an existing Windows installation. We expect that that is possible, but there is a risk that the Windows partition will become corrupted.  1. Set up your fake RAID in the BIOS (see owners manual).
Line 11: Line 16:
=== Booting the installer ===  1. Boot from a [[http://www.debian.org/releases/stable/debian-installer/|Debian installation media]].
Line 13: Line 18:
Because the support for fake RAID is still experimental, you will need to boot the installer with a special boot parameter: {{{
install dmraid=true}}}
 1. Move the cursor to the `Install` boot menu entry (do not hit `Enter` yet):
Line 16: Line 20:
=== Hardware detection ===   1. Press `Tab` to edit the kernel boot line.
  1. Add `dmraid=true` to the end of the line.
  1. Press `Enter`.
Line 18: Line 24:
The fake RAID disk should be automatically detected and if it is detected, some additional installer components will be loaded for support during partitioning.   Note: In UEFI-installer you must press `e` key instead `Tab` and use arrow keys for moving to end of 4-st line (example for x86_64 architecture):
Line 20: Line 26:
=== Partitioning ===     `linux /install.amd/vmlinuz video=vesa:ywrap,mtrr vga=788 \ -- quiet`
Line 22: Line 28:
In the current implementation, support for fake RAID devices is not really integrated in {{{partman}}}. What we have done is to make sure that dmraid devices are displayed and that basic partitioning is possible. We hope that the current basic support will help to gradually implement more structural support later. This may require changes in both {{{partman}}} and {{{libparted}}}.   Add `dmraid=true` to end of this line and press `F10` or `Ctrl+X` to run installer.

    `linux /install.amd/vmlinuz video=vesa:ywrap,mtrr vga=788 \ -- quiet dmraid=true`

    
Line 25: Line 35:
 1. Install Debian as usual, until you get to the disk partitioner. You will see your fake RAID as one disk with a confusing long name. Use it as if it were a single disk and configure your partitions any way you want, including LVM and friends.
Line 26: Line 37:
{{{ 1. Write changes in fake RAID partitioning to disk
 2. Guided partitioning
 3. Help on partitioning
 1. Complete the installation. The installation of GRUB may fail, but that is OK; GRUB needs to be reinstalled either way. If GRUB installation fails, select "continue without bootloader" to complete the Debian installation.
Line 30: Line 39:
 4. Fake (ata) RAID isw_dhiiedgihc_Volume0 (mirror) - 40.0 GB Linux device-mapper
 5. > #1 primary 10.0 GB B ext2
 6. > #2 primary 29.0 GB ext2
 7. > #3 primary 995.3 MB ext2
 8. Fake (ata) RAID isw_dhiiedgihc_Volume01 (partition #1) - 10.0 GB Linux device
 9. > #1 10.0 GB ext2
10. Fake (ata) RAID isw_dhiiedgihc_Volume02 (partition #2) - 29.0 GB Linux device
11. > #1 29.0 GB F ext3 /
12. Fake (ata) RAID isw_dhiiedgihc_Volume03 (partition #3) - 995.3 MB Linux device
13. > #1 995.3 MB F swap swap
 1. Reboot as instructed by Debian Installer.
Line 41: Line 41:
14. Undo changes to partitions
15. Finish partitioning and write changes to disk}}}
 1. Boot using the Debian installation media again.
Line 44: Line 43:
=== Boot loader installation ===  1. In the boot menu, go to `Advanced Options`, and move the cursor to "Rescue system" (do not hit `Enter` yet):
Line 46: Line 45:
Currently fake RAID devices are not really supported by either {{{grub}}} or {{{lilo}}}. But it is possible to install {{{grub}}} using a semi-manual method. This method has been implemented in grub-installer. Using {{{lilo}}} is currently not supported, but it may be possible to set up {{{lilo}}} manually if you prefer.   1. Press `Tab` to edit the kernel boot line.
  1. Add "dmraid=true" without quotes to the end of the line.
  1. Press `Enter`.
Line 48: Line 49:
The installer will automatically detect if /boot is on a {{{dmraid}}} device and will then install {{{grub}}} in the MBR of that device. No other options will be offered.  1. You will be presented with screens similar to the installation screens. Go through with them until you are asked to choose a root filesystem to mount and use.
Line 50: Line 51:
== User comments ==  1. Choose the first /dev/dm-? (? is a number). You will get a command prompt.
Line 52: Line 53:
If you have tried the fake RAID support in the installer, please list your experiences below.  1. (Optional) Type `bash` into the prompt, for easier command line editing and command history.

 1. Modify /etc/default/grub (e.g. {{{nano /etc/default/grub}}}) and uncomment GRUB_DISABLE_LINUX_UUID=true (DebianBug:699437). Save the file and exit the editor.

 1. Type `update-grub` and press enter. This is very important, because otherwise the GRUB boot menu later wont be able to display your freshly installed kernel!

 1. Type `grub-install /dev/mapper/` and press tab and tab again, you will get the names of the fake raid partitions.
  1. Complete `grub-install /dev/mapper/` with the name of your whole fake disk.

  For example `grub-install /dev/mapper/isw-jggdha7s-SYS` (Note that there is no number at the end of the name). You may have something like `/dev/mapper/isw-jggdha7s-SYS` and `/dev/mapper/isw-jggdha7s-SYS1`, or `/dev/mapper/isw-jggdha7s-Volume` and `/dev/mapper/isw-jggdha7s-Volume1`. Choose the one without the partition number and press enter.
  1. Everything should install now without an error.

 1. Type `blkid | grep swap` with the result of the command change the entry in the /etc/fstab. (e.g. {{{nano /etc/fstab}}})
    1. Ex: /dev/mapper/isw.. to UUID="f7d88.." on the swap line

 1. Type `exit` (twice if you did step 11). Now you should be back in the rescue system menu. Choose the `Reboot system` option. Now boot off your fake RAID and see GRUB starting your new Debian installation.

== Troubleshooting / Alternatives (mdadm) ==

An alternative for `dmraid` is `mdadm`. For that, install the package `mdadm` and set `mdadm=true` as kernel parameter in your grub configuration (`GRUB_CMDLINE_LINUX_DEFAULT="quiet mdadm=true"` in `/etc/default/grub`). Run `update-grub` after making the changes and amend `/etc/fstab` to match the new devices such as e.g. `/dev/dm126p9`, boot into Rescue Mode, investigate and amend this paragraph as you go along, please.

----
## This page is referenced from http://www.debian.org/releases/stable/amd64/ch06s03
CategoryPermalink

Translation(s): English - Português Brasileiro - Русский


This page describes how to install Debian using the Serial ATA RAID (aka fake RAID, BIOS RAID) feature provided by your SATA disk controller. These are controllers that advertise RAID functions but are not supported by a hardware chip for parity.

Not to be confused with the Linux kernel's software RAID feature (Multidisk Device). This is the preferable and more reliable method to establish software RAID arrays.

See the Debian installation guide for more information.

Use the following method only if you want to have a dual-boot system with Debian and the other operating system on the same Serial ATA RAID:

  1. Set up your fake RAID in the BIOS (see owners manual).
  2. Boot from a Debian installation media.

  3. Move the cursor to the Install boot menu entry (do not hit Enter yet):

    1. Press Tab to edit the kernel boot line.

    2. Add dmraid=true to the end of the line.

    3. Press Enter.

      Note: In UEFI-installer you must press e key instead Tab and use arrow keys for moving to end of 4-st line (example for x86_64 architecture):

      • linux /install.amd/vmlinuz video=vesa:ywrap,mtrr vga=788 \ -- quiet

      Add dmraid=true to end of this line and press F10 or Ctrl+X to run installer.

      • linux /install.amd/vmlinuz video=vesa:ywrap,mtrr vga=788 \ -- quiet dmraid=true

  4. Install Debian as usual, until you get to the disk partitioner. You will see your fake RAID as one disk with a confusing long name. Use it as if it were a single disk and configure your partitions any way you want, including LVM and friends.
  5. Complete the installation. The installation of GRUB may fail, but that is OK; GRUB needs to be reinstalled either way. If GRUB installation fails, select "continue without bootloader" to complete the Debian installation.
  6. Reboot as instructed by Debian Installer.
  7. Boot using the Debian installation media again.
  8. In the boot menu, go to Advanced Options, and move the cursor to "Rescue system" (do not hit Enter yet):

    1. Press Tab to edit the kernel boot line.

    2. Add "dmraid=true" without quotes to the end of the line.
    3. Press Enter.

  9. You will be presented with screens similar to the installation screens. Go through with them until you are asked to choose a root filesystem to mount and use.
  10. Choose the first /dev/dm-? (? is a number). You will get a command prompt.
  11. (Optional) Type bash into the prompt, for easier command line editing and command history.

  12. Modify /etc/default/grub (e.g. nano /etc/default/grub) and uncomment GRUB_DISABLE_LINUX_UUID=true (699437). Save the file and exit the editor.

  13. Type update-grub and press enter. This is very important, because otherwise the GRUB boot menu later wont be able to display your freshly installed kernel!

  14. Type grub-install /dev/mapper/ and press tab and tab again, you will get the names of the fake raid partitions.

    1. Complete grub-install /dev/mapper/ with the name of your whole fake disk.

      For example grub-install /dev/mapper/isw-jggdha7s-SYS (Note that there is no number at the end of the name). You may have something like /dev/mapper/isw-jggdha7s-SYS and /dev/mapper/isw-jggdha7s-SYS1, or /dev/mapper/isw-jggdha7s-Volume and /dev/mapper/isw-jggdha7s-Volume1. Choose the one without the partition number and press enter.

    2. Everything should install now without an error.
  15. Type blkid | grep swap with the result of the command change the entry in the /etc/fstab. (e.g. nano /etc/fstab)

    1. Ex: /dev/mapper/isw.. to UUID="f7d88.." on the swap line
  16. Type exit (twice if you did step 11). Now you should be back in the rescue system menu. Choose the Reboot system option. Now boot off your fake RAID and see GRUB starting your new Debian installation.

Troubleshooting / Alternatives (mdadm)

An alternative for dmraid is mdadm. For that, install the package mdadm and set mdadm=true as kernel parameter in your grub configuration (GRUB_CMDLINE_LINUX_DEFAULT="quiet mdadm=true" in /etc/default/grub). Run update-grub after making the changes and amend /etc/fstab to match the new devices such as e.g. /dev/dm126p9, boot into Rescue Mode, investigate and amend this paragraph as you go along, please.


CategoryPermalink