Problem scenario
You are trying to run an mkfs command. But you get “mkfs unable to open device /dev/nvme device or resource busy”. What should you do?
Solution
Are you 100% sure the target of the mkfs command is the one you want?
The target may be /dev/mapper/nvmeABC123 for example. Try to ascertain the destination (often the last argument) of the mkfs command.
…