mkfs.ext4 /dev/sd*1 is apparently in use by the system; will not make a filesystem here

If you run accross the dreaded message

/dev/sd*1 is apparently in use by the system; will not make a filesystem here

and have recreated all raid devices. The problem is more than likely device mapper driver is still in use for the logical devices.

Run the following commands and you will then be able to run mkfs on the drive having the reported issues.

/sbin/dmsetup remove_all


Comments are closed.