Problem
While attempting to re-image a NetBackup appliance from a USB image, it fails with the error below.
Error Message
Disk "/dev/disk/by-path/" given in clearpart command does not exist
Exception AttributeError: "'NoneType' object has no attribute 'udev_unref'" ....
Cause
Unknown at this time.
This is believed to possibly be a Linux related timing issue, when pressing F6 from the IPMI while booting from the USB image.
A similar issue was noted in this link:
Solution
It has been found in 3 occurrences that simply moving the USB to a different USB port will resolve the issue.
After the appliance was re-imaged, each USB port was tested with a newly formatted USB, and all ports could read the USB.
How to test the USB ports post re-image:
1. Format the USB on a Windows system in fat32
2. Copy file(s) to the USB
3. Plug the USB into the appliance
4. Run fdisk -l or lsscsi to see the path.
5. Make a tmp dir . example: mkdir /mnt/myusb
6. Type the command mount -t vfat -o rw,users <devicepath> /mnt/myusb -o force (your device path will vary, please use that)
7. Now cd to the /mnt/myusb location and run ls to attempt to see the files, and copy these files to the appliance.