我有一个HPE Proliant BL460c Gen10服务器,我想安装它Ubuntu。服务器只有到外部SAN的Fabric FCoE。当我从HPEUbuntu20.04ISO启动时,HDD是不被识别的,但是我随后在安装媒体上安装了软件包fcoe-utils (apt install fcoe-utils)。稍后,我在/etc/fcoe/中配置eno3和eno4的配置文件,禁用DCB_REQUIRED选项,所有这些都正常工作。将系统安装在创建的多路径磁盘上。现在服务器启动Ubuntu条目,但是initramfs不识别硬盘,因为FCoE没有在initramfs中配置。我能做什么?测试我进入了一个在Ubuntu上安装了chroot的活动系统(在重新配置了fcoe之后),安装了Dracut (因为我看到它有一个特定于fcoe的模块),但是当我再次尝试引导时.这个接口永远得不到AUTO_VLAN配置,但是在实时系统上工作得很好。
发布于 2021-06-30 02:32:54
mount -t proc none /target/proc
mount -t sysfs none /target/sys
chroot /targetapt install dracut dracut-network fcoe-utils/usr/lib/dracut/modules.d/95fcoe/fcoe-up.sh添加以下变量定义(第20行)
if [ "$netif" == "eth2" ]
then
netif="eno3"
elif [ "$netif" == "eth3" ]
then
netif="eno4"
fi这是因为在引导dracut时,获取网络接口为ethX,但同时内核将接口重命名为enoX,所以找不到它。
/usr/lib/dracut/modules.d/90lvm/64-lvm.rules在运行lvm_scan语句的基础上添加以下内容
RUN+="/sbin/initqueue --settled --onetime --unique /sbin/kpartx -u /dev/mapper/mpatha"http://mirrors.kernel.org/ubuntu/pool/main/s/sg3-utils/sg3-utils-udev_1.45-1ubuntu1_all.deb
apt install ./这是因为焦点版本很难依赖initramfs--这些工具不适用于dracut。
dracut -m "fcoe fcoe-uefi multipath lvm bash network base" --add-drivers "dm_service_time bnx2fc cnic uio fcoe libfcoe libfc mac_hid hid_generic usbhid hid 8021q garp mrp stp llc bonding cfg80211 dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua intel_rapl_msr intel_rapl_common ipmi_ssif isst_if_common nfit x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm joydev input_leds rapl intel_cstate hpilo hpwdt mei_me mei ioatdma ipmi_si dca ipmi_devintf ipmi_msghandler acpi_tad mac_hid acpi_power_meter sch_fq_codel ip_tables x_tables autofs4 overlay nls_utf8 isofs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid1 raid0 multipath linear hid_generic crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel qla2xxx crypto_simd mgag200 cryptd drm_vram_helper glue_helper i2c_algo_bit ttm nvme_fc bnx2x nvme_fabrics drm_kms_helper nvme_core syscopyarea sysfillrect scsi_transport_fc sysimgblt usbhid fb_sys_fops mdio libcrc32c hid drm lpc_ich wmi usb_storage" --fstab --force --kver 5.4.0-77-genericdracut: fcoe=eno3:nodcb:fabric
fcoe=eno4:nodcb:fabric
ifname=eno3:aa:bb:cc:dd:ee:fe
ifname=eno4:aa:bb:cc:dd:ee:ff删除dracut:并将所有配置放入一行到grub.cfg上的内核行引导。
https://askubuntu.com/questions/1348986
复制相似问题