[Starlingx-discuss] Controller recovery question

Legacy, Allain Allain.Legacy at windriver.com
Fri Oct 12 18:59:37 UTC 2018


/etc/init.d/sm is a packaged file; it is not created dynamically.

Regards,
Allain

Allain Legacy, Software Developer, Wind River
direct 613.270.2279  fax 613.492.7870 skype allain.legacy
350 Terry Fox Drive, Suite 200, Ottawa, Ontario, K2K 2W5

 


> -----Original Message-----
> From: Cabrales, Ada [mailto:ada.cabrales at intel.com]
> Sent: Friday, October 12, 2018 12:50 PM
> To: Perez Carranza, Jose; starlingx-discuss at lists.starlingx.io
> Subject: Re: [Starlingx-discuss] Controller recovery question
> 
> Asking again: does anyone know ...
> 
> If the /etc/init.d/sm file in a controller is lost, is the system able to recover it
> by itself?
> 
> Regards
> A.
> 
> 
> > -----Original Message-----
> > From: Perez Carranza, Jose [mailto:jose.perez.carranza at intel.com]
> > Sent: Tuesday, October 9, 2018 10:01 AM
> > To: starlingx-discuss at lists.starlingx.io
> > Subject: [Starlingx-discuss] Controller recovery question
> >
> > Hi
> >
> > I'm running a test scenario where a critical process is killed and I
> > have to verify that Controller is recovered, with below steps I'm
> > seeing that swat happens correctly but controller with the process
> > killed keeps rebooting and process killed is not regenerated, my
> > question is if the scenario is valid and the sm script should be regenerated.
> >
> >
> ==========================================================
> ====
> > ======
> > Prep:
> >
> > Perform the following steps on the standy controller:
> >
> > a) Locate a critical process that is pmon managed:
> >
> > -> cd /etc/pmon.d
> > -> grep -r "severity = critical"
> >
> > b) E.g. cat /etc/pmon.d/sm.conf
> > c) Locate the name of the daemon pid file or startup script file that
> > is configured in the conf file:
> > e.g. server.pid-file = "/var/run/lighttpd.pid" or script =
> > /etc/init.d/sm
> > c) Rename the startup script file so that the critical process is not
> > respawned after it is killed:
> > e.g. mv /etc/init.d/sm /etc/init.d/sm~
> >
> > Execution:
> > 1) Kill the critical process on the standby controller sudo pkill sm
> >
> >
> > ****    EXPECTED *********
> > 1) Verify that the controller goes for a reset and recovers.
> >
> ==========================================================
> ====
> > ===========
> >
> > Regards,
> > José
> >
> >
> > _______________________________________________
> > Starlingx-discuss mailing list
> > Starlingx-discuss at lists.starlingx.io
> > http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


More information about the Starlingx-discuss mailing list