[Bug 1975860] Re: RAID/LVM configuration doesn't display drives in selection menu - expected MD_LEVEL

nikhil kshirsagar 1975860 at bugs.launchpad.net
Wed Oct 19 13:07:53 UTC 2022


It's expected behavior for MD_LEVEL not to be set for inactive raid
devices. Looking at 64-md-raid.rules,

# do not edit this file, it will be overwritten on update

SUBSYSTEM!="block", GOTO="md_end"

# handle md arrays
ACTION!="add|change", GOTO="md_end"
KERNEL!="md*", GOTO="md_end"

# partitions have no md/{array_state,metadata_version}, but should not
# for that reason be ignored.
ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"

# container devices have a metadata version of e.g. 'external:ddf' and
# never leave state 'inactive'
ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state" <==
TEST!="md/array_state", ENV{SYSTEMD_READY}="0", GOTO="md_end"
ATTR{md/array_state}=="|clear|inactive", ENV{SYSTEMD_READY}="0", GOTO="md_end"
LABEL="md_ignore_state"

IMPORT{program}="/sbin/mdadm --detail --export $devnode"
ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}", OPTIONS+="string_escape=replace"
<SNIP>

LABEL="md_end"

So IMPORT{program}="/sbin/mdadm --detail --export $devnode" is skipped
if the array is inactive.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1975860

Title:
  RAID/LVM configuration doesn't display drives in selection menu -
  expected MD_LEVEL

Status in subiquity package in Ubuntu:
  Confirmed

Bug description:
  Trying to install 22.04 LTS Server from Live image. Both the subiquity
  version provided with the ISO and the "new" version it prompts to load
  from internet, appear to have this issue.

  I can select items for a RAID/LVM volume, but they are not displayed;
  they show up as blank lines but the total size at the bottom changes
  as semi-blindly select/deselect them.

  I'm not sure how to grab versions as specified since this is prior to
  having a working system.

  Image of problem attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1975860/+subscriptions




More information about the foundations-bugs mailing list