首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从FCoE在HPE ProLiant BL460c Gen10中引导Ubuntu

从FCoE在HPE ProLiant BL460c Gen10中引导Ubuntu
EN

Ask Ubuntu用户
提问于 2021-06-29 20:07:57
回答 1查看 321关注 0票数 1

我有一个HPE Proliant BL460c Gen10服务器,我想安装它Ubuntu。服务器只有到外部SAN的Fabric FCoE。当我从HPEUbuntu20.04ISO启动时,HDD是不被识别的,但是我随后在安装媒体上安装了软件包fcoe-utils (apt install fcoe-utils)。稍后,我在/etc/fcoe/中配置eno3eno4的配置文件,禁用DCB_REQUIRED选项,所有这些都正常工作。将系统安装在创建的多路径磁盘上。现在服务器启动Ubuntu条目,但是initramfs不识别硬盘,因为FCoE没有在initramfs中配置。我能做什么?测试我进入了一个在Ubuntu上安装了chroot的活动系统(在重新配置了fcoe之后),安装了Dracut (因为我看到它有一个特定于fcoe的模块),但是当我再次尝试引导时.这个接口永远得不到AUTO_VLAN配置,但是在实时系统上工作得很好。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-06-30 02:32:54

  • 在实时服务器安装环境上配置FCoE
  • 安装服务器并在最后不重新启动,到达外壳。
  • /target内部的Chroot
代码语言:javascript
复制
mount -t proc none /target/proc
mount -t sysfs none /target/sys
chroot /target
  • 安装基本依赖项:
代码语言:javascript
复制
apt install dracut dracut-network fcoe-utils
  • 编辑/usr/lib/dracut/modules.d/95fcoe/fcoe-up.sh

添加以下变量定义(第20行)

代码语言:javascript
复制
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语句的基础上添加以下内容

代码语言:javascript
复制
RUN+="/sbin/initqueue --settled --onetime --unique /sbin/kpartx -u /dev/mapper/mpatha"
  • 下载及安装sg3-utils版本> focal_version deb

http://mirrors.kernel.org/ubuntu/pool/main/s/sg3-utils/sg3-utils-udev_1.45-1ubuntu1_all.deb

代码语言:javascript
复制
apt install ./

这是因为焦点版本很难依赖initramfs--这些工具不适用于dracut。

  • 执行dracut
代码语言:javascript
复制
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-generic
  • 从dracut输出获取有关fcoe的信息
  • 例如:
代码语言:javascript
复制
dracut: 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上的内核行引导。

  • 修改grub.cfg并将新的引用放到创建的iniramfs上
  • 卸下所有并重置
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1348986

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档