![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
So I managed to install IDS 11.7 into a test box that was provided. I installed with the default instance created. The OS is AIX 6.1. Now I have a few questions. 1. Can I rename the instance name? I do not recall it asking for an instance name during the install which is why I ended up with the default name. In Windows, I remember it asking for an instance name. |
|
On a side note, if I installed without creating an instance, how do I get that instance started if a root chunk was not created? |
|
2. How do I move rootdbs? I tried to search but my 'search fu' wasn't able to help me. Do I create the dbspace first, change onconfig and restart the instance? |
#3
| |||
| |||
|
| On Sat, Jan 8, 2011 at 3:19 PM, Jeremiah <yogensha.sql (AT) gmail (DOT) com mailto:yogensha.sql (AT) gmail (DOT) com>> wrote: So I managed to install IDS 11.7 into a test box that was provided. I installed with the default instance created. The OS is AIX 6.1. Now I have a few questions. 1. Can I rename the instance name? I do not recall it asking for an instance name during the install which is why I ended up with the default name. In Windows, I remember it asking for an instance name. Yes. You must change it in a few places: INFORMIXSERVER environment variable $INFORMIXSQLHOSTS file (or $INFORMIXDIR/etc/sqlhosts if the variable $INFORMIXSQLHOSTS is not defined in the environment) DBSERVERNAME entry in the $ONCONFIG file ( $INFORMIXDIR/etc/$ONCONFIG On a side note, if I installed without creating an instance, how do I get that instance started if a root chunk was not created? For a fresh instance creation you need to setup the INFORMIXSERVER, the INFORMIXSQLHOSTS and configure it in the $INFORMIXDIR/etc/$ONCONFIG where among other things you define the rootdbs. After everything properly setup you run "oninit -i". "-i" means initialization and it will open the rootdbs pointed to in the $ONCONFIG file and will initialize it. If everything is well you'll end up with a small and simple instance with just one root dbspace. After that you should create other dbspaces (temporary, one for logical logs, another for physical logs and yet another - or more - for your data.) 2. How do I move rootdbs? I tried to search but my 'search fu' wasn't able to help me. Do I create the dbspace first, change onconfig and restart the instance? The supported way would be a backup and restore with -rename option... Regards. -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... |
#4
| |||
| |||
|
|
Fernando, you only gave Jeremiah the legitimate, supported way to rename the rootdbs. If he is using symbolic links (as he ought to be) this will not help him actually move the physical data. Read on.. On 1/8/2011 10:45 AM, Fernando Nunes wrote: On Sat, Jan 8, 2011 at 3:19 PM, Jeremiah <yogensha.sql (AT) gmail (DOT) com mailto:yogensha.sql (AT) gmail (DOT) com>> wrote: So I managed to install IDS 11.7 into a test box that was provided. I installed with the default instance created. The OS is AIX 6.1. Now I have a few questions. 1. Can I rename the instance name? I do not recall it asking for an instance name during the install which is why I ended up with the default name. In Windows, I remember it asking for an instance name. Yes. You must change it in a few places: INFORMIXSERVER environment variable $INFORMIXSQLHOSTS file (or $INFORMIXDIR/etc/sqlhosts if the variable $INFORMIXSQLHOSTS is not defined in the environment) DBSERVERNAME entry in the $ONCONFIG file ( $INFORMIXDIR/etc/$ONCONFIG On a side note, if I installed without creating an instance, how do I get that instance started if a root chunk was not created? For a fresh instance creation you need to setup the INFORMIXSERVER, the INFORMIXSQLHOSTS and configure it in the $INFORMIXDIR/etc/$ONCONFIG where among other things you define the rootdbs. After everything properly setup you run "oninit -i". "-i" means initialization and it will open the rootdbs pointed to in the $ONCONFIG file and will initialize it. If everything is well you'll end up with a small and simple instance with just one root dbspace. After that you should create other dbspaces (temporary, one for logical logs, another for physical logs and yet another - or more - for your data.) 2. How do I move rootdbs? I tried to search but my 'search fu' wasn't able to help me. Do I create the dbspace first, change onconfig and restart the instance? The supported way would be a backup and restore with -rename option... Regards. -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... Jeremaih, Fernando's answer is, of course, quite correct and you can get better information about this option from the -rename option. In the 11.5 Backup and Restore manual, it's on page 16.5. However, I suspect your issue is not renaming it so much as moving it to another location. Here's a subset of what I did to move a complete server to a new set of volumes on a new disk farm. (System admins get so touchy when you call the device by that name! ;-) 0a. BACK UP THE SERVER. Of course! 0b. Save the current symbolic link to the device file hosting the rootdbs. (You *are* using symbolic kinks, riiiight? ;-) 1. Create the target volume of the exact same size as the original. 2. Shut down the server, of course. 3. dd if=(original volume) if=(target volume) bs=4k (I specified 4K because I recall IDS is configured for 4K page size on AIX. Things may have changed since the last time I diddled AIX.) 4. Drop the current symbolic link to the original device file and recreate it as a symlink to the new device file that just received the copy. 5. Restart the engine. As long as the link name is the same as IDS remembers it, there is no need to use the -rename option. (If you are not using symbolic links, then you have no choice but to use the -rename option. For one chunk, it's OK to specify it on the ontape command line. For more, you will want to set up a file of substitutions. And, once you finish the restore, you might consider setting up symbolic links to every blessed chunk in your server and doing the restore with the -rename option.) -- Jacob, the concise (not!) _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
During installation, if you choose "custom" mode, you have the ability to customize instance information. Hope it helps. Sundar |
![]() |
| Thread Tools | |
| Display Modes | |
| |