How to register a Cache instance after restoring all the mount points?
Hi,
I am exploring a simple restore procedure for a Cache instance and would really appreciate any help.
Basically, I have a CentOS machine with a Cache instance and let us say I backed up all the mount points where Cache data is located (install dir, DAT files, journals, WIJ etc). On another identical machine (without Cache installed), I mounted all these file systems exactly using the same mount points so all the data is back with the same paths.
Now, if I do "ccontrol start <INST>" (ccontrol binary is from the mounted install dir), it complains that the instance cannot be found. So I am wondering if there a way to "register" a Cache instance when all the data for that instance is available. Is this even feasible?
Thanks,
Raghu
you can do it with ccontrol tool
Thanks. I will give it a try.
Hi,
"ccontrol create" works well if I do this operation on a machine that already has some other cache instance installed. But when I do similar sequence of operations on a machine that has no previous Cache installation, "ccontrol create" fails with the error message:
"ccontrol(create registry): No such file or directory"
Apparently, it is trying to access the file "/usr/local/etc/cachesys/cache.reg" which is obviously not there. Is there any way to create Cache registry on the fly?
Thanks in advance,
Raghu
From that I see in postinstall script the only you need to do with cache.reg - is to create directory, and give it proper permissions 755 mask, i.e.:
Once I created the directory "/usr/local/etc/cachesys", "ccontrol create" worked. Thanks a lot.