1748111 Members
3486 Online
108758 Solutions
New Discussion юеВ

Re: save_config

 
SOLVED
Go to solution
Richard Briggs
Regular Advisor

save_config

Two things...


One... what's the syntax to run save_config on a image.gz file versus on a running system itself

two....what do I do with the output of the command? How do I incorporate it and where

Thanks!

#find / -name coffee | cup < cream
9 REPLIES 9
Sridhar Bhaskarla
Honored Contributor

Re: save_config

save_config is used by recovery commands to store the configuration information of the system. You do not usually run save_config to create a golden image.

Following is precisely the way you create a golden image.

1. On the GOlden system run the command make_sys_image -d /some_where. YOu need to copy make_sys_image from the ignite server onto the golden system. Make sure the golden system is being non-used during this time. I would suggest to install a fresh system with all the patches, default softwares etc.,etc.,before making the golden image.

2. Copy /some_where/golden_system.gz on the golder server to a directory on the ignite server say /my_images

3. Take a copy of the default config file and modify it.

cp /opt/ignite/data/examples/core11.cfg /my_images/golden.cfg

4. Modify golden.cfg and add these modify in sw_source function

nfs_source="IP_ADDR_OF_IGNITESERVER:/my_images

You can modify other pointers like description etc in this function.

Search for sw_sel function and modify description etc.,. Most importantly the archive_path

archive_path="golden_system.gz"

Run the command archive_impact to get the impacts statements.

/opt/ignite/lbin/archive_impact -t -g /my_images/golden_system.gz

Modify the impacts statements in the golden.cfg with the acutal results.

5. Finally edit /var/opg/ignite/INDEX file and add the above configuration for the ignite server to recognize the golden image.

cfg "GOlden image for 11.00 for Some_class {
Description "bla..bla..bla "
"/opt/ignite/data/Rel_B.11.00/config"
"/my_images/golden.cfg"
"/var/opt/ignite/config.local" }


6. Make sure that /my_images directory has been exported and is nfs available.


This will appear in the Ignite Screen and will be available to be pushed.

What I am saying is that you don't need to do anything with the output of save_config command as it is not used in preparing the ignite images.

-Sri







You may be disappointed if you fail, but you are doomed if you don't try
Richard Briggs
Regular Advisor

Re: save_config

Yeah...but my golden image is of a system with several Volume Groups... and I want the image to retain the volume group information.... don't I need the save_config info to preserve VG info in the image???
#find / -name coffee | cup < cream
Richard Briggs
Regular Advisor

Re: save_config

bueller? bueller? bueller?
#find / -name coffee | cup < cream
harry d brown jr
Honored Contributor

Re: save_config

Farris?
Live Free or Die
Richard Briggs
Regular Advisor

Re: save_config

no one knows how to preserve VG info in a golden image using save_config?
#find / -name coffee | cup < cream
Sridhar Bhaskarla
Honored Contributor
Solution

Re: save_config

Richard,

Understood. YOu just need to run save_config -f /tmp/configs on the golden system and append this file to /my_images/golden.cfg on the ignite server to preserve the configuration information.

I do not create anything other than vg00 so the default setup works fine for me.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Richard Briggs
Regular Advisor

Re: save_config

isn't there a way to run save_config on an already existing image.gz file?
#find / -name coffee | cup < cream
Sridhar Bhaskarla
Honored Contributor

Re: save_config

Richard,

We can't run save_config on an already existing .gz file. However, you can create it like a default golden image. Restoration should take care of it though I didn't try before. At the max, you might end up re-importing non-root volume groups.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bill McNAMARA_1
Honored Contributor

Re: save_config

you can run the save_config on a running system and add it to your config.local as defined in the INDEX file.

However, remove the networking part or your ip will stick....

I don't believe you can interrogate the gz image directly (I'm too laszy to look at the man).. but you may want to run the archive_impact if the size has modified to see exactly the space occupied by each fs and hence lv.

Later,
Bill
It works for me (tm)