0
Aldar
2y

OMG
LVM
WHAT A PIECE OF CRAP

It's so precious that when it detects an existing mdraid signature, it just *won't* let me create a physical volume over it!

No matter that I run pvcreate with double-force switch.
It doesn't matter that the system doesn't even have a single MD device defined (Which can be easily checked in /proc/mdstat OR by checking the /dev subsystem)

I *hate* commands that are trying to be more clever than the admin sitting behind the keyboard.

Sure, leave this as the default behavior (It could save a lot of people's data I bet), but BLOODY HELL GIVE ME A SWITCH TO OVERRIDE THE CHECK YOU DUMBASS.

I swear... I feel like I'll get a frickin' brain hemorrhage from this "clever tool" -_-"

Comments
  • 2
    You can run an dd over the device:
    dd if=/dev/zero count=100 status=progress of=/dev/sdaX
  • 0
    @stop If I could, I would. It's a part of an automated installation system that only allows me to include my own script snippets before an installation step - In this case, before the partitioning of the disk. So at the time, I don't yet know where the partitions are going to be created, and no sdaX exists.
  • 0
    So your script runs before udev?
  • 0
    @stop Yep, it runs before any partitioning is done on the drive
  • 1
    @Aldar what the heck are you using when even udev isn't running?
Add Comment