Re: I understand what you are looking for
"but I don't think it can be defined without more information."
Actually, it can, which is surprising , or even counter-intuitive (to me). Bill gave the answer for a sphere of diameter 6, and a cylinder of diameter 0. Surprisingly, the volume is the same if the sphere is earth-sized, and the "hole" takes away most of the earth, leaving a ring 25,000 miles across (or whatever the earth's diameter is), 6" wide, and very very thin.
"I don't think it's a trivial solid geometry problem based upon what I see."
I'll grant you that. The piece that is not part of elementary geometry is the volume of a spherical dome (by which I mean the portion of a sphere like the endcaps. The volume of a spherical dome is pi*A*(3r^2 +A^2)/6, where A is the height of the dome (in this case, the sphere's radius, R, minus 3) and r is the radius of the dome (the radius of the cylindrical hole, NOT the curvature of the top).
"Pi*r ^^3- pi*r(2)**2*l- (volume of the end caps)"
Correction: First term needs a 4/3 multiplier
And we know that l=6.
"Even with the radius defined, the volume of the end caps is not trivial."
Yeah, not a formula that comes readily to mind (ok, not a formula I'd ever seen before!).