1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Found solution. I think aws documentation can be improved (check script and documentation for new nitro systems). Script erroneously return "OK" for NVMe check. In fact nvme driver (e.g. nvme.ko.xz) was present in the OS (modeprobe nvme), but not in initramfs, allowing boot unable to discover and use new nitro based nvme devices.
To add nvme driver in initramfs (available at device discover and mount phase):
echo 'add_drivers+=" nvme "' > /etc/dracut.conf.d/nvme.conf
dracut -f -v
lsinitrd /boot/initramfs-$(uname -r).img | grep nvme.ko
other configuration make instance more robust:
For (ENA):
(optional - network availability in initramfs phase)
echo 'add_drivers+=" ena "' > /etc/dracut.conf.d/ena.conf
dracut -f -v
lsinitrd /boot/initramfs-$(uname -r).img | grep ena.ko
(optional - avoid network device name change between reboot)
add net.ifnames=0 to kernel options (e.g in GRUB_CMDLINE_LINUX inside /etc/default/grub and executing grub2-mkconfig -o /boot/grub2/grub.cfg. OS distribution and version dependent)
(optional - avoid inconsistent disk name)
use UUID instead of device names in /etc/fstab and boot loader (e.g. for GRUB in /boot/grub2/grup.cfg root=UUID=...).
Edited by: Roxyrob on Jul 10, 2020 12:17 PM
Edited by: Roxyrob on Jul 10, 2020 12:31 PM
답변함 4년 전
관련 콘텐츠
- 질문됨 2달 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전