From: Magnus Rosenbaum <cmr_lists@forestfactory.de>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] Software-RAID booten
Date: Thu, 16 Mar 2017 00:40:00 +0100 [thread overview]
Message-ID: <ad2dc040-2ee8-f262-9c31-4d0c6ecee3d2@forestfactory.de> (raw)
In-Reply-To: <20170315130928.8d3a3410e59327188ec0f2c9@pmp.uni-hannover.de>
Danke für die Antwort!
Es ist mir nun gelungen, zu Booten, indem ich dort in diese Shell
mdadm --assemble --scan
eingebe. Damit erkennt er dann /dev/md0 und /dev/md1. Das gebe ich dann
nochmal als root-Device an, und er bootet.
Ist so natürlich nicht praktikabel, da man es bei jedem Booten auf der
Konsole eingeben müsste.
Am 15.3.17 um 13:09 schrieb Gerrit Kühn:
> so aus dem Kopf: welchen Metadaten-Typ hat der Mirror?
server21 ~ # cat /proc/mdstat
Personalities : [raid1] [raid10] [raid6] [raid5] [raid4]
md126 : active raid1 sda2[0] sdb2[1]
1079296 blocks super 1.2 [2/2] [UU]
md127 : active raid1 sda3[0] sdb3[1]
5859309120 blocks super 1.2 [2/2] [UU]
bitmap: 2/44 pages [8KB], 65536KB chunk
unused devices: <none>
> Falls Du schon eine initramfs mit md-Support gebaut hast:
> Hast Du den kernel entsprechend angewiesen, das auch zu benutzen? Auf der
> commandline brauchst Du sowas wie "domdadm", für grub kannst Du das z.B.
> in /etc/default/grub.conf als "GRUB_CMDLINE_LINUX="domdadm"" eintragen.
Kernel und initramfs habe ich so gebaut:
rescue linux # genkernel --lvm --mdadm --mdadm-config=/etc/mdadm.conf
--no-mrproper all
/boot/grub/grub.conf:
---8<---
default 0
timeout 5
title Gentoo Linux 4.9.6
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-4.9.6-gentoo-r1 root=/dev/ram0
init=/linuxrc ramdisk=8192 dolvm domdadm real_root=/dev/md1 udev
rootfstype=ext4
initrd /boot/initramfs-genkernel-x86_64-4.9.6-gentoo-r1
---8<---
Grüße, Magnus
--
Carl Magnus Rosenbaum, M.A.
Administration - Programmierung - Weiterbildung http://cmr.cx/
PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641
next prev parent reply other threads:[~2017-03-15 23:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-15 11:48 [gentoo-user-de] Software-RAID booten Magnus Rosenbaum
2017-03-15 12:09 ` Gerrit Kühn
2017-03-15 23:40 ` Magnus Rosenbaum [this message]
2017-03-16 7:10 ` Gerrit Kühn
2017-03-16 7:32 ` Magnus Rosenbaum
2017-03-16 7:53 ` Gerrit Kühn
2017-03-16 22:09 ` Magnus Rosenbaum
2017-03-21 15:36 ` Sven Eden
2017-03-29 17:02 ` Magnus Rosenbaum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ad2dc040-2ee8-f262-9c31-4d0c6ecee3d2@forestfactory.de \
--to=cmr_lists@forestfactory.de \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox