Mailinglist Archive: opensuse (929 mails)

< Previous Next >
Re: [opensuse] Install on RAID 1 with local disk and iscsi disk
  • From: Andrey Borzenkov <arvidjaar@xxxxxxxxx>
  • Date: Fri, 28 Mar 2014 10:57:19 +0400
  • Message-id: <>
On Fri, Mar 28, 2014 at 10:27 AM, Paul Neuwirth <mail@xxxxxxxxxxxxxxxx> wrote:
On Mar 27 2014 20:24, Andrey Borzenkov wrote:

В Thu, 27 Mar 2014 07:59:20 +0100
Per Jessen <per@xxxxxxxxxxxx> пишет:

Paul Neuwirth wrote:

On Mar 26 2014 16:03, Per Jessen wrote:

Hmm, he did say it was root, so yes, it has to be in the initrd. Paul,
you may have to rebuild the initrd to get the iscsi setup copied in.

yes, i have "node.startup = onboot" in the node configuration.
and yes it happens in initrd.
i rebuild initrd already, but wondering, how mkinitrd shoulld detect,
that the root device (/dev/md0) uses an iscsi device.
something to add into a config or into the mkinitrd command?

I think mkinitrd is somewhat uncritical and simply copies in the iscsi
whenever it finds iscsi devices in fstab. Judging by your initrd, it has
so that's covered. Your initrd looks remarkably like one of mine, right
down to
the tg3 network driver.

You might want to look into if the md startup waits for the iscsi ditto.

According to script order, iscsi comes far before mounting of root
partition. So the actual question is - is discovery and setup of iSCSI
targets synchronous? If not ...

.. mkinitrd waits 15 seconds before starting array for root in degraded
mode. There is no real solution except increasing timeout.

I do not have any iSCSI setup so could someone test how long it takes
for devices to appear? Look into /lib/mkinitrd/scripts/
what it does.

i don't think that's the actual problem. iscsi device is found before
mounting the root device, but after the raid has been build:

MD is assembled incrementally using mdadm --incremental.

[ 2.356219] sd 0:0:0:0: [sda] Attached SCSI disk

[ 2.639502] md: bind<sda2>
[ 2.641575] md/raid1:md0: active with 1 out of 2 mirrors

This is the first piece. RAID is assembled but (should not be) not started yet.

[ 12.990908] iscsi: registered transport (bnx2i)
[ 13.252366] scsi4 : iSCSI Initiator over TCP/IP
[ 13.508098] scsi 4:0:0:0: Direct-Access IET VIRTUAL-DISK 0
PQ: 0 ANSI: 4
[ 13.511131] sd 4:0:0:0: [sdb] 16777232 512-byte logical blocks: (8.58
GB/8.00 GiB)
[ 13.511424] sd 4:0:0:0: [sdb] Write Protect is off
[ 13.511427] sd 4:0:0:0: [sdb] Mode Sense: 77 00 00 08
[ 13.516552] sd 4:0:0:0: [sdb] Write cache: disabled, read cache: enabled,
doesn't support DPO or FUA
[ 13.521263] sdb: sdb1

[ 13.524769] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 13.788372] EXT4-fs (md0): mounted filesystem with ordered data mode.
Opts: acl,user_xattr

Full log would be more useful. You can also boot kernel with debug=1
which is expected to make initrd more verbose. You will see which
script in which order is executed.

md should be started after iscsi (or add the second mirror after

That's what I expect based on code review. Please provide full log.

otherwise the system always boots with an degraded array..
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >