From: Andy Smith <andy@strugglers.net>
To: NeilBrown <neilb@suse.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Newly-created arrays don't auto-assemble - related to hostname change?
Date: Fri, 18 Nov 2016 03:47:16 +0000 [thread overview]
Message-ID: <20161118034716.GI21587@bitfolk.com> (raw)
In-Reply-To: <87poltfq2d.fsf@notabene.neil.brown.name>
Hi Neil,
I've managed to workaround the issue.
In scrolling back on the serial console to view the early boot
messages and debug logging from udev, I noticed that only sd{a,b}
drives were detected during the initramfs stage. sd{c,d,e,f} were
absent.
This server has two internal flash devices, then the rest of the
drives are on a SAS controller. Evidently the initramfs does not
contain the driver for the SAS controller (mpt3sas). Possibly the
initramfs script correctly deduced that the system could be booted
with only sd{a,b} and did not bother including mpt3sas.
Anyway, I added mpt3sas to /etc/initramfs-tools/modules and rebuilt
the initramfs, and now all drives appear at boot time and all arrays
are assembled:
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... [ 40.1
58317] random: nonblocking pool is initialized
[ 40.161795] md: bind<sdf1>
[ 40.162161] md: bind<sde1>
[ 40.163226] md: raid1 personality registered for level 1
[ 40.163654] md/raid1:md0: active with 2 out of 2 mirrors
[ 40.163745] md0: detected capacity change from 0 to 510328832
[ 40.164259] md0: unknown partition table
mdadm: /dev/md/0 has been started with 2 drives.
[ 40.176662] md: bind<sdf2>
[ 40.177235] md: bind<sde2>
[ 40.178332] md: raid10 personality registered for level 10
[ 40.178656] md/raid10:md1: active with 2 out of 2 devices
[ 40.178746] md1: detected capacity change from 0 to 1998585856
[ 40.179170] md1: unknown partition table
mdadm: /dev/md/1 has been started with 2 drives.
[ 40.189887] md: md2 stopped.
[ 40.191292] md: bind<sdf3>
[ 40.191498] md: bind<sde3>
[ 40.192705] md/raid10:md2: active with 2 out of 2 devices
[ 40.192797] md2: detected capacity change from 0 to 999292928
[ 40.193128] md2: unknown partition table
mdadm: /dev/md/2 has been started with 2 drives.
[ 40.204234] md: md3 stopped.
[ 40.205278] md: bind<sdf5>
[ 40.205695] md: bind<sde5>
[ 40.206613] md/raid10:md3: active with 2 out of 2 devices
[ 40.206704] md3: detected capacity change from 0 to 12492734464
[ 40.207094] md3: unknown partition table
mdadm: /dev/md/3 has been started with 2 drives.
[ 40.218963] md: md5 stopped.
[ 40.223807] sdb: unknown partition table
[ 40.228841] sda: unknown partition table
[ 40.229044] md: bind<sda>
[ 40.229613] md: bind<sdb>
[ 40.234024] sdb: unknown partition table
[ 40.243686] md/raid10:md5: active with 2 out of 2 devices
[ 40.243867] created bitmap (14 pages) for device md5
[ 40.244684] md5: bitmap initialized from disk: read 1 pages, set 0 of 28614 bits
[ 40.245376] md5: detected capacity change from 0 to 1920248840192
[ 40.248331] md5: unknown partition table
mdadm: /dev/md/5 has been started with 2 drives.
Success: assembled all arrays.
done.
[ 40.260413] device-mapper: uevent: version 1.0.3
[ 40.260540] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
done.
Begin: Running /scripts/local-premount ... [ 40.265067] PM: Starting manual resume from disk
done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/md1] fsck.ext4 -a -C0 /dev/md1
root: clean, 44775/122160 files, 265568/487936 blocks
done.
[ 40.296866] EXT4-fs (md1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[ 40.350701] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCR
YPT +ACL +XZ -SECCOMP -APPARMOR)
[ 40.350843] systemd[1]: Detected virtualization 'xen'.
[ 40.350920] systemd[1]: Detected architecture 'x86-64'.
Welcome to Debian GNU/Linux 8 (jessie)!
Am I right in thinking this is not incremental assembly by udev, but
kernel auto-assembly?
Also, in the previous configuration, mpt3sas was being loaded once
the root filesystem had been mounted. All the drives on the SAS
controller were then available, so udev should have assembled md5 at
that point, right? So I think there is still a problem here, just
one which I have worked around in some other way.
If that is the case, would you like me to continue debugging udev?
Cheers,
Andy
next prev parent reply other threads:[~2016-11-18 3:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 3:52 Newly-created arrays don't auto-assemble - related to hostname change? Andy Smith
2016-11-17 6:09 ` NeilBrown
2016-11-17 15:09 ` Andy Smith
2016-11-17 22:43 ` NeilBrown
2016-11-18 2:31 ` Andy Smith
2016-11-18 3:02 ` NeilBrown
2016-11-18 3:47 ` Andy Smith [this message]
2016-11-18 4:08 ` NeilBrown
2016-11-18 4:17 ` Andy Smith
2016-11-21 4:32 ` NeilBrown
2016-11-21 6:02 ` Andy Smith
2016-11-21 22:56 ` NeilBrown
2016-11-22 6:01 ` Andy Smith
2016-11-23 2:34 ` NeilBrown
2016-11-23 9:03 ` Bug#784070: " Michael Tokarev
2016-11-24 1:24 ` Andy Smith
2016-11-23 9:09 ` SOUBEYRAND Yann - externe
2016-11-17 23:22 ` Peter Sangas
2016-11-18 2:03 ` Glenn Enright
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=20161118034716.GI21587@bitfolk.com \
--to=andy@strugglers.net \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.com \
/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;
as well as URLs for NNTP newsgroup(s).