Ignite-UX

make_sys_image causing problems, possible to kill process?

 
SOLVED
Go to solution
dictum9
Super Advisor

make_sys_image causing problems, possible to kill process?

Running make_sys_image and it's causing all kinds of problems - first, / bin disappeared.

Now some printers are not working.

Can I kill the make_sys_image process?
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: make_sys_image causing problems, possible to kill process?

While I can't begin to imagine how make_sys_image could cause /bin to disappear, it should be safe, although not necessarily possible, to kill it.

If make_sys_image happens to be waiting on I/O, it won't be killed until the I/O complete (if ever).


Pete

Pete
dictum9
Super Advisor

Re: make_sys_image causing problems, possible to kill process?

that's what happened, /bin is a link and it just wasn't there, had to recreate it.
Dennis Handly
Acclaimed Contributor

Re: make_sys_image causing problems, possible to kill process?

>/bin is a link and it just wasn't there, had to recreate it.

Your applications really shouldn't depend on tlinks being there.

If you think there are more tlinks missing, there is a tool to restore them.
Pete Randall
Outstanding Contributor

Re: make_sys_image causing problems, possible to kill process?

>there is a tool to restore them.

Indeed there is: tlinstall. Man tlinstall for details.


Pete

Pete
dictum9
Super Advisor

Re: make_sys_image causing problems, possible to kill process?

It restored everything. Still not sure why /bin was missing at the time. Broke a script that depended on /bin/sh

dictum9
Super Advisor

Re: make_sys_image causing problems, possible to kill process?

By "it" I mean the make_sys_image script, it put everything back.

Scot Bean
Honored Contributor

Re: make_sys_image causing problems, possible to kill process?

Since the 'make_sys_image' command is a shell script, you can see exactly what is does, and even customize it (at your own risk).

I see:
...
# Remove transition links
...
eval /opt/upgrade/bin/tlremove ${ERROROUT}


in there, so yes, before a 'level 2' image is created, transition links are removed.

Then, they are restored again after image is taken.


The command should warn you that
'the system should be as quiet as possible.', since a 'level 2' image can be interruptive. That means, try not to be running applications during this time.


Maybe 'level 2' images are overkill for your needs? This is used to create a 'golden image'. Regular 'make_net_recovery' images are less interruptive and are not 'level 2'. You may like that approach better.
dictum9
Super Advisor

Re: make_sys_image causing problems, possible to kill process?

Thanks.
It was a production machine with apps and Oracle and stuff. Had issues with some scripts not finding /bin/sh.

Had to renice it as the gzip was rather intense.

Finally finished running.