背景:F5 设备损坏,需要做EUD。
一、CentOS 制作 EUD
环境:CentOS 8 (可联网)
1、安装依赖
yum -y install perl* cpan libxml2-devel zlib-devel
cpan install XML::Simple
cpan install XML::LibXML
2、登陆官网下载最新系统
https://downloads.f5.com/esd/product.jsp?sw=Hardware-Specific&pro=Platform
3、创建文件夹 /var/eud
mkdir /var/eud
4、上传eud文件至 /var/eud 路径下
5、创建临时操作文件夹
mkdir /var/usb
6、挂载eud文件至 /var/usb
mount -o ro,loop /var/eud/EUD_file.im /var/usb/
#EUD_file 改为真实EUD文件
7、插入U盘
8、进入/var/usb,执行mkdisk
cd /var/usb
./mkdisk
#剩下的按照提示进行即可,出现Device created successfully.则EUD盘制作完成。
9、卸载 im文件
umount /mnt/usb
二、BIGIP VE 制作 EUD
1、登陆官网下载最新系统
https://downloads.f5.com/esd/product.jsp?sw=Hardware-Specific&pro=Platform
2、创建文件夹 /var/eud
mkdir /var/eud
3、上传eud文件至 /var/eud 路径下
4、创建临时操作文件夹
mkdir /var/usb
5、挂载eud文件至 /var/usb
mount -o ro,loop /var/eud/EUD_file.im /var/usb/
#EUD_file 改为真实EUD文件
6、插入U盘
7、查看要制作 EUD PID 平台型号
cd /var/usb
./mkdisk --list_platforms
...........................................................................
7661 blocks
Platform PID
-------------------------------------------
BIG-IP 350 C107
BIG-IP 800 C114
BIG-IP 1500 C36
BIG-IP 1600 C102
BIG-IP 2000 C112
······
BIG-IP i15600 D116
BIG-IP i15600-DN D116
BIG-IP i15800 D116
BIG-IP i15800-DN D116
8、这里以 BIG-IP i15600 为例,制作EUD
#./mkdisk --pid 后面跟上一步查询到的 PID
./mkdisk --pid D116
Searching repository for an appropriate EUD for the platform
Please select the device on which you wish to create the bootable EUD
Index Product Size
1 KingstonDataTraveler 3.0 59006 MB
Please select a device by index (1 - 1) --->1 #选择U盘
Chosen device /dev/sdc is KingstonDataTraveler 3.0
WARNING: The next step will destroy all data on this device!
Are you sure you want to continue? (y|n) [n] --> y #格式化磁盘
info: Creating partition table on device /dev/sdc
info: capture: status 0 returned by command: sfdisk /dev/sdc < /tmp/mkdisk.KoUwXs/usr/local/lib/tm_install/etc/sfdisk/part.cfg
info: >++++ result:
info: Checking that no-one is using this disk right now ...
info: OK
info:
info: Disk /dev/sdc: 59006 cylinders, 64 heads, 32 sectors/track
info: Old situation:
······
info: Mounting /dev/sdc1 on /mnt/azRAbXBD_E
info: Installing the master boot record on device /dev/sdc
info: Installing the boot loader
copying /var/tmp/Ft6bT9YQWH/shared/mfg/eud/EUD_SF-kernel.386 => /mnt/azRAbXBD_E
copying /var/tmp/Ft6bT9YQWH/shared/mfg/eud/EUD_SF-kernel.386.md5 => /mnt/azRAbXBD_E
copying /var/tmp/Ft6bT9YQWH/shared/mfg/eud/EUD_SF-initrd.386 => /mnt/azRAbXBD_E
copying /var/tmp/Ft6bT9YQWH/shared/mfg/eud/EUD_SF-initrd.386.md5 => /mnt/azRAbXBD_E
Flushing disk buffer (this may take a while)... done
Device created successfully. #完成
9、卸载 im文件
umount /mnt/usb
请问 这是什么程序源码啊