Next, I copied the GDE_dump.txt file to me new VistA 64 bit system.
I renamed my old 32 bit mumps.gld file --> mumps.gld.old
mumps -run ^GDE < ~/GDE_dump.txt |& tee ~/gde_setup_out.txt
This didn't seem to work, as per below.
%GDE-I-GDUSEDEFS, Using defaults for Global Directory
/opt/worldvista/EHR/g/mumps.gld
GDE>
GDE>
GDE>
GDE>
GDE>
%GDE-I-VALTOOSMALL, 200 is less than the minimum of 2048 for a ALLOCATION
%GDE-E-OBJNOTCHG, Not changing region template
GDE>
GDE>
-<snip>-
GDE>
GDE>
GDE>
%GDE-I-VERIFY, Verification OK
%GDE-I-GDCREATE, Creating Global Directory file
/opt/worldvista/EHR/g/mumps.gld
So next I went into GDE and started adding the commands manually line-by-line via copy and paste.
I realized that one line had been truncated:
TEMPLATE -REGION -JOURNAL=(ALLOCATION=200,AUTOSWITCHLIMIT=8388600,BEFORE_IMAGE,
should have been
TEMPLATE -REGION -JOURNAL=(ALLOCATION=200,AUTOSWITCHLIMIT=8388600,BEFORE_IMAGE,BUFFER_SIZE=2307,EXTENSION=100)
So I had to manually fix that. (I don't know why that would have happened, but heads-up to others in the future!)
But even after fixing, I get another error:
GDE> TEMPLATE -REGION -JOURNAL=(ALLOCATION=200,AUTOSWITCHLIMIT=8388600,BEFORE_IMAGE,BUFFER_SIZE=2307,EXTENSION=100)
%GDE-I-VALTOOSMALL, 200 is less than the minimum of 2048 for a ALLOCATION
%GDE-E-OBJNOTCHG, Not changing region template
ALL[OCATION]=blocks
Sets the allocation size of the journal file. YottaDB uses this
information to determine when it should first review the disk space
available for the journal file. The size of the journal file at creation
time is a constant (depending on the YottaDB version) but once the
journal file reaches the size specified by ALLOCATION, every extension
produces a check of free space available on the device used for the
journal file.
YottaDB issues informational messages to the system log whenever the
free space available is not much more than the extension size. YottaDB
provides these extension checks as an operational aid for identifying
before space runs out that a file system holding the journal file is low
on space. When there is no more free space available on the file system
holding a journal file, YottaDB shuts off journaling for the
corresponding database file.
The default ALLOCATION value is 2048 blocks. The minimum value
allowed is 2048. The maximum value is 8,388,607 (4GB-512 bytes, the
maximum journal file size).
So I just changed 200 -> 2048
TEMPLATE -REGION -JOURNAL=(ALLOCATION=2048,AUTOSWITCHLIMIT=8388600,BEFORE_IMAGE,BUFFER_SIZE=2307,EXTENSION=100)
I was able to copy and paste the rest of the lines in without problems.
Then exited:
GDE> exit
%GDE-I-VERIFY, Verification OK
I then ran this command on my new database:
dse d -f
Region DEFAULT
Date/Time 05-MAY-2021 17:47:56 [$H = 65869,64076]
Access method BG Global Buffers 7000
Reserved Bytes 0 Block size (in bytes) 4096
Maximum record size 32767 Starting VBN 129
Maximum key size 510 Total blocks 0x003A19CB
Null subscripts NEVER Free blocks 0x000EA5B7
Standard Null Collation FALSE Free space 0x00006000
Last Record Backup 0x0000000000000001 Extension Count 20000
Last Database Backup 0x0000000004C8B6AA Number of local maps 7437
Last Bytestream Backup 0x0000000000000001 Lock space 0x00000028
In critical section 0x00000000 Timers pending 0
Cache freeze id 0x00000000 Flush timer 00:00:01:00
Freeze match 0x00000000 Flush trigger 6562
Freeze online FALSE Freeze online autorelease FALSE
Current transaction 0x000000030BAF6C6D No. of writes/flush 7
Maximum TN 0xFFFFFFFFDFFFFFFF Certified for Upgrade to V6
Maximum TN Warn 0xFFFFFFFF5FFFFFFF Desired DB Format V6
Master Bitmap Size 64 Blocks to Upgrade 0x00000000
Create in progress FALSE Modified cache blocks 0
Reference count 1 Wait Disk 0
Journal State [inactive] ON Journal Before imaging TRUE
Journal Allocation 2048 Journal Extension 100
Journal Buffer Size 2312 Journal Alignsize 4096
Journal AutoSwitchLimit 8388548 Journal Epoch Interval 300
Journal Yield Limit 8 Journal Sync IO FALSE
Journal File: /opt/worldvista/EHR/g/mumps.mjl
Mutex Hard Spin Count 128 Mutex Sleep Spin Count 128
Mutex Queue Slots 1024 KILLs in progress 0
Replication State OFF Region Seqno 0x0000000000000001
Zqgblmod Seqno 0x0000000000000000 Zqgblmod Trans 0x0000000000000000
Endian Format LITTLE Commit Wait Spin Count 16
Database file encrypted FALSE Inst Freeze on Error FALSE
Spanning Node Absent FALSE Maximum Key Size Assured FALSE
Defer allocation TRUE Spin sleep time mask 0x00000000
Async IO OFF WIP queue cache blocks 0
DB is auto-created FALSE DB shares gvstats TRUE
LOCK shares DB critical section FALSE Read Only OFF
Recover interrupted FALSE
Reorg Sleep Nanoseconds 0
The above in bold were different compared to the old data base. The values in green are new, and were not present in the old database.
I suspect that this is all OK.
After this, I am able to launch yottadb and get into vistA via do ^XUP.
Still more configuration to do as per Sam's guide.
Thank you Sam for the help!
Kevin