Skip to Content
Arista Warrior,第二版
book

Arista Warrior,第二版

by Gary A. Donahue
May 2025
Intermediate to advanced
572 pages
8h 39m
Chinese
O'Reilly Media, Inc.
Book available
Content preview from Arista Warrior,第二版

第14章 阿博特

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

Aboot 是 EOS 的引导加载程序。引导加载器是一个小程序,在系统开机时自动加载。引导加载器的主要任务是加载主操作系统(OS),该操作系统通常存储在闪存或磁盘等其他地方。如果你曾经安装过 Linux 系统,就可能遇到过 GRUB 这样的引导加载器。在 Windows NT/2000/XP 机器上,默认引导程序是 NTLDR。

备注

从技术上讲,有两种类型的引导加载程序:第一阶段和第二阶段。第一阶段引导加载程序通常在很低的级别运行,通常负责硬件系统检查。个人计算机的 BIOS 属于第一阶段引导程序,而本章提到的引导程序属于第二阶段引导程序

在加载 EOS 之前,交换机会从 ROM 中加载 Aboot 进程。Aboot 会在flash:/ 中查找一个名为boot-config的文件,准确地说,在 Linux 中实际上是/mnt/flash

[admin@Arista ~]$ cd /mnt/flash
[admin@Arista flash]$ ls
EOS-4.20.1F.swi  debug    schedule        zerotouch-config
boot-config      persist  startup-config

Aboot 会读取该文件的内容,确定要加载的映像,然后加载它。如果引导配置文件不存在,Aboot 将停止系统并提示Aboot#

事实上,如果出现以下情况,Aboot 将停止系统运行:

  • 引导配置损坏或未找到

  • 配置的 EOS 映像损坏或未找到

  • 在 Aboot 进程运行时从控制台输入 Ctrl-C

通常情况下,系统启动过程如下(具体情况可能因加载的模块和安装的 EOS 版本而异):

 Aboot 6.1.2-4757975 Press Control-C now to enter Aboot shell Booting flash:/EOS-4.20.1F.swi [ 8.336429] Starting new kernel [ 1.674818] Running dosfsck on: /mnt/flash Switching rootfs Welcome to Arista Networks EOS 4.20.1F New seat seat0. RTNETLINK answers: No such process [ 63.406686] EXT4-fs (sda): VFS: Can't find ext4 filesystem [ 63.483960] FAT-fs (sda): invalid media value (0xf3) Arista File Archive: initialization complete, quotapct: 20 [ OK ] TimeAgent: Starting ConnMgr: [ OK ] [ OK ] Starting ProcMgr: [ OK ] Starting EOS initialization stage 1: [ OK ] Starting NorCal initialization: [ OK ] Starting EOS initialization stage 2: [ OK ] Starting Power OCompleting EOS initialization (press ESC to skip): ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Seventh Edition

A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Seventh Edition

Mark G. Sobell

Publisher Resources

ISBN: 9798341658967