devxlogo

Dropping a Bad Chunk

Dropping a Bad Chunk

Question:
I have a bad chunk in a dbspace that is bad and marked “down” by Informix. I don’t really care about the data in that chunk anyway, so I just want to drop it. But when I try to drop the chunk using “onspaces” it says I can’t because it is “down”.

I don’t want to do a restore of the whole database, and I would prefer not unload all the tables in the dbspace which this chunk resides in just to drop the entire dbspace, because that could take days. I believe Informix support can force the chunk to drop, but is there any way I can force the chunk to drop without going through Informix support?

Answer:
You have one possibility. Try first bringing the chunk up using onspaces -s to change the chunk status to “Online”. Then drop the space. This will only work if you cure the underlying problem that took the chunk offline in the first place.

Otherwise, you need to call Informix Support. They will poke around in the rootdbs and probably change the chunk to a blobspace and then drop it.

See also  5 Ways to Improve Customer Experience
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist