Hello,
This is how you use onstat -d: I have cut out some fields so make this easier to read. It has two parts, part 1 lists the names of the DBSpaces, how many chunks each space has etc. Part 2 gives you the size and free space.
So taking this ex. dbspace 15 is 51200 in size with most of it free 511947. The chk/dbs indicates the chunk # and dbspace number. You map dbs 15 in part 2 to number 15 in part 1 and see that nchunks is 1 so there is only 1 chk.
dbspace 16 has 2 nchunks and the first one is 512000 in size but free is only 1. The second chk for dbspace 16 is also full at 10 free so you need to add another chk.
Dbspaces (Part1)
address number flags fchunk nchunks name
c049c28 15 0x1 15 1 ads_db3
cc49da8 16 0x1 16 2 ads_db4
Chunks (Part 2)
address chk/dbs offset size free pathname
cc2c028 15 15 0 512000 511947 /dev/inf/db10
cc2c1b0 16 16 512000 512000 1 /dev/inf/db11
cc2c1b0 33 16 0 512000 10 /dev/inf/db15
On a side note: You could have 256000 but if someone needs to load 257000 you don't have enough space. :-)
Keep in mind that size in onstat -d is shown in blocks (I have no idea why) so you must * 2 to get the kbytes.
Regards,
AC
Quote:
Originally posted by NubianWarrior
I'm trying to figure out how do you determine which dbspace needs to have a chunk added to it when you don't know what dbspace needs it.
I have used onstat -d but doesnt seem to help. Maybe I'm just not reading it correctly.
Any help is appreciated....this is frustrating.
Thanks
|