Report this

What is the reason for this report?

How to create LVM or block device for DRBD?

Posted on January 22, 2021

As per DBRD guide block device or LVM could be used for data replication. However, whenever I try to create primary partition using fdisk all I get is following error. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) I also tried to make use of part probe but didn’t work out. If anyone have any idea, I will be thankful.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

This problem often occurs when the operating system continues to use the old partition table even after a new one has been written.

You could try running the partprobe or kpartx commands to ask the OS to re-read the partition table. If it continues to fail, rebooting the system should cause the OS to use the new table. Please ensure that no processes are using the disk when you’re modifying the partitions, as this can also be a cause of the issue.

If you need more assistance, please don’t hesitate to ask.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.