New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can newExtent accept zipped extents? #162
Comments
…Extent script ... need to update help text, implement the devKitHome bits, and add tests
… that call newExtent: createStone, smalltalkCI, and upgradeStone
…` option to be a gzipped extent file, raw extentfile, or a backup file ... at the moment only works when using gems with DataCurator/swordfish login so a bit more work is needed
@marianopeck ... there is a complication when using a backup file --- which is actually a restore from backup issue more than a newExtent issue... Basically I would like to start a restore from backup with an extent0.dbf --- in my particular use case for newExtent, the original extent may not be usable,s o I need to ensure that I start with an extent that can be used:
it's also convenient to replace the extent with extent0.dbf so that you get a minimum sized repository after the restore (effective shrink db) ... The complication comes because it is necessary to login into the initial extent as DataCurator/swordfish, but after the restore is complete you have to use the appropriate userid/password combination .. I have an idea about how to solve this, but I thought I would ping you before doing too much fiddling around without getting more information about your particular use case and your thought about being able to restore from backup starting with a virgin extent0.dbf. |
…e session description (DataCurator/swordfish) that matches $GEMSTONE/bin/extent0.dbf and a commit restore session description (bozo/theClown) that matches the user/password required by restored system
…omClient:restoreSessionDescription:commitRestoreSessionDescription: when doing devKitCommandLine restore...allow for a restore session description (DataCurator/swordfish) that matches $GEMSTONE/bin/extent0.dbf and a commit restore session description (bozo/theClown) that matches the user/password required by restored system
With these last two commits (one for tODE and one for GsDevKit_home) I've implemented what appears to be a satisfactory solution for newExtent using a backup file whose userId/password (from sessionDescript for stone) is different from the extent being used as a starting point (in newExtent case that |
Hi @dale, Yes, starting with a fresh extent0.dbf is indeed a good idea. I do this in a script I call And yes, for MY particular case, you should use DataCurator/swordfish to make the restore but after, use the user I specified in Does that make sense? If true, this is cool because we can use |
@marianopeck if you pick up latest tODE and latest GsDevKit_home you should be able to test out the newExtent code ... |
I did like your suggestion of being able to do newExtent with a backup file ... so let's see if this will work for you ... BTW the GsDevKit_home code is on the issue_162 branch ... |
... need to add tests:) |
Hi @dale. OK, so I should merge issue_162 branch into gs_port right? and tODE in which branch? Thanks! |
I am not sure about your "if you pick up latest tODE". I can imagine installing latest tODE on my original stone, but I am not sure if that's what you mean. Maybe you mean just git-update the local filetree of tODE inside GsDevKit_home ? Thanks in advance |
Sorry and another question... I was using this script:
Soo... as far as I can see...you added the support into |
@marianopeck sorry I had to head and take care of grandkids ... "picking up latest tODE" means that you do a cd $GS_HOME
git fetch --all
git checkout issue_162 Then you need to rebuild the Finally, When I create the tests I'll make sure that I have coverage for all of the scripts. Tomorrow will be a busy day for me, so I probably won't be available much nor will I get much more done:) |
Hi @dalehenrich Thanks for this code. It's already useful. I was able to do a
That brings the error: So, this way, I still need the extent in both places (in the original stone) and when doing Now, the error is thrown explicitly so I guess you have a reason for doing that. But on the other hand, the help comment of
If backups are not allowed, then I could try with a compressed extent. Thoughts? |
Hi @dalehenrich Of course, the reason of above is because
So..I am wondering...maybe the correct solution is to allow the |
OK. I tried removing the
ufffff.....so the newExtent should know which "product" to use as it might not be the same as the target one...uhhh.. Thoughts? |
@marianopeck ... haha, I was thinking about the upgradeStone situation after I sent email ... I did change the -s help text to include backups as an option for upgradeStone, but after thinking about it I don't think it is possible to use the backup option for an upgrade and only extents can be used. We really don't recommend or even support taking a backup from one version of GemStone and restoring it into another version of GemStone, so I think I need to change the help text for upgradeStone. |
Hi @dalehenrich Ok, got it. However, note that the error reported of Thanks! |
copydbf knows the difference between backups and extents. With that said, I've using copydbf for copying extents for upgrade for quite a while now and haven't seen a problem, although it does look like the installation instructions document using 'cp' ... if it turns into a problem, then we'll have to use cp:) |
OK..and let me ask...in order for copydbf to know how to uncompress a compressed extent...which "format" / "tool" should I use? |
Yes, I think the help text mentions |
Hi @dalehenrich OK, you are right,
|
See this thread for discussion.
The text was updated successfully, but these errors were encountered: