Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #239880
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: debian-installer RAID question |
| Date | 2021-09-11 19:10 +0200 |
| Message-ID | <CWeFQ-5ne-3@gated-at.bofh.it> (permalink) |
| References | <CWewb-54H-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello,
On Sat, Sep 11, 2021 at 06:55:56PM +0200, Felix Natter wrote:
> How does d-i know how the individual HDDs were combined into a
> RAID1?
d-i doesn't as such. In Linux MD, member devices contain metadata to
allow assembly by udev. You can examine the data on an MD member
device like this:
$ sudo mdadm --examine /dev/sda1
/dev/sda1:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : ae2dfc21:c73ccb97:24ca9476:e67c0532
Name : arran:0 (local to host arran)
Creation Time : Sat Dec 2 09:29:21 2017
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 3901440 (1905.00 MiB 1997.54 MB)
Array Size : 1950720 (1905.00 MiB 1997.54 MB)
Data Offset : 2048 sectors
Super Offset : 8 sectors
Unused Space : before=1968 sectors, after=0 sectors
State : clean
Device UUID : 0bfc69e4:8e62ef0b:b9c16b32:d7cee4f1
Internal Bitmap : 8 sectors from superblock
Update Time : Wed Sep 8 23:28:20 2021
Checksum : 3daa61a0 - correct
Events : 283
Device Role : Active device 0
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
This is how any system with Linux MD support can assemble and
manipulate your arrays given just the devices. Typically udev sees a
block device with MD metadata and calls the mdadm binary to
incrementally assemble it. Once enough devices have been seen the
array is functional.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
debian-installer RAID question Felix Natter <fnatter@gmx.net> - 2021-09-11 19:00 +0200
Re: debian-installer RAID question Andy Smith <andy@strugglers.net> - 2021-09-11 19:10 +0200
Re: debian-installer RAID question Felix Natter <fnatter@gmx.net> - 2021-09-18 12:00 +0200
Re: debian-installer RAID question Reco <recoverym4n@enotuniq.net> - 2021-09-11 19:20 +0200
Re: debian-installer RAID question Felix Natter <fnatter@gmx.net> - 2021-09-18 12:10 +0200
Re: debian-installer RAID question Sven Hartge <sven@svenhartge.de> - 2021-09-11 19:30 +0200
Re: debian-installer RAID question Felix Natter <fnatter@gmx.net> - 2021-09-18 12:00 +0200
Re: debian-installer RAID question Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-12 12:20 +0200
Re: debian-installer RAID question Felix Natter <fnatter@gmx.net> - 2021-09-18 11:50 +0200
Re: debian-installer RAID question David Christensen <dpchrist@holgerdanske.com> - 2021-09-12 21:10 +0200
Re: debian-installer RAID question Darac Marjal <mailinglist@darac.org.uk> - 2021-09-12 23:00 +0200
Re: debian-installer RAID question Felix Natter <fnatter@gmx.net> - 2021-09-18 11:50 +0200
csiph-web