"warning: don't erase bootbits sectors on whole disk" when creating swap on a LV.
Issue
- When executing
mkswap
on a LV, it prompts below warning.
~]# mkswap /dev/vg_rhel68tpl/lvswap
mkswap: /dev/vg_rhel68tpl/lvswap: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 1048572 KiB
no label, UUID=b0b3507e-c451-433a-89ac-7ef8432a6e11
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.