Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore.

Slides:



Advertisements
Similar presentations
T-Mon SERVER CONNECTOR
Advertisements

Epics Configuration Management Steve Hunt v1.0. Goals Maximize control system availability Minimize development cycle time Reduce risk.
Troubleshooting Startup Problems
SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
Windows XP System Restore July 22 nd, 2006 CAEUG Meeting.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Install. Will your hardware work? Most things are compatible - a few are known not to be.
The Smart in SmartSystems
Operated by Los Alamos National Security, LLC for the U.S. Department of Energy's NNSA UNCLASSIFIED Managing IOCs with Local Filesystems Scott A. Baily.
Dirk Zimoch, EPICS Collaboration Meeting, Vancouver 2009 Real-Time Data Transfer using the Timing System (Original slides and driver code by Babak Kalantari)
16 - Nov. 2000EPICS Workshop Oak Ridge1 Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
Pete Owens MICE Controls & Monitoring Workshop 25th September 2006 MICE Control and Monitoring: General Architecture Subsystem Integration User Interface.
Chapter 12 - Backup and Disaster Recovery1 Ch. 12 – Backups and Disaster Recovery MIS 431 – Created Spring 2006.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
SPEAR PV RDB Database EPICS Collaboration Meeting April 27, SPEAR PV RDB Database Clemens Wermelskirchen.
Week:#14 Windows Recovery
V4 – Executive Summary 1.Provide online add/delete of I/O to support continuous operation. 2.Provide redundant control of remote I/O to support improved.
Chapter 11: Maintaining and Optimizing Windows Vista
Dirk Zimoch, EPICS Meeting April 2007, Hamburg Siemens S7 PLC Communication.
The Soft-IOC Based Alarm Handler – an Operations View Pam Gurd October 31, 2007.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
Ch 11 Managing System Reliability and Availability 1.
Module 3: Resolving Boot Process Issues. Overview Understanding the Boot Process Using Advanced Boot Options Using the Boot.ini file to Change Startup.
®® Microsoft Windows 7 for Power Users Tutorial 8 Troubleshooting Windows 7.
1 1999/Ph 514: State Notation Language EPICS State Notation Language (SNL) Ned D. Arnold APS.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
SC84, Epics C# Library Written by Christoph Seiler Presented by Dirk Zimoch.
Dirk Zimoch, Pikett Training Channel Access Gateway.
Running EPICS on NI CompactRIO Initial Experience Eric Björklund (LA-UR )
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch.
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
Module 15 Managing Windows Server® 2008 Backup and Restore.
DAQ Control GSI, Aug 2005Hans G. Essel CBM - DAQ Control1 MBS monitor (FOPI) (J.Adamczewski, M.Stockmeier)
EPICS Workshop 2003Dirk Zimoch 1 StreamDevice 2.0 A Multi-Purpose Character Driver for EPICS 3.14.
New Features in DeltaV SimulatePro
Core 3: Communication Systems. Network software includes the Network Operating Software (NOS) and also network based applications such as those running.
Reliability/ Secure IOC / Outlook M. Clausen / DESY 1 CA-Put Logging BurtSave Warm Reboot Matthias Clausen DESY/ MKS.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
Block Diagram MTB Board #1 PC LabVIEW Program #1 Config File #1 MTB Board #2 LabVIEW Program #2 Config File #2 Database SUB record for each channel. Other.
1 1999/Ph 514: Flow of Control EPICS Flow of Control Marty Kraimer APS.
18. June 2003EPICS WS Channel Management Andreas Lüdeke Swiss Light Source / PSI 20 May 2003 EPICS Collaboration Meeting.
Ralph Lange: CA Gateway Update CA Gateway Update Ralph Lange – EPICS Collaboration Meeting March SSRF.
HINS Sharon Lackey July 10, What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they.
Stanford Linear Accelerator Center Michael Zelazny EPICS Collaboration Meeting Dec 3&4, Channel Watcher Bumpless Reboot Replacement Related Web Page:
Controls Zheqiao Geng Oct. 12, Autosave Additions/Upgrades and Experiences at SLAC Zheqiao Geng Controls Department SLAC National Accelerator Laboratory.
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
1 EPICS Flow of Control: EPICS Workshop at IHEP, Beijing, August 2001 EPICS Flow of Control Marty Kraimer APS.
Matthias Clausen, DESY EPICS Training – Client Tools/ CSS EPICS collaboration meeting EPICS Training Client Tools EPICS collaboration meeting 2008.
© ExplorNet’s Centers for Quality Teaching and Learning 1 Explain the importance of routine backup and maintenance. Objective Course Weight 4%
​ TdBench 7.2 – tdb.sh Utility Script. 2 Created for TdBench 7.x release to consolidate tools Open architecture – looks for scripts in the./tools directory.
Advance startup options Shift Restart. Restart options.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
System Components Operating System Services System Calls.
Windows Vista Configuration MCTS : Maintenance and Optimization.
Lesson 22: Configuring System Recovery
Router Startup and Setup
Unit OS11: Performance Evaluation
Files Used in the Boot Process
Fix Error Code 43 in Windows 7 Call Number
Bethesda Cybersecurity Club
Router Startup and Setup
Channel Access Concepts
bla bla bla Dirk Zimoch :: Controls Section :: Paul Scherrer Institut
Commissioning the European XFEL cryogenic system and best practice
Current EPICS Developments at PSI
Presentation transcript:

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore What is Auto Save and Restore (autoSR)? ■ It allows to save settings over a reboot. ► Settings that cannot be read back from hardware ► Settings that are not connected to any hardware ■ Records (fields) are saved to files whenever they change ■ … and restored after reboot before IOC starts. It is not a replacement for regular machine snapshots! When using autoSR, reboot does no longer heal everything!

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore What to save? ai Hardware with readback ao OUT INP calcout A+B ao INPA INPB OUT ai Hardware without readback ao OUT INP ■ Set values that cannot be restored from hardware ■ Only values that normally change. Don't save fixed parameters. Use field (PINI, "YES") to initialize Driver should initialize record in init_record() field (PINI, "YES") Better not save the CALC field autoSR

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore How it works ■ Auto Save ► One or more "save sets" (lists of records) are watched. ● A channel access monitor is set up for each record. ► On each change, a save set writes a "save file" to disc. ● There is a dead time to prevent too frequent writes. ■ Restore ► During "iocInit" one or more save files are loaded. ► The file can be loaded before (pass 0) or after (pass 1) init_record(). ● Some fields and drivers have different requirement for this. ► The records start with their latest known value.

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore Status and debug records ■ AutoSR writes status of save sets in records. ■ Allows to show status on CA clients (medm, alarm handler). ■ Records are prefixed (e.g. with IOC name) ■ medm screen provided

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore Preparations ■ Create a "request file" for each save set ► Plain list of records or fields to be saved ► Comments with # ► Macros and includes possible ● Useful for similar sets of records on different devices or IOCs. ■ Install request files (e.g. to IOC boot directory) ■ Prepare a writable directory for "save files" ► One directory for each IOC ► Do not write into the IOC boot directory ► NFS mounted or on local disc (not on flash) Example: /rf1.req # rf plant 1 RF1:VOLTAGE:SET RF1:PHASE:SET

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore Minimal configuration in startup script set_requestfile_path "directory" set_savefile_path "writable_directory" save_restoreSet_status_prefix "iocname:" dbLoadRecords "save_restoreStatus.db","P=iocname:" autoSRhookInit... set_pass0_restoreFile "saveset0.sav" set_pass1_restoreFile "saveset1.sav" iocInit create_monitor_set "saveset0.req", dead_seconds create_monitor_set "saveset1.req", dead_seconds "rf1.req", 30 "/iocBoot/RF1-ioc/" "/autoSR/RF1-ioc/" "RF1-ioc:" "P=RF1-ioc:" "rf1.sav" Example values

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore Which values to restore in which pass? ■ Pass0: before device support and driver initialize record ■ Pass1: before record processes the first time ■ Driver needs value during initialization → use pass0 ■ Driver overwrites value during initialization → use pass1 ■ Link fields (e.g. INPA) → must use pass0 ■ Arrays → must use pass1 ■ Malloc'ed fields (e.g. genSub.A) → must use pass1 ■ Motor positions → use pass0

Dirk Zimoch, KSTAR Meeting 2009 Auto Save and Restore Advanced features (not discussed here) ■ Sequential and dated backups ■ Macro substitution ■ Debug messages ■ Manual save or restore ■ Manipulating save files ■ Automatic NFS mount / remount (vxWorks only)  See the complete manual at