On 11/14/2012 06:56 PM, Harald Hoyer wrote: > Am 14.11.2012 09:49, schrieb Dave Young: >> Even with this series we still need add rd.retry=90 to make it work. >> How about increase the default rd.retry value in dracut? >> >> On 11/08/2012 11:40 AM, dyoung@xxxxxxxxxx wrote: >> >>> Here is a patch set for some network cleanup and fixes: >>> 01-network-move-wait-for-if-function-to-net-lib.patch >>> 02-network-add-function-linkup.patch >>> 03-network-use-linkup-function.patch >>> 04-network-wait-for-link-ready-before-use.patch >>> 05-network-get-ifaces-for-udev-rule-use.patch >>> 06-network-wait-interface-up-at-early-stage.patch >>> >>> Tested kdump with a nic which delay abouth 60s while initializing. >>> >>> Please help to review especially for the patch 3/6 which replace some ip link >>> up with a function linkup. >>> >>> -- >>> Thanks a lot >>> Dave >>> -- >>> To unsubscribe from this list: send the line "unsubscribe initramfs" in >>> the body of a message to majordomo@xxxxxxxxxxxxxxx >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> >> > > wow, which HW is recognized only after 40 seconds? Hi, It's a Qlogic nic, seel below log, looks like it detected a wrong firmware, then released it and loaded firmware from flash: Ethernet using netxen_nic driver for exp., suppressed irrelevant info. [ 6.666842] QLogic/NetXen Network Driver v4.0.80 [ 6.727424] netxen_nic 0000:04:00.0: 2MB memory map [ 38.484866] netxen_nic 0000:04:00.0: Incompatibility detected between driver and firmware version on flash. This configuration is not recommended. Please update the firmware on flash immediately dracut-pre-pivot[581]: device node not found dracut-pre-pivot[581]: cat: /sys/class/net/em1/address: No such file or directory dracut-pre-pivot[581]: cat: /sys/class/net/em1/address: No such file or directory dracut-pre-pivot[581]: ++ KDUMP_PATH=/var/crash dracut-pre-pivot[581]: ++ CORE_COLLECTOR= dracut-pre-pivot[581]: ++ DEFAULT_CORE_COLLECTOR='makedumpfile -c --message-level 1 -d 31' dracut-pre-pivot[581]: ++ DEFAULT_ACTION=dump_rootfs dracut-pre-pivot[581]: +++ date +%d.%m.%y-%T dracut-pre-pivot[581]: ++ DATEDIR=05.11.12-00:32:36 dracut-pre-pivot[581]: ++ DUMP_INSTRUCTION= dracut-pre-pivot[581]: ++ SSH_KEY_LOCATION=/root/.ssh/kdump_id_rsa dracut-pre-pivot[581]: ++ KDUMP_SCRIPT_DIR=/kdumpscripts dracut-pre-pivot[581]: ++ DD_BLKSIZE=512 dracut-pre-pivot[581]: ++ FINAL_ACTION='reboot -f' dracut-pre-pivot[581]: ++ DUMP_RETVAL=0 dracut-pre-pivot[581]: ++ conf_file=/etc/kdump.conf dracut-pre-pivot[581]: ++ KDUMP_PRE= Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. kdump:/# dracut-pre-pivot[581]: ++ KDUMP_POST= dracut-pre-pivot[581]: ++ export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/kdumpscripts dracut-pre-pivot[581]: ++ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/kdumpscripts dracut-pre-pivot[581]: ++ read_kdump_conf dracut-pre-pivot[581]: ++ '[' '!' -f /etc/kdump.conf ']' dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ KDUMP_PATH=/ dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ case $config_val in dracut-pre-pivot[581]: ++ DEFAULT_ACTION='_emergency_shell kdump' dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ add_dump_code 'dump_fs ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs' dracut-pre-pivot[581]: ++ DUMP_INSTRUCTION='dump_fs ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs' dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ case "$config_opt" in dracut-pre-pivot[581]: ++ read config_opt config_val dracut-pre-pivot[581]: ++ '[' -z '' ']' dracut-pre-pivot[581]: ++ CORE_COLLECTOR='makedumpfile -c --message-level 1 -d 31' dracut-pre-pivot[581]: ++ is_ssh_dump_target dracut-pre-pivot[581]: ++ grep -q '^ssh.*@' /etc/kdump.conf dracut-pre-pivot[581]: ++ is_raw_dump_target dracut-pre-pivot[581]: ++ grep -q '^raw' /etc/kdump.conf dracut-pre-pivot[581]: ++ '[' -z 'dump_fs ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs' ']' dracut-pre-pivot[581]: ++ do_kdump_pre dracut-pre-pivot[581]: ++ '[' -n '' ']' dracut-pre-pivot[581]: ++ '[' 0 -ne 0 ']' dracut-pre-pivot[581]: ++ dump_fs ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs dracut-pre-pivot[581]: +++ findmnt -k -f -n -r -o TARGET ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs dracut-pre-pivot[581]: ++ local _mp= dracut-pre-pivot[581]: ++ '[' -z '' ']' dracut-pre-pivot[581]: ++ echo 'kdump: error: Dump target ibm-x3250m4-01.rhts.eng.nay.redhat.com:/mnt/testarea/nfs is not mounted.' dracut-pre-pivot[581]: ++ return 1 dracut-pre-pivot[581]: ++ DUMP_RETVAL=1 dracut-pre-pivot[581]: ++ do_kdump_post 1 dracut-pre-pivot[581]: ++ '[' -n '' ']' dracut-pre-pivot[581]: ++ '[' 0 -ne 0 ']' dracut-pre-pivot[581]: ++ '[' 1 -ne 0 ']' dracut-pre-pivot[581]: ++ do_default_action dracut-pre-pivot[581]: ++ wait_for_loginit dracut-pre-pivot[581]: ++ '[' no = yes ']' dracut-pre-pivot[581]: ++ return dracut-pre-pivot[581]: ++ _emergency_shell kdump dracut-pre-pivot[581]: ++ local _name=kdump dracut-pre-pivot[581]: ++ '[' -n 1 ']' dracut-pre-pivot[581]: ++ echo 'PS1="kdump:${PWD}# "' dracut-pre-pivot[581]: ++ systemctl start dracut-emergency.service [ 101.732446] netxen_nic 0000:04:00.0: loading firmware from flash [ 103.873799] netxen_nic 0000:04:00.0: Gen2 strapping detected [ 106.880731] netxen_nic 0000:04:00.0: using 64-bit dma mask [ 106.888721] netxen_nic: failed card response code:0x10 [ 106.894405] netxen_nic 0000:04:00.0: Can't get template size 16843009 [ 106.901481] netxen_nic 0000:04:00.0: Failed to setup minidump rcode = -5 [ 106.908839] netxen_nic: NX3031 Gigabit Ethernet Board S/N ���������������������������������▒�� Chip rev 0x42 [ 106.919726] netxen_nic 0000:04:00.0: firmware v4.0.527 [legacy] [ 106.926689] netxen_nic 0000:04:00.0: using msi-x interrupts [ 106.933163] netxen_nic 0000:04:00.0: eth0: GbE port initialized [ 106.939902] netxen_nic 0000:04:00.1: 2MB memory map [ 106.949661] netxen_nic 0000:04:00.1: using 64-bit dma mask [ 106.965572] systemd-udevd[629]: renamed network interface eth0 to em1 [ 106.982471] netxen_nic: failed card response code:0x10 [ 106.988124] netxen_nic 0000:04:00.1: Can't get template size 16843009 [ 106.995196] netxen_nic 0000:04:00.1: Failed to setup minidump rcode = -5 [ 107.002555] netxen_nic 0000:04:00.1: firmware v4.0.527 [legacy] [ 107.009440] netxen_nic 0000:04:00.1: using msi-x interrupts [ 107.015687] netxen_nic 0000:04:00.1: eth0: GbE port initialized [ 107.022569] netxen_nic 0000:04:00.2: 2MB memory map [ 107.030819] netxen_nic 0000:04:00.2: using 64-bit dma mask [ 107.062359] systemd-udevd[633]: renamed network interface eth0 to em2 [ 107.075314] netxen_nic: failed card response code:0x10 [ 107.081043] netxen_nic 0000:04:00.2: Can't get template size 16843009 [ 107.088117] netxen_nic 0000:04:00.2: Failed to setup minidump rcode = -5 [ 107.095476] netxen_nic 0000:04:00.2: firmware v4.0.527 [legacy] [ 107.102316] netxen_nic 0000:04:00.2: using msi-x interrupts [ 107.108574] netxen_nic 0000:04:00.2: eth0: GbE port initialized [ 107.115596] netxen_nic 0000:04:00.3: 2MB memory map [ 107.124339] netxen_nic 0000:04:00.3: using 64-bit dma mask [ 107.157705] systemd-udevd[629]: renamed network interface eth0 to em3 [ 107.184131] netxen_nic: failed card response code:0x10 [ 107.189786] netxen_nic 0000:04:00.3: Can't get template size 16843009 [ 107.196853] netxen_nic 0000:04:00.3: Failed to setup minidump rcode = -5 [ 107.204205] netxen_nic 0000:04:00.3: firmware v4.0.527 [legacy] [ 107.211062] netxen_nic 0000:04:00.3: using msi-x interrupts [ 107.217311] netxen_nic 0000:04:00.3: eth0: GbE port initialized [ 107.244557] systemd-udevd[629]: renamed network interface eth0 to em4 -- Thanks Dave -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html