From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Cong Wang <amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: dracut does not mount iscsi targets specified using --mount option
Date: Mon, 23 Apr 2012 09:40:26 +0200 [thread overview]
Message-ID: <4F95076A.9060504@redhat.com> (raw)
In-Reply-To: <1335154319.18028.14.camel@cr0>
Am 23.04.2012 06:11, schrieb Cong Wang:
> On Fri, 2012-04-20 at 09:51 -0400, Vivek Goyal wrote:
>> On Thu, Apr 19, 2012 at 10:59:17AM +0200, Harald Hoyer wrote:
>>> Am 19.04.2012 00:28, schrieb Vivek Goyal:
>>>> Hi,
>>>>
>>>> I am trying to dump kernel vmcore to an software iscsi target (kdump).
>>>> kdump specifies the dump destination using "--mount" option. But dracut
>>>> does not even include the "iscsi" module and associated device is not
>>>> mounted in second kernel.
>>>>
>>>> Following is the dracut command line as called by /sbin/mkdumprd.
>>>>
>>>> dracut -m kdumpbase --add dash --add fstab-sys --add kernel-modules -c /dev/null -I /sbin/makedumpfile --mount '/dev/mapper/vg-lv_root / ext4 rw,seclabel,relatime,user_xattr,barrier=1,data=ordered' --mount '/dev/mapper/mpatha /mnt/common ext4 rw,seclabel,relatime,user_xattr,barrier=1,stripe=16,data=ordered' -M -f /boot/initramfs-3.3.2-1.fc17.x86_64kdump.img 3.3.2-1.fc17.x86_64
>>>
>>> "-m kdumpbase" - This tells dracut to only use the kdumpbase dracut module
>>> So, because the iscsi dracut module is not added, dracut does not even check() it.
>>>
>>> Why is it "-m kdumpbase" and not "--add kdumpbase" ???
>>
>> I don't know why -m is being used instead of --add. I tried changing it
>> to --add and uncompressed initramfs size changed from 36MB to 72MB.
>>
>> To me 32MB size itself is big. IIRc, in RHEL6 using our own mkinitrd, we had
>> uncomressed initrd size close to 25MB.
>>
>> In kdump environment we work in very restricted memory conditions.
>> Currently we reserve 128MB and there are calls to reduce it further. This
>> 128MB should load kernel, initramfs and run all the tools in initramfs
>> to actually save the vmcore to the target.
>>
>> So we need to figure out how can we reduce the size of initramfs for
>> kdump case. In the next mail I will add the output of --debug both for
>> -m kdumpbase and --add kdumpbase.
>>
>> From kdump perspective, we only need to mount targets as specified by
>> --mount option. We might not want to mount even root and it depends on
>> kdump.conf. If root is needed, we will pass that too on command line
>> using --mount. So this is little different from -H option.
>>
>> Can we modify dracut in such a way so that it packs only those modules
>> need to mount targets as specified --mount options?
>
> Yeah, I noticed this too, I think this is due to the dracut module
> "kernel-modules" includes more than enough kernel modules into
> initramfs, thus the size increased so much.
>
> Harald, if you have any idea to improve this? We need to find a way to
> tell "kernel-modules" module to only include the ones we want.
Just activate the host-only mode "--hostonly" or "-H"
>
> Thanks.
>
next prev parent reply other threads:[~2012-04-23 7:40 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 22:28 dracut does not mount iscsi targets specified using --mount option Vivek Goyal
[not found] ` <20120418222829.GG2224-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-19 4:57 ` Cong Wang
2012-04-19 8:59 ` Harald Hoyer
[not found] ` <4F8FD3E5.90103-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-20 6:45 ` Cong Wang
2012-04-20 8:42 ` Harald Hoyer
[not found] ` <20120420155143.GK22419@redhat.com>
[not found] ` <20120420155143.GK22419-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-23 4:09 ` Cong Wang
2012-04-20 13:51 ` Vivek Goyal
[not found] ` <20120420135156.GE22419-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-23 4:11 ` Cong Wang
2012-04-23 7:40 ` Harald Hoyer [this message]
[not found] ` <4F95076A.9060504-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-23 7:53 ` Cong Wang
2012-04-23 8:37 ` Harald Hoyer
[not found] ` <4F9514E5.3010003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-23 12:54 ` Vivek Goyal
[not found] ` <20120423125449.GF8103-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-24 3:18 ` Cong Wang
2012-04-24 21:02 ` Vivek Goyal
[not found] ` <20120424210224.GJ26708-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 9:26 ` Harald Hoyer
[not found] ` <4F97C337.8040604-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-04-25 13:46 ` Vivek Goyal
[not found] ` <20120425134606.GE12519-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 13:57 ` Harald Hoyer
[not found] ` <4F9802CE.2030601-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 14:14 ` Vivek Goyal
[not found] ` <20120425141421.GF12519-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 14:22 ` Harald Hoyer
[not found] ` <4F9808A1.50206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 15:02 ` Vivek Goyal
[not found] ` <20120425150246.GG12519-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 16:14 ` Harald Hoyer
[not found] ` <4F9822FD.1010303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-25 18:44 ` Vivek Goyal
2012-04-30 15:07 ` Vivek Goyal
2012-04-25 13:34 ` Harald Hoyer
2012-04-23 14:49 ` Vivek Goyal
[not found] ` <20120423151711.GD15561@redhat.com>
[not found] ` <20120423151711.GD15561-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-23 16:11 ` Harald Hoyer
[not found] ` <4F957F4A.6090808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-24 1:38 ` Vivek Goyal
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=4F95076A.9060504@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/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