on 10-07-2014 6:04 AM
Dear Friends,
DB2 DMS Tablespaces are 99% full but Autoresize=Yes. What actions are required or should leave as it is ?? Kindly suggest solution.
Sample Scenario :
Tablespace Name | TS Type | KB Total | Percent Used | KB Free | Page Size (KB) | High-Water Mark (KB) |
SID#BTABD | DMS | 6422528 | 99.94 | 3680 | 16 | 6418720 |
No. Containers | Contents | TS State | AUTORESIZE | Pending Free Pages | FS_FREE_SIZE_MB | |
4 | Large objects | Normal | YES | 0 | 0 |
Regards
Dharmendra
Hi Dharmendra,
If autostorage and auto extend enabed ,then the db will always show the tablepsaces as around 99% full as it only extends them as needed.
You should ensure there is plenty of free space at filesystem level (sapdata) for the storage paths to grow as needed.
Br Vaibhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dharmendra;
from the IBM Knowledge Center:
Increase size (INCREASESIZE)
The INCREASESIZE clause of the CREATE TABLESPACE statement defines the amount of space used to increase the table space when there are no free extents within the table space but a request for one or more extents was made. You can specify the value as an explicit size or as a percentage, as shown in the following examples:
CREATE TABLESPACE DMS1 MANAGED BY DATABASE USING (FILE '/db2files/DMS1' 10 M) AUTORESIZE YES INCREASESIZE 5 M CREATE TABLESPACE DMS1 MANAGED BY DATABASE USING (FILE '/db2files/DMS1' 10 M) AUTORESIZE YES INCREASESIZE 50 PERCENT
A percentage value means that the amount by which to increase is calculated every time that the table space needs to grow; that is, growth is based on a percentage of the table space size at that point in time. For example, if the table space is 20 MB in size and the INCREASESIZE value is 50% , the table space grows by 10 MB the first time (to a size of 30 MB) and by 15 MB the next time.
If you do not specify the INCREASESIZE clause when you enable the auto-resize feature, the database manager determines an appropriate value to use, which might change over the life of the table space. As with AUTORESIZE and MAXSIZE, you can change the value of INCREASESIZE using the ALTER TABLESPACE statement.
If you specify a size increase, the actual value that the database manager will use might be slightly different than the value that you provide. This adjustment in the value used is done to keep growth consistent across the containers in the table space.
Best regards
Joachim
Hi Dharmendra,
Answer to your question:
"My question is " How much a tablespace size will be extended during autoresize/autoextend trigger ?" 1GB, 2GB, 5GB, 10GB."
It all depends on your settings during tablespace creation, there is no such default value.
There are two parameeter for each tablespaces MAXSIZE and INCREASESIZE.
You can check settings from DBACOCKPIT --> SPACE -->Tablespaces ( under Storage tab)
The MAXSIZE clause of the CREATE TABLESPACE statement defines the maximum size for the table space , The MAXSIZE NONE clause specifies that there is no maximum limit for the table space.
While INCREASESIZE clause of the CREATE TABLESPACE statement defines the amount of space used to increase the table space.
If you do not specify the INCREASESIZE clause when you enable the auto-resize feature, the database manager determines an appropriate value to use, which might change over the life of the tablespace. As with AUTORESIZE and MAXSIZE,you can change the value of INCREASESIZE using the ALTER TABLESPACE statement.
Refer below link
Hope it helps
Br Vaibhav
Hello Dharmendra,
Please check follows:
1. Check the database snapshot (db2 get snapshot for database on <dbsid>)
- Number of automatic storage paths = (Should be a value larger than 0)
2. Check tablespace snapshot (db2 get snapshot for tablespaces on <dbsid>))
Using automatic storage = (should be YES)
Auto-resize enabled = (should be YES)
3. Whether there are enough free space for the storage paths on the file system level.
Depending on the database version, there is "hard" limit on one tablespace size. But the size shown here seems not to be the issue.
Kind regards
Maria
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear All,
I got confused by reading comment from Mr. Rajendra "that there should be sufficient free size in file system so no issue will come or you can add datafiles to that tablespace.
What should I do exactly? should add data file or not ?
If No and It will be automatically extended, then when will it be triggered and what will be size of next auto-extension ?
Regards
Dharmendra
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.