The problem, and I hit it often also, is that the bios fakeraid firmware writes metadata to the physical drive, and then the linux kernel automagically recognizes this metadata and disables access to the underlying raw device before you have any chance to intervene. You can’t run fdisk on anything to clear it. The kernel does not allow you to do what it thinks is shooting yourself in the foot. You have to have a way to tell the kernel to ignore fakeraid metadata before the kernel loads up.
The problem persists even when you disable the fakeraid option in your bios or sata card, or when you move the drives to other machines. Once the metadata is there, linux treats it as a fundamental property of the drive and doesn’t let you “break” it, only use it.
“dmraid -rE” doesn’t even work, at least not from a suse installer shell where you most need it.
This is a common problem, which is why, as he said, there are options in the fedora/centos and other installers just for this purpose. I see no especially user-friendly option in the opensuse installer that addresses the need, but there is a way.
2 parts, first add this to the kernel options at the syslinux boot prompt:
brokenmodules=dm_mod
( Other boot command options are documented here:
Linuxrc - openSUSE )
That was still not good enough for me though. Even if I avoided going into yast by specifying text or ssh and then not starting yast after logging in, I still could not erase that metadata. dmraid -x and dmraid -rE still gave errors. I could access the drives with dd , but I could not find the metadata offset to wipe it. It wasn’t at the beginning, end, or middle of the drive. “dmraid -rE” displays a sector number in it’s error message, but erasing 100 megs starting at that point didn’t do it, nor did erasing the last or the first 100M of the drive.
I HAD to go back into the servers bios and re-enable sata raid, then reboot, then enter the raid bios, and use the menus there to delete the array config.
Then reboot, motherboard bios, disable sata raid, reboot, then everything was fine.
Apparently using dd to re-write the entire drive works, but that would take forever with 8 500G drives!! even if I had 8 background dd processes running concurrently.
Thank You Seneca Data for playing around with the on board fakeraid before shipping me my “no OS/freedos” server…grrr.