- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ignite clone golden image /etc/hosts preserve
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 10:05 AM
тАО05-16-2006 10:05 AM
ignite clone golden image /etc/hosts preserve
We're running HPUX 11.11 and C.6.7.79 ignite.
Thank you for the related 28 Nov 05 post by Bob Vance.
WeтАЩve been running make_sys_image at the default run level.
Our goal is to apply an identical image to up to 400 identical HP rp3410s. We have a golden image and can apply it, but have questions.
We would like to preserve our lengthy /etc/hosts file and apply it to the clones with only modification for hostname and IP.
Uncommenting "save_file /etc/nsswitch.conf" in our os_arch_post_l file does transfer the file to the clone. But the same process not preserve the /etc/hosts file. Even though it looks like it should according to our interpretation of the comments in the os_arch_post_l file, we get just the loopback address. WeтАЩve tried save_file and merge_file but no luck. I see hosts in the excluded_files list, but not nsswitch.conf so apparently they are handled differently.
What is the best way to preserve the /etc/hosts file?
Thanks,
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 03:12 PM
тАО05-16-2006 03:12 PM
Re: ignite clone golden image /etc/hosts preserve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 05:44 PM
тАО05-16-2006 05:44 PM
Re: ignite clone golden image /etc/hosts preserve
Golden images excluded the /etc/hosts file when I last used it. Maybe I'm wrong.
There is a configuration file to list what files to include and exclude.
http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fus-support3.external.hp.com%2Fiv%2Fdata%2Fdocuments%2FDE_SW_UX_swrec_EN_01_E%2FIgnite-UX.pdf&ei=ArhqRPu7J7rIwQHu9oAt&sig2=SXYXS4K6Eu0_F25B82TOMg
That link mentions this topic.
I'd also look into a post install script that copies the /etc/hosts file you want after the image is laid down. That would do the trick.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2006 05:17 AM
тАО05-18-2006 05:17 AM
Re: ignite clone golden image /etc/hosts preserve
Please expand on your comment. We've read the man page for make_sys_image several times and see no way to include the /etc/hosts file, except setting run level at 1 and specifying the files to exclude.
Hi Steven,
We're unable to follow the link you provided. Can you double-check it and re-list if necessary?
Thanks to you both for your postings.
Best regards,
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2006 07:52 AM
тАО05-18-2006 07:52 AM
Re: ignite clone golden image /etc/hosts preserve
Since you already have a golden image that you want to tweak, the easiest thing to do is tidy up the /etc/hosts file after ignite with a post_config_script. This is what I do.
- I have a simple script, say "fix_hosts", that I always run after ignite.
- I put this script in /var/opt/ignite/scripts/ on my Ignite server
- I use the syntax
post_config_script += "/var/opt/ignite/scripts/fix_hosts" in my config.local file to always run it
Option 2:
The make_sys_image command is a shell
script. You can make a copy of it, and make it your own via direct edits.
Take a look at the code, the LEVEL2_RESET variable defines the files that get blown away to make the clone/image generic. /etc/hosts is one of those. You could remove that line from a local copy to preserve the /etc/hosts file. However, I am not sure if the machine-specific /etc/hosts entries will be cleaned up at Ignite time. Could still be troublesome to get the right stuff in there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2006 07:25 AM
тАО05-31-2006 07:25 AM
Re: ignite clone golden image /etc/hosts preserve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2006 07:36 AM
тАО05-31-2006 07:36 AM
Re: ignite clone golden image /etc/hosts preserve
Risks: watch out when you install a new version of ignite, it will blow away your edits.