On 07/01/2017 10:51 AM, Wols Lists wrote:
On 01/07/17 12:36, Peter Suetterlin wrote:
Are the new disk raids by any chance full disk raids, and/or are they not marked as raid in the partition table?
What code is that :-) Seriously, there is no partition code for raid, iirc. Certainly not with GPT, and not with modern linux kernels either I don't think.
Version 0 raid arrays were assembled by the kernel, but they are now obsolete. Version 1 arrays are assembled by mdadm, either by reading mdadm.conf if it exists, or by reading each partition looking for a superblock.
That explains why the only supported way of booting off of raid without using an initramfs is either UEFI or a v1.0 mirror. The kernel boots read-only as if it was an ordinary non-raid disk, then replaces root with the assembled mirror.
Cheers, Wol
See: https://wiki.archlinux.org/index.php/RAID Create the Partition Table (GPT) It is highly recommended to pre-partition the disks to be used in the array. Since most RAID users are selecting HDDs >2 TB, GPT partition tables are required and recommended. Disks are easily partitioned using gptfdisk. After created, the partition type should be assigned hex code FD00. If a larger disk array is employed, consider assigning disk labels or partition labels to make it easier to identify an individual disk later. Creating partitions that are of the same size on each of the devices is preferred. A good tip is to leave approx 100 MB at the end of the device when partitioning. See below for rationale. Partitions Types for (MBR) For those creating partitions on HDDs with a MBR partition table, the partition types available for use are: 0xDA (for non-fs data -- **current recommendation by kernel.org**) 0xFD (for raid autodetect arrays -- was useful before booting an initrd to load kernel modules) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org