OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: teeraw on October 03, 2016, 10:22:40 AM

Title: How can I check document location from tables directly?
Post by: teeraw on October 03, 2016, 10:22:40 AM
How can I check document location (Cache/TSM) from tables directly?
I have plan to disconnect TSM from my CMOD system at one customer site.
But we need to known that have any data is on TSM Storage pool but has no on Cache (Migrated data) to ensure all document still can be retrieved when disconnect TSM.

For more information, we was configure Store Management option to "Migrate Data from Cache >> When Data is Loadded", and still has not run expire from cache.
Title: Re: How can I check document location from tables directly?
Post by: Justin Derrick on October 03, 2016, 06:39:04 PM
The location of a document isn't kept in the database tables.  The process is:


You assemble the path to an object as follows:

<first-cache-filesystem-path>/retr/<AGID_Name>/DOC/<DOC_Name>

So the path might be:

/arscache/cache1/retr/MJA/DOC/1234FAAA

If a link exists at that location, it points to the location of the object in one of the defined cache filesystems.  If that file name doesn't exist, CMOD will search TSM for it.

Sadly, there's no quick and easy way to audit this.

-JD.
Title: Re: How can I check document location from tables directly?
Post by: teeraw on October 04, 2016, 05:35:17 AM
Many Thanks, Justin.

There is field "MASK" in ARSSEG table that has describe as "Location", I'm not sure that is related to Document Location? (Cache, TSM)
Title: Re: How can I check document location from tables directly?
Post by: Justin Derrick on October 04, 2016, 07:03:33 PM
I can't say I'm familiar with that field in that table.  It may mean that the table has been migrated to TSM.  It's extraordinarily uncommon as the price of database storage has fallen to the point that there's negligible savings from migrating database tables to TSM.

-JD.
Title: Re: How can I check document location from tables directly?
Post by: Alessandro Perucchi on January 23, 2017, 10:09:13 AM
Hello teeraw,

what Justin said is 100% true.

Don't try to search somewhere else you will loose only time for nothing.
The only thing you will find is new things that has nothing to do with your need.
That's good to find new things which are not related :-D

So the thing you have found is an old thing that tells if the table (segment) is the the database, or is TSM.
Because in the old times, you could migrate whole segments from the database (mainly DB2) into TSM in order to save some disk space on the database.
Yes, 15-20 years ago, disk space was really expensive... and that's the reason that you have the "System Migration" folder/application group, in order to track such actions.
To be honest I have never seen or setup such environment...

So back to your question, you need to do as Justin said, look into the cache "retr" directory for every "select distinc doc_name from SEGMENT_TABLE" if it is in the cache, if it is not, then it should be in TSM.
You have NO other way to do it... But you can keep looking at the database, you will learn (again) lots of nice unrelated things :-D
sorry.

Regards,
Alessandro