On Monday, January 6, 2025 at 3:15:48 PM UTC-5 K.S. Bhaskar wrote:
Kevin –
Since you didn't ask questions, I will! Of course, Bhaskar would not be Bhaskar without a couple of gratuitous comments thrown in…
- Are you using --overwrite-existing because you have your own custom prior builds? To keep myself from getting confused, I use directories lik …/r200 and …/r202 for production releases, and directories such as …/r201 and …/r203 for builds other than production releases.
Yes, it had my prior custom build in it. I like your directory naming idea.
- lsof would seem to be a safer way to ensure a database has no processes accessing it. While you may have VistA installed as a service, does that really ensure that no YottaDB processes have a database open?
I saw those instructions in the upgrade guides, and I did it at one point. But I was thrashing around and turning it on and off while I was trying to confirm that I had a bug. So I should have done better and will be more careful next time.
- Before copying your prior version journal files to another directory, doing a MUPIP SET JOURNAL with the new YottaDB build to switch journal files would be preferable. Otherwise, the database file header may have a pointer to a journal file that doesn't exist.
I didn't know this. Thank you.
- Since plugins with C code are compiled with header files that are specific to a YottaDB release, using plugins compiled with one release of YottaDB with another release of YottaDB is not safe. Similarly, since object code can change, you should not use M object code compiled with one release of YottaDB in another. We protect against this when going from one production release to another, e.g., r2.00 to r2.02, but not against builds of code in flight between releases.
This is my plugin dirctory.
:/opt/worldvista/EHR/m/plugin/o$ ls -Al
total 876
dr-xr-xr-x 2 root root 4096 Jan 5 22:37 utf8
-r--r--r-- 1 root root 462120 Jan 5 18:49 _ydbgui.so
-r--r--r-- 1 root root 285960 Jan 5 18:49 _ydbmwebserver.so
-r--r--r-- 1 root root 142376 Jan 5 18:49 _ydbposix.so
does the ydbinstall program provides these plugins? I think it was when I was using my custom build that I was missing the plugins. I think when I did a clean install I told it to install all the plugings and wrappers. So I think these one should be good. (I hope?) Not sure how to tell.
- Yes, the global directory format can change at any time. YottaDB will upgrade global directories, but not downgrade them. So we recommend backing up global directories before switching a database to a new release, or at least doing a SHOW COMMAND with the old release, and saving the output.
I was able to read the manual and get a show command listing. But with scanning I could not figure out how to use this to remake a global directory in the older format. If gde created a backup of the file whenever it makes a change, that might be nice.
Thanks for your help.