Re: md0: bitmap file is out of date, resync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 2019/8/23 15:16, Mathias G wrote:
> Hi Song, Hi Tao
> I kept an eye on the RAID status after the last update I did on the system.
> The first boot after the update was ok, the RAID was clean. I did a
> clean shutdown and the next as I switched on the computer the RAID was
> rebuilding again (this was yesterday)
> 
> I have no more ideas what to do - maybe reinstall the whole system and
> start from scratch?
> 

Could you please save the following script as /usr/lib/systemd/system-shutdown/md_debug.sh and make it executable:

#!/bin/bash
mount -o remount,rw /
mdadm -D /dev/md* > /md_debug.txt
mdadm -S /dev/md* >> /md_debug.txt
mount -o remount,ro /

The script will dump the details of md devices to the /md_debug.txt and stop the md devices forcibly before shutdown or reboot.
And we can check the content of md_debug.txt if the problem reoccurs.

Regards,
Tao




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux