The error messages indicate that /dev/md125 does not contain a valid RAID superblock, and there is a configuration issue in your mdadm.conf file. Here's a step-by-step solution:
1. Check Active RAID Arrays
First, verify if /dev/md125 is part of an active RAID array:
bash
cat /proc/mdstat
If /dev/md125 is not listed, it is not part of an active RAID array. Proceed to step 2.
If it is listed, check its status (e.g., U for up, _ for down) and ensure it is properly configured.
2. Inspect the mdadm.conf File
The error references /dev/md/var_lib_qligent, which suggests a misconfigured entry in your mdadm.conf:
bash
sudo nano /etc/mdadm/mdadm.conf
Look for lines starting with ARRAY that reference /dev/md/var_lib_qligent. Example of a problematic line:
plaintext
ARRAY /dev/md/var_lib_qligent ... # Missing UUID or device details
If the entry is outdated/invalid: Comment it out (add # at the start) and save the file.
If the entry is valid: Ensure it includes the correct UUID and device list. Regenerate the config afterward (step 4).
3. Verify /dev/md125 Exists
Confirm the device node exists:
bash
ls -l /dev/md125
If it doesn’t exist, check for typos or check if the RAID was stopped.
4. Update mdadm.conf (Optional)
If you removed invalid entries, update the config with active arrays:
bash
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
sudo update-initramfs -u # Regenerate initramfs if needed
5. Check if /dev/md125 is a Valid RAID Device
If /dev/md125 is not part of a RAID but you expect it to be: