Tuesday, June 14, 2011

pmconfig cannot find/create /etc/.cpr_config

Now here's a bizarre one. I created the meta device to start mirroring two drives on this x2270 running Solaris. When I finished and let it finish syncing and rebooted, it worked fine. I added the other metadevices for the other slices and rebooted and I got a drive error.

I wish I could have copied down what that initial drive error was, because it might be important, but unfortunately Oracles ILOM java based remote console doesn't have any way to copy text to or from it. So...anyway, drive error. I reboot to DVD and run fsck. It finds some problems, but nothing major. I reboot and get drive errors again. So then I'm wondering if there was some problem in creating the meta device so I switch back to booting from the disk slice 0.

That's when I start getting the error in the subject line. Again, I wish I could have copied it all exactly but this is the main error:
/usr/sbin/pmconfig: cannot open/create "/etc/.cpr_config", Bad file number.

It also listed a missing inode. So I thought maybe that file was corrupted or something. So I did the reboot to DVD thing, changed the files name, found a valid version of it and copied it into the directory, etc. Should lock down the inode to the renamed file.

No good.

So after a bunch of googling and waiting for Oracle to get me an OS/software guy to call me he found the solution. And it was a stupid stupid thing on my part.

When I switched back to booting from the disk/slice, I forgot to change /etc/system so that it didn't include the reference to the metadisk as the boot disk at the bottom of the file. Very stupid mistake.

Now...I still don't know why it failed the mirroring, but now that the system boots and is stable again, I can start troubleshooting that part.

No comments: