|
From: Patrick Finnegan on 30 Jun 2008 12:44 Running DB2 9.1 on Redhat Linux 4.1. Storage management indicates that the pages stored in a file based SMS container occupy 7 gig of the total space allocated which is 50gig. I wrote a script to reorg and runstat all the tables in the tablespace but the reorgs are not releasing space to the file system. Is there anything that would cause this?
From: Mark A on 30 Jun 2008 18:02 "Patrick Finnegan" <finnegan.patrick(a)gmail.com> wrote in message news:ea223638-743d-48f0-b590-b0f0b0413b4b(a)d1g2000hsg.googlegroups.com... > > Running DB2 9.1 on Redhat Linux 4.1. > > Storage management indicates that the pages stored in a file based SMS > container occupy 7 gig of the total space allocated which is 50gig. I > wrote a script to reorg and runstat all the tables in the tablespace > but the reorgs are not releasing space to the file system. Is there > anything that would cause this? You are probably mistaken. What makes you think storage is not being released? Keep in mind that a table can actually get larger after a reorg, since DB2 will recreate the percent free on each page (default is 10%). This percent free may have been used during inserts.
From: peter on 30 Jun 2008 23:35 On Jul 1, 8:02 am, "Mark A" <nob...(a)nowhere.com> wrote: > "Patrick Finnegan" <finnegan.patr...(a)gmail.com> wrote in message > > news:ea223638-743d-48f0-b590-b0f0b0413b4b(a)d1g2000hsg.googlegroups.com... > > > > > Running DB2 9.1 on Redhat Linux 4.1. > > > Storage management indicates that the pages stored in a file based SMS > > container occupy 7 gig of the total space allocated which is 50gig. I > > wrote a script to reorg and runstat all the tables in the tablespace > > but the reorgs are not releasing space to the file system. Is there > > anything that would cause this? > > You are probably mistaken. What makes you think storage is not being > released? > > Keep in mind that a table can actually get larger after a reorg, since DB2 > will recreate the percent free on each page (default is 10%). This percent > free may have been used during inserts. Depending on the order of reorg one or more tables may have pages at still at a high page number. That is, the first tables re-orged may not have found free space at a low level. You may have to re-org again. When the tablespace becomes large there is another issue with the free space map as this has to be generated every x number of pages (forget the number). It may have generated this free space map therefore cannot reduce the size below this point. Again from memory, the solution is to add and drop containers.
|
Pages: 1 Prev: Multiple fault monitors from different db2 versions Next: TRANSLATE function |