Welcome and eLab overview
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Facilities and policies IBM i
• Class hours – M - Th
9:00 – 4:15
–F
9:00 – 3:30 or 4:00
• Breaks • Finish time on the last day • Emergency exits • Phones • Messages • Restrooms • Smoking policy • Eating establishments • Policy for cell phones and pagers • Policy for Internet access
© Copyright IBM Corporation 2011
Introductions IBM i
• Name/company/location • Background/experience with: – Use of the native save/restore commands – Tape drives, tape library, virtual tape – BRMS – System i Navigator – Systems Director Navigator for i
• Your objectives/expectations – What do you expect to get out of this course? – Interest in a specific area of BRMS?
© Copyright IBM Corporation 2011
Course objectives IBM i
After completing this course, you should be able to: • Describe the major features and functions BRMS • List the steps to install BRMS on a single system or in a BRMS network environment • Implement a previously defined backup and recovery strategy using BRMS • Implement a previously defined archival and retrieval plan, including dynamic retrieval using BRMS • Explain how to utilize a tape drive, tape library system, virtual tape, and optical drive with BRMS • Implement and use BRMS using the green screen, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Introducing eLab IBM i
Introduction to eLab
© Copyright IBM Corporation 2011
IBM firewall overview (specific details next page) IBM i
© Copyright IBM Corporation 2011
Step 1: Access the Citrix system IBM i
Enter: https://elabgateway.moppssc.com
Notice the https! © Copyright IBM Corporation 2011
Step 2: Sign on to the Citrix client session IBM i
Log in, then click the remote desktop icon that is displayed. User name and password will be assigned by your instructor. © Copyright IBM Corporation 2011
Step 3: Sign on to the Windows client IBM i
User ID: Password:
student passw0rd (notice the zero instead of the letter o) © Copyright IBM Corporation 2011
Accessing the lab systems (details on next page) IBM i
• Use the Citrix desktop and directions from your instructor to access: – 5250 emulation – System i Navigator – Web browser => Systems Director Navigator for i
© Copyright IBM Corporation 2011
Step 4: Make full screen IBM i
Make the Citrix/VMWare/Windows Client full screen
© Copyright IBM Corporation 2011
Hint: Use the top Start bar IBM i
© Copyright IBM Corporation 2011
Lab Guide Appendix A: Write down required information IBM i
• Open your Student Exercises Guide to Appendix A. • Write down the following information that you will need to know and use for the rest of the week. • First thing every morning, start the e-lab environment: – e-lab user ID ____________ (xx=your team # assigned by inst) – e-lab pw ____________ (assigned by instructor)
• To sign on to the System i, make note of your: – user ID – pw
AS28xx as28pwd (is set to expire; student changes at first sign-on)
• At the end of the day, sign off and disconnect your e-lab connection. – The e-lab environment is only available during the week of class. – Optionally, you can sign on to the lab system and perform the labs in the evening (from your hotel room or from home). © Copyright IBM Corporation 2011
Words of wisdom IBM i
BRMS BRMS
BRMS
Enjoy the class! © Copyright IBM Corporation 2011
Overview of BRMS
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List the features and functions provided by BRMS • List the different software that makes up the BRMS product • Discuss the benefits of using the WRKMEDBRM command • Discuss the benefits of using the WRKMEDIBRM command • Discuss the benefits of using backup control groups to do your backups • Describe the functions supported for BRMS by System i Navigator and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Overview of BRMS features and functions
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Backup Recovery and Media Services (1 of 3) IBM i
• IBM i’s strategic backup management product (5770-BR1) • Manages your media • Automates your backups • Simplifies your recoveries • Provides detailed reporting – Detailed reports on what was saved and not saved – Detailed instructions on recovery process
• Provides tape library support • Provides virtual tape support
© Copyright IBM Corporation 2011
Backup Recovery and Media Services (2 of 3) IBM i
Option #1: Network
*BASE
Media management
Backup planning Critical application
Non-critical application
Lib1 Lib2
Lib3 Lib4
• What objects should be backed up? • What media? Tape, save file, or TSM? • Full, incremental, or cumulative backups? • Save-while-active, parallel saves • Spoolfile and object level saves • Duplicate backup tapes • Did last night's backup run OK? • Virtual tape support
• • • • •
What is on tape XYZ? What tapes should be in location DEF? What tapes are old or have a lot of errors? What tapes should move off-site today? What tape has the latest copy of object ABC?
Network BRMS BRMS Media Media Database Database iSeries A A BRMS BRMS Media Database
Recovery Recovery Recovery Volume Summary RecoveryReport Volume Summary Report
Vol123 OffsiteVol123 3/01/99 Offsite 3/01/99 Vol456 Comproom Vol4563/01/99 Comproom 3/01/99 Vol789 MLD01 Vol7893/01/99 MLD01
3/01/99
Recovery Analysis Recovery Report Analysis Report
iSeries BB
BRMS Media Database iSeries CC
Libs Libs Completed: Completed: 6 6 Libs Libs to to go:go: 114 114
StepStep 5 :5Recover your BRMS : Recover database your BRMS database by mounting VOL123 by and mounting typingVOL123 and typing RSTLIB QUSRBRM.
%% Complete: Complete: 3%3%
: Recover profiles your by user profiles by Step Step 6 : 6Recover your user mounting VOL456mounting and typing VOL456 and typing STRRCYBRM *SYSTEM STRRCYBRM *RESTORE. *SYSTEM *RESTORE.
Paylib2 Paylib2VolVol 456 456
Paylib1 Paylib1Vol123 Vol123 Paylib3 Paylib3VolVol 789 789
: Recover OS/400 your special OS/400 StepStep 7 :7Recover your special libraries by mountinglibraries VOL789by and mounting VOL789 and typing STR typing ...STR ...
Option #2: HSM • List Listof ofTapes tapes required • List Listof ofSteps steps to to Recover recover • Online Lineprogress Progressreport Report • Location-specific Location-specificRecovery recovery Steps steps
Hierarchical Storage storage Management management
Tape Tapelibrary Library support Support
BRMS BRMSGUI GUI
IBM
3494
LTO
3590/2
3570/3575
© Copyright IBM Corporation 2011
Enhanced Capacity Cartridge System Tape
• Migrate Migrate libraries, libraries, root root folders, folders, and and spool spoolfiles files among among disk disk ASPs ASPs based based onon age, age, size, size, and and last last use use criteria criteria • Archive objects to tape based on age, Archive objects to tape based on age, ƒ size, ofofuse, ASP size,frequency frequency use,and and ASP storage criteria Dynamically recall database files, recall database files, ƒ • Dynamically DLO's and streamfiles whenneeded needed DLOs, and stream files when ƒ
• Software data encryption • Media library management • User defined system name • Tape library
Backup Recovery and Media Services (3 of 3) IBM i
• Required software: – Media and storage extensions: • Optional feature of i5/OS that provides tape interface routines • One-time charge
– BRMS: • Tier priced by CPU size; three separate pieces: – *Base - product – Option 1: Networking – Option 2: Advanced functions (archive/retrieval/HSM)
• Licensed program product: – Supports: • All i5/OS tape devices and tape media • Virtual tape
– Uses standard menus, commands, and help text – Uses native i5/OS save commands in the background •
Tapes are readable by any system.
• Runs in a single or networked (multisystem) environment © Copyright IBM Corporation 2011
Backup Recovery and Media Services: Restrictions IBM i
• Restrictions: – Tapes must have unique volume serials. – No support for: • Diskette • Unlabeled or nonstandard labeled tapes
– It does not support SAVSTG, CPYTOTAP, or CPYFRMTAP natively. – It cannot run on the same system as other tape management software.
© Copyright IBM Corporation 2011
Supported tape systems IBM i
© Copyright IBM Corporation 2011
FlashCopy support overview IBM i
FlashCopy
B A
Business as usual
Backup with minimum downtime
© Copyright IBM Corporation 2011
C K U P
Media management: WRKMEDBRM (1 of 2) IBM i
• The WRKMEDBRM command: – Tracks contents of each tape – Protects tapes against overwriting – Manages tape moves to and from off-site locations – Logs tape usage and error rates – Duplicates tapes and manages pairs – Manages tape sets – Manages parallel sets
• Use option 13 to invoke the WRKMEDIBRM command.
© Copyright IBM Corporation 2011
Media management: WRKMEDBRM (2 of 2) IBM i
© Copyright IBM Corporation 2011
Media information: WRKMEDIBRM (1 of 2) IBM i
• The WRKMEDIBRM command: – Tracks data that has been saved – Is sortable – Allows quick and easy restores – Can view down to object or member detail if proper level of detail has been saved
• Type of save is shown. • F11 shows if any objects were missed during the save. – Displays any errors that might have been logged
• Use option 6 to invoke the WRKMEDBRM command.
© Copyright IBM Corporation 2011
Media information: WRKMEDIBRM (2 of 2) IBM i
© Copyright IBM Corporation 2011
Backup control groups (1 of 2) IBM i
• Describes the backup: – What to back up: libraries, objects, folders, spool files, objects in directories, special values – Full or cumulative – Save-while-active
• Controls backups: – – – –
Subsystems to end, job queues to hold, and users to sign off Which media to select Use save files Use virtual tape
• Tracks success of backup: – BRMS log shows all backup activity. – Backup activity report shows all items saved and missed. – Save strategy exceptions shows libs never backed up.
• Facilitates parallel saves © Copyright IBM Corporation 2011
Backup control groups (2 of 2) IBM i
© Copyright IBM Corporation 2011
Recovery IBM i
• Recovering a few objects: – User selects objects from list of saved items. – BRMS provides mount messages as required. – There is an online progress report.
• Recovering a large number of objects or whole system: – Volume summary report lists volumes needed. – Recovery analysis report lists steps required. – BRMS manages the recovery.
© Copyright IBM Corporation 2011
Recovery with WRKMEDIBRM IBM i
WRKMEDIBRM with 7-Restore When you select option 7, the subsequent screens should guide you through the rest of the restore. © Copyright IBM Corporation 2011
Archive (1 of 2) IBM i
• Archive: – Locate and list objects that have not been used recently. – Move these objects to tape and erase from disk. – This frees up disk space.
• Retrieval: – Restore objects back to disk when needed. – For *FILE, integrated file system (IFS), and document library objects (DLO), BRMS optionally should auto-recall when touched by a user, provided that they are archived with STG(*FREE).
© Copyright IBM Corporation 2011
Archive (2 of 2) IBM i
© Copyright IBM Corporation 2011
TSM application client to BRMS IBM i
© Copyright IBM Corporation 2011
Advanced functions: HSM (1 of 2) IBM i
• Hierarchical storage management (HSM) • Allows migration of data among expensive and fast disk to less expensive and slower disk: – Through user ASPs – Automatically using control groups – Manually using STRMGRBRM command
• Eventually to tape through archive
© Copyright IBM Corporation 2011
Advanced functions: HSM (2 of 2) IBM i
Change Migration Control Group Attributes
I520DVL3
Group . . . . . . . . . . . . . *MGRGRP Type choices, press Enter. Migration Item Type Attribute Test Value Objects *DEMOTE *LIB *AGE *GE 1 *ALL
• Only libraries, root folders, and spool files are eligible for migration. • Specify criteria for objects to migrate. • *DEMOTE or *PROMOTE through the hierarchy chain of user ASPs one storage level at a time. © Copyright IBM Corporation 2011
Overview of System i Navigator and BRMS
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
System i Navigator (1 of 2) IBM i
• Graphical user interface (GUI) for system management • Fully integrated into the Windows environment • Welcome wizard: – Opens at System i Navigator startup
© Copyright IBM Corporation 2011
System i Navigator (2 of 2) IBM i
• If BRMS is installed on system, the BRMS plug-in is available. • If BRMS is not installed on system, the BRMS plug-in is not available.
Under My Connections System container Backup, Recovery and Media Services
© Copyright IBM Corporation 2011
BRMS GUI help IBM i
TASKPAD
• How to... and more information about all available functions • Additional help available on many screens
© Copyright IBM Corporation 2011
BRMS functions in GUI (1 of 2) IBM i
• Create and run a backup or archive control group. – In V5R4, it was named backup policy.
• Restore multiple or individual items. • Schedule items to be backed up and restored. • Print a system recovery report. • View the backup history. – Media information in the green screen – Ability to restore from the history screen
• Run BRMS maintenance activities. • Add media. • Display and manage tape media. • View the backup and recovery log. © Copyright IBM Corporation 2011
BRMS functions in GUI (2 of 2) IBM i
• Media movement: – – – –
Backup control groups Verify move Run all move policies Manage locations
• Save-while-active (SWA) • Tape library support • Independent ASPs • Parallel backups • Backups to save files • BRMS Application Client for Tivoli Storage Manager • Lotus server point-in-time recovery • List management: – Create lists – Update lists © Copyright IBM Corporation 2011
BRMS functions by release IBM i
© Copyright IBM Corporation 2011
Functions available IBM i
The taskpad allows you to access BRMS functions. © Copyright IBM Corporation 2011
Management Central > Task Activity > BRMS IBM i
© Copyright IBM Corporation 2011
BRMS and GUI FAQs IBM i
© Copyright IBM Corporation 2011
Overview of Systems Director Navigator for i and BRMS
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
What is it? IBM i
• IBM Systems Director Navigator for i is the strategic management console for IBM i. • It is a new Web-based console included with IBM i beginning in V6R1. • It uses the same Integrated Solutions Console (ISC) framework that the Web-based IBM Systems Director will use. • It is considered a Level 1 console; it is used to manage just this server. • It contains all the currently Web-enabled functions of System i Navigator (over 300 tasks). • All Web-enabled tasks are still URL-addressable and can be accessed individually as servlets or as portlets within the new Web console. © Copyright IBM Corporation 2011
How do you get it? IBM i
• IBM Systems Director Navigator for i – Included as part of base operating system (5770-SS1 opt 3) – No extra charge
• The following products must also be installed (these should already be on your system): – IBM HTTP Server for i5/OS
5770-DG1
– Qshell
5770-SS1 option 30
– Portable App Solutions Environment (PASE)
5770-SS1 option 33
– IBM Developer Kit for Java
5770-JV1
– J2SE 5.0 32 bit
5770-JV1 option 8
– IBM Toolbox for Java
5770-JC1
– Host servers
5770-SS1 option 12 © Copyright IBM Corporation 2011
What is included? IBM i
• All Web-enabled functions of System i Navigator, organized into 13 different task categories (over 300 tasks total) – Jobs, messages, system values, database, users, file systems, security, performance, and so on
• In addition, functions from the following for-purchase LPPs will be available in the console when the licensed program products (LPPs) are installed: – iHASM (System i High Availability Solutions Manager)
5770-HAS
– BRMS (Backup Recovery and Media Services)
5770-BR1
– IBM Performance Tools for i5/OS (DiskWatcher)
5770-PT1
– IBM Performance Tools for i5/OS (JobWatcher)
5770-PT1 option 3
© Copyright IBM Corporation 2011
What functions are not included? IBM i
• Management Central functions: – Strategy is to use IBM Systems Director products for multisystem tasks on the Web.
• Database functions that involve graphics and charts: – SQL scripts – Visual Explain – Database Navigator – SQL Assist
• Disk management: – Graphical view – Disk unit physical location – Disk unit/ASP capacity chart © Copyright IBM Corporation 2011
Ensure that HTTP admin servers are running IBM i
• These servers will be an auto start server beginning in V6R1: starts with the TCP/IP servers.
© Copyright IBM Corporation 2011
Work Management > Subsystems > Active Subsystems IBM i
In V7R1, all Web-based consoles run on the integrated Web application admin servers.
HTTP Web Admin GUI, LDAP, Web Navigator, IPP
IBM Systems Director Navigator for i, Secure Perspective, Cluster Services, HASM IBM Access for Web © Copyright IBM Corporation 2011
Enter the following URL into a browser IBM i
http://system:2001 system could be either the IP address or IP name.
Supports the following browsers: • Microsoft Internet Explorer 6.0 or later • Mozilla Firefox 1.0 or later
© Copyright IBM Corporation 2011
Accept the certificate warnings IBM i
• Consoles run on SSL. Firefox 2 Internet Explorer 6
Internet Explorer 7
© Copyright IBM Corporation 2011
User verification IBM i
• URL will be rerouted to a secure path: Port 2005. • Enter your IBM i user ID and password for this system.
© Copyright IBM Corporation 2011
Web console interface displays IBM i
• Expand IBM i Management to view the task categories. • Click the desired task category to view the Welcome page for that task. • Click a task on the Welcome page or click Show All Tasks to view all Web-enabled tasks for that category. • Each selected task appears in a separate portlet and a tab appears at the top of the workspace. © Copyright IBM Corporation 2011
New controls: Overview (1 of 4) IBM i
Left navigation groups all the tasks in logical compartments.
New tab for each view!
Help link!
Most common functions included on each Welcome menu
© Copyright IBM Corporation 2011
New controls: Overview (2 of 4) IBM i
• The All Tasks view shows all major options; click on arrow tab to the right to view every task that is supported for the category. This example is for the Jobs category. – Selecting an option will open a new tab. – Select the task from the second menu; click to execute. © Copyright IBM Corporation 2011
New controls: Overview (3 of 4) IBM i
Fast path icons to Table tasks!
Select from the available actions. • Object tasks
• Filters
• List Actions
• Sorts
• Table tasks
• Entry selection
Select an entry. • Click the arrow. • View tasks for object.
© Copyright IBM Corporation 2011
New controls: Overview (4 of 4) IBM i
Operations are broken down to tasks with logical groupings.
Wizard-like interfaces help organize values.
© Copyright IBM Corporation 2011
New controls overview: Terms IBM i
Banner: Common image across all consoles
Page Bar: Navigate between pages
Work area © Copyright IBM Corporation 2011
New controls overview: Portlet controls IBM i
• Allows you to edit settings for the portlet • Return to the previous screen • Displayed if help is available • Minimize the module view; only the title bar is visible • Maximize view, full portlet view is visible • Close a portlet • Console module can be refreshed without reloading the console page
© Copyright IBM Corporation 2011
What is included: Base functions (1 of 2) IBM i
System
Commonly used system tasks include viewing system status, messages, disk status, and passwords.
Basic Operations
Basic tasks include easily managing lists of messages, printer output, and printers.
Work Management
Control the work performed on the system including support for interactive and batch work. Distribute resources to ensure applications run well.
Configuration and Service
These tasks provide functions to help you manage both hardware and software on your system, including system values, time management, and disk units.
Network
These tasks help you control TCP/IP configuration, remote access services, networking servers, and IP policies.
Integrated Server Administration
These tasks let you manage servers hosted by i5/OS and enroll and manage users and groups.
Security
These functions allow you to plan and implement security on your system, authorization lists, object permissions, cryptographic functions. © Copyright IBM Corporation 2011
What is included: Base functions (2 of 2) IBM i
Users and Groups
Display and manage a complete list of the users and groups, create, delete, modify
Databases
Graphical interface to perform many common admin database operations, access and modify objects, work with performance monitors, as well as access the health center
Journal Management
Work with journals and journal receivers
Performance
Collect performance data and view the collection to investigate potential performance issues
File Systems
Links to the most commonly used file systems tasks, integrated file system, i5/OS NetServer, network file system
Internet Configurations
i5/OS Internet configuration tasks, HTTP Server, digital certificates, IBM IPP, Web-based help server, Internet Setup wizard
© Copyright IBM Corporation 2011
What is included: Additional LPPs IBM i
Backup and Recovery and Media Services
Manage your most critical and complex backups, including online backups of Lotus servers, simply and easily. You can also recover your system fully in the event of a disaster or hardware failure.
Cluster Resource Services
This is a task-based approach for setting up and managing your high availability solution. Create a customized high-availability solution by separately creating each element of the high availability solution. Create and manage clusters, cluster resource groups, device domains, and cluster administrative domains and perform switchovers.
High Availability Solutions Manager
This is an easy-to-use, guided approach to setting up high availability. This interface ensures and validates prerequisites, configures all necessary technologies for the selected solution, and tests the set up. This management solution interface is best for smaller businesses who want simpler solutions that require fewer resources.
Performance
This includes browser-based performance tasks, manage performance data collections, graphical user interface for collecting performance data, graphically view and analyze performance data using Collection Services, Job Watcher, Disk Watcher © Copyright IBM Corporation 2011
Welcome pages: System IBM i
© Copyright IBM Corporation 2011
Welcome page for BRMS IBM i
© Copyright IBM Corporation 2011
BRMS page: Available by advanced tab IBM i
© Copyright IBM Corporation 2011
How does it compare to System i Navigator? (1 of 2) IBM i
• IBM Systems Director Navigator for i requires nothing to be installed on your PC. – It is installed and available to use out-of-the-box in V7R1.
• In V7R1, IBM Systems Director Navigator for i is not a complete replacement for System i Navigator. – There are many functions (over 300 Web-enabled functions) that have been Webenabled as of V6R1. – V7R1 adds scheduling and viewing of jobs, filtering of BRMS log messages, marking volumes for duplication, support for multiple email addresses, and Level 2 Console (L2L).
• IBM Systems Director Navigator for i provides management functions not available in System i Navigator. – Performance Data Investigator – High Availability Solutions Manager © Copyright IBM Corporation 2011
How does it compare to System i Navigator? (2 of 2) IBM i
• IBM Systems Director Navigator for i is intended for management of only the server to which you point your Web browser. – Management Central capabilities are not included. – Use IBM Systems Director cross-platform products for multisystem management.
• Both are built from the same source code for consistent functionality. Panels look different when rendered on the Web console. • Single user can only sign in to one Web console—either: – IBM Systems Director Navigator for i or System i Navigator URL Advisor
• Both can have functions restricted. – Systems i Navigator does not install functions. – Web console restricts users from specific tasks.
© Copyright IBM Corporation 2011
Customize functions and applications (1 of 3) IBM i
Click the Application Administration link. © Copyright IBM Corporation 2011
Customize functions and applications (2 of 3) IBM i
• Open the tree node for the section. • Select the desired task.
• Open the Task menu. • Select Customize. © Copyright IBM Corporation 2011
Customize functions and applications (3 of 3) IBM i
Specify the users/groups that you either want to give access or restrict access to this function.
© Copyright IBM Corporation 2011
Additional reference material
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
BRMS Internet home page IBM i
© Copyright IBM Corporation 2011
BRMS: Product Information link IBM i
© Copyright IBM Corporation 2011
Publications IBM i
• Refer to these publications for more information: – Backup Recovery Media Services • V7R1 SC41-5345-07 • V6R1 SC41-5345-06
– A Practical Approach to Managing BRMS for OS/400 • SG24-4840-01 (Redbook)
– Redpiece (REDP0508) • Information on online Domino, SAP, TSM, and so forth • www.redbooks.ibm.com
– Automated Tape Library Planning and Management • SC41-5309
– OS/400 Backup and Recovery • V7R1 SC41-5304-10 • V6R1 SC41-5304-09 © Copyright IBM Corporation 2011
Additional Internet sites IBM i
• iSeries Navigator – http://www-03.ibm.com/servers/eserver/iseries/navigator/
• BRMS GUI – http://w3.rchland.ibm.com/~lpp/brmsGui/customerTips/brmsGuiCustomerSetupAn dDebugNotes.htm – www-03.ibm.com/servers/eserver/iseries/service/brms/pluginfaq.html
• Storage Web site (tape) – http://www-03.ibm.com/servers/eserver/iseries/hardware/storage/
• System i Network – http://www.systeminetwork.com/ • Backup basics and BRMS chapters • System i magazine backup/recovery FAQs • Commonly asked backup/recovery questions
• iSeries Information Center – http://publib.boulder.ibm.com/iseries/ © Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. True or False: BRMS provides the following functions. • • • •
Management of your media Automation of your backups Simplified recovery processing Detailed reporting
2. Which command will display a listing of the media currently being managed by BRMS? a. b. c. d.
WRKMEDBRM WRKCTLGBRM WRKMEDIBRM WRKLBRM
3. True or False: The BRMS GUI support is provided by the BRMS Option 2 – Advanced functions. © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: BRMS provides the following functions. • • • •
Management of your media Automation of your backups Simplified recovery processing Detailed reporting
The answer is True.
2. Which command will display a listing of the media currently being managed by BRMS? a. WRKMEDBRM b. WRKCTLGBRM c. WRKMEDIBRM d. WRKLBRM The answer is WRKMEDBRM.
3. True or False: The BRMS GUI support is provided by the BRMS Option 2 – Advanced functions. The answer is False. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. Which command will display a listing of data that has been processed by BRMS? a. b. c. d.
WRKMEDBRM WRKCTLGBRM WRKMEDIBRM WRKLBRM
5. ____________ is used to restore data that has been saved with BRMS. a. b. c. d.
Retrieval function Restore function TSM (Tivoli Storage Management) HSM (Hierarchical Storage Management)
6. ____________ is used to recover data that has been archived with BRMS. a. b. c. d.
Archive function Retrieval function TSM (Tivoli Storage Management) HSM (Hierarchical Storage Management)
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. Which command will display a listing of data that has been processed by BRMS? a. WRKMEDBRM b. WRKCTLGBRM c. WRKMEDIBRM d. WRKLBRM The answer is WRKMEDIBRM.
5. ____________ is used to restore data that has been saved with BRMS. a. Retrieval function b. Restore function c. TSM (Tivoli Storage Management) d. HSM (Hierarchical Storage Management) The answer is Restore function.
6. ____________ is used to recover data that has been archived with BRMS. a. Archive function b. Retrieval function c. TSM (Tivoli Storage Management) d. HSM (Hierarchical Storage Management) The answer is Retrieval function. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List the features and functions provided by BRMS • List the different software that makes up the BRMS product • Discuss the benefits of using the WRKMEDBRM command • Discuss the benefits of using the WRKMEDIBRM command • Discuss the benefits of using backup control groups to do your backups • Describe the functions supported for BRMS by System i Navigator and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Installing BRMS
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List the software that is required to install BRMS • List the correct order in which this software should be installed • Explain some considerations when installing BRMS • Explain the capabilities of the INZBRM command • Explain the process to initialize BRMS
© Copyright IBM Corporation 2011
BRMS software IBM i
• Install OS options and BRMS: – 5770-SS1 Option 18: Media and Storage Extensions • Prerequisite
– 5770-SS1 Option 44: Encrypted Backup Enablement – 5770-BR1 *BASE – 5770-BR1 Option 1: Network feature – 5770-BR1 Option 2: Advanced Functions feature
© Copyright IBM Corporation 2011
BRMS installation (1 of 2) IBM i
1. GO LICPGM 2. Option 11: Install licensed programs
© Copyright IBM Corporation 2011
BRMS installation (2 of 2) IBM i
• When BRMS is installed, it automatically: – – – –
Creates the QBRM program library Copies BRMS commands into QSYS Creates the QUSRBRM setup library Runs INZBRM (*DATA), which: • Creates a list of tape drives known to the system • Creates all media classes supported based on installed tape drives • Creates default BRMS objects
– Registers the MSE tape interface program as exit points (details later in this unit – using the INZBRM command)
• Add the license key information for BRMS: – Connect to www.ibm.com/software/lms • You need your customer number and software order number Or
– Run the ADDLICKEY command • For those systems with no Internet access (or at V5R3 and before) © Copyright IBM Corporation 2011
Installation considerations IBM i
• If BRMS is installed before MSE, exit points do not exist, therefore they cannot be registered. – Rerun INZBRM (*DATA) after MSE is loaded to register them. – *Uninstall then reinstall software in the correct order. – Call IBM Support for help to register the exit points manually.
• BRMS/MSE should not be installed and active on a system with some other tape management system. – Only one set of tape exits can be in place at a time.
Note: The assumption is that you do not need to keep any of the BRMS objects that might already exist on the system, such as control groups, media information, and so forth. © Copyright IBM Corporation 2011
Install BRMS-related PTFs IBM i
• Rerun your last CUMME (cumulative media) DVD to pick up BRMS and MSE PTFs (or apply most recent full CUMME). • Install the Backup and Recovery group PTF as follows: – V7R1: SF99188 – V6R1: SF99187 – V5R4: SF99186
• The latest BRMS PTF is incorporated into the latest Backup and Recovery group PTF on a monthly basis. • Keep System i Navigator updated as well (install service packs for Access for Windows). © Copyright IBM Corporation 2011
BRMS information APAR II09772 IBM i
© Copyright IBM Corporation 2011
The INZBRM command IBM i
The Initialize BRMS (INZBRM) command performs several types of initialization. These include: – – – – – – – – – –
Estimate the time to update BRMS to a future version and release Start BRMS product initialization after installation or update Estimate the time remaining to complete BRMS product initialization Initialize all major files as well as establishing default policies and control groups Starts the subsystem for networking in a multi-system environment Reset BRMS and re-initialize all major files as well as establishing default policies and control groups Create auxiliary storage pool (ASP) descriptions Re-register all BRMS functional authority elements with the OS's registration facility; used during a full system recovery prior to restoring user profiles Change the system name for BRMS media information to a new system name when restoring this information to a different system or logical partition Merge the BRMS database files contained on one library with the BRMS database files in another library
© Copyright IBM Corporation 2011
Using INZBRM (1 of 2) IBM i
• INZBRM (*CHGSYSNAM): – Rename owner of BRMS media information: • Used in system recovery • Documented in the recovery report
• INZBRM (*DATA): – Adds any tape drives that are attached but not known to BRMS – Adds any default BRMS objects that are missing – Adds control groups for new Domino servers
• INZBRM (*DEVICE): – Same as INZBRM (*DATA) and – Deletes any tape drives that no longer exist on the system
• INZBRM (*ESTPRDINZ): – Used to determine time required to initialize BRMS
• INZBRM (*ESTPRDUPD): – Used to determine time required to initialize BRMS after upgrading to a new software release
• INZBRM (*FLASHCOPY): – Used to set the FlashCopy status of BRMS © Copyright IBM Corporation 2011
Using INZBRM (2 of 2) IBM i
• INZBRM (*MERGE): – Used to merge BRMS database files from one library with BRMS database files in another library • Used when consolidating multiple systems onto a single system
• INZBRM (*NETSYS): – Used to add a system to a BRMS network
• INZBRM (*RUNPRDINZ): – Initialize BRMS after installation/upgrade – BRMS cannot be used until completion.
• INZBRM (*SECUREDDM): – Used to set the user profile and password to use for remote server secure DDM connections to all the systems in a BRMS network
• INZBRM (*SETAUT): – Used to re-register BRMS functional authority • Used during a full system recovery • Documented in the recovery report
• INZBRM (*RESET) – Beware: – All information is cleared. – Only BRMS defaults available when finished © Copyright IBM Corporation 2011
Before initializing BRMS IBM i
© Copyright IBM Corporation 2011
Running INZBRM (*ESTPRDINZ) IBM i
DSPJOBLOG to view estimate Display All Messages System: I520DVL3 Job . . : QPADEV0002 User . . : TONIB Number . . . : 006027
INZBRM OPTION(*ESTPRDINZ) Estimated initialization time is 0 hours and 10 minutes. Additional Message Information Message ID . . . . . . : BRM402B Severity . . . . . . . : 20 Message type . . . . . : Diagnostic Date sent . . . . . . : 09/21/07 Time sent . . . . . . : 10:09:44 Message . . . . : Estimated initialization time is 0 hours and 10 minutes. Cause . . . . . : The estimated time to complete BRMS product initialization is 0 hours and 10 minutes. The time estimate is based on the files in library QUSRBRM containing a total of 0 records and 0 deleted records. BRMS product initialization performance can be optimized if run when there is little or no other activity on the system.
© Copyright IBM Corporation 2011
Running INZBRM (*RUNPRDINZ) IBM i
© Copyright IBM Corporation 2011
BRMS and System i Navigator IBM i
• System i Access for Windows must be installed on PC. • System i Navigator must be installed on PC. • BRMS plug-in to System i Navigator must be installed separately.
© Copyright IBM Corporation 2011
System i Navigator before BRMS plug-in IBM i
© Copyright IBM Corporation 2011
BRMS plug-in install IBM i
© Copyright IBM Corporation 2011
BRMS plug-in successfully installed IBM i
© Copyright IBM Corporation 2011
After BRMS plug-in install IBM i
© Copyright IBM Corporation 2011
BRMS and Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
Tasks to implement BRMS (1 of 3) IBM i
1. Install BRMS LPP and OS options. – Option 18 Media Storage Extension and Opt 44 Encrypted Backup Enablement – BRMS (5770-BR1) – *BASE, Opt 1 (Network feature) and Opt 2 (Advanced feature)
2. Install PTFs: Install the latest cumulative package and the save/restore group PTF. 3. Add the license key for BRMS: – Connect to www.ibm.com/software/lms or – Run the ADDLICKEY command
4. Initialize BRMS. Use the command: INZBRM *RUNPRDINZ – Run *ESTPRDINZ or *ESTPRDUPD for estimated time required.
5. Storage locations: Use the WRKLOCBRM command to create the locations where your tapes should be kept; for example: – COMPROOM – OFF-SITE © Copyright IBM Corporation 2011
Tasks to implement BRMS (2 of 3) IBM i
6. Media devices: Use the WRKDEVBRM command to review the list of configured devices. For media libraries, also use the WRKMLBBRM command. 7. Media classes: Use WRKCLSBRM *MED to ensure that all media formats you need are included. 8. Container classes: Use WRKCLSBRM *CNR to define your physical containers. Use of container management is optional. 9. Containers: If containers are used for your tapes, use the WRKCNRBRM command to create and add the containers. 10. Move policies: Use WRKPCYBRM *MOV to create the move policies needed to rotate your media between the storage locations. 11. Media policies: Use WRKPCYBRM *MED to create the media policies needed. Media policies hold the retention information, media type, and move policy. © Copyright IBM Corporation 2011
Tasks to implement BRMS (3 of 3) IBM i
12. System policy: Check the parameter values in your system policy. Take special notice of the following parameters: – Output queue: Create an output queue for BRMS reports. – The day start time affects both the media and the control groups.
13. Backup policy: Check your backup policy. Change any parameter defaults to your specific environment. 14. Enroll and initialize media: Use the ADDMEDBRM to enroll and initialize your tapes or use the ADDMLMBRM command if you have a media library. 15. Create control groups: Define your backup. Create as many as necessary to save all your data. – Use option 6 (Add to schedule) to add the control groups to the job scheduler.
16. BRMS maintenance: Schedule the STRMNTBRM command as part of your daily routines. This command creates your disaster recovery reports in the output queue specified in the system policy. © Copyright IBM Corporation 2011
Checkpoint IBM i
1. Which OS option is required to perform the basic BRMS functions supported by the *BASE software? a. b. c. d.
5770-SS1 Option 12 Host servers 5770-SS1 Option 18 Media and storage extensions 5770-SS1 Option 22 Object connect 5770-SS1 Option 30 Qshell
2. The name of the library where the BRMS programs are stored on the system is ________ . a. b. c. d.
QSYS QBRM QUSRBRM QSYSHLP
3. ________________ is the command used to update the BRMS device table with the names of the tape hardware known by the OS. a. b. c. d.
INZBRM *CHGSYSNAM INZBRM *DEVICE INZBRM *FLASHCOPY INZBRM *NETSYS © Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. Which OS option is required to perform the basic BRMS functions supported by the *BASE software? a. 5770-SS1 Option 12 Host servers b. 5770-SS1 Option 18 Media and storage extensions c. 5770-SS1 Option 22 Object connect d. 5770-SS1 Option 30 Qshell The answer is 5770-SS1 Option 18 Media and storage extensions.
2. The name of the library where the BRMS programs are stored on the system is ________ . a. QSYS b. QBRM c. QUSRBRM d. QSYSHLP The answer is QBRM.
3. ________________ is the command used to update the BRMS device table with the names of the tape hardware known by the OS. a. INZBRM *CHGSYSNAM b. INZBRM *DEVICE c. INZBRM *FLASHCOPY d. INZBRM *NETSYS The answer is INZBRM *DEVICE. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List the software that is required to install BRMS • List the correct order in which this software should be installed • Explain some considerations when installing BRMS • Explain the capabilities of the INZBRM command • Explain the process to initialize BRMS
© Copyright IBM Corporation 2011
BRMS policies overview
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain what policies are and what function they serve • List the different policies that can be set for BRMS • Detail and explain the parameters that are set through the system policy • Explain how defaults are set on the system and how they can be overridden at a lower level • Explain how to use the green screen, System i Navigator, and Systems Director Navigator for IBM i interfaces to set policies
© Copyright IBM Corporation 2011
BRMS outline IBM i
Defaults Quarterly Lib1 Lib2
Daily Lib3 Lib4
System policy Backup/recovery/archive Retrieve/migration policy
Control groups
Retention
Save files
Media policies
15 Move policies
Storage locations
IBM
2.5 GB Data Cartridge
Tape devices Container classes © Copyright IBM Corporation 2011
Media classes
Policy administration IBM i System policy (one per operating system) Default media class Default media policy and devices User notification and sign-off controls IPL controls and presentation controls Systems that share the media inventory Start of day/time Media monitor on/off License information
Backup, archive, recovery, retrieve, migration policies (one of each, override system policy) Preferred media policy and devices Weekly activity and user sign-off controls Operation specific controls
Control groups (as many as needed, override policies) User sign-off controls Media policy and devices Weekly activity Operation specific controls
Weekly activity
Individual commands
© Copyright IBM Corporation 2011
Priority flow
Using 5250 emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Main BRMS menu IBM i
© Copyright IBM Corporation 2011
Policy Administration menu IBM i
© Copyright IBM Corporation 2011
System Policy menu IBM i
© Copyright IBM Corporation 2011
Option 1: Change System Policy screen (1 of 2) IBM i
© Copyright IBM Corporation 2011
Option 1: Change System Policy screen (2 of 2) IBM i
© Copyright IBM Corporation 2011
Option 2: Work with Sign off Exceptions IBM i
• These users or devices are exempt from sign off when using Sign off Interactive Users from a control group. • If you are running a restricted state save, this does not apply. © Copyright IBM Corporation 2011
Option 3: Work with Subsystems to Check before IPL IBM i
• Check to see if this subsystem is active; if it is then BRMS does not allow an IPL to occur after the backup.
© Copyright IBM Corporation 2011
Option 4: Change Network Group IBM i
New in V7R1: You must use F11 to view BRMS Media Information options.
© Copyright IBM Corporation 2011
Option 5: Change Presentation Controls IBM i
© Copyright IBM Corporation 2011
Option 6: Change Notification Controls IBM i
• These defaults can be changed to meet your needs. • All messages that BRMS generates, regardless of what ID is running the backup, are sent to QSYSOPR. • Configure additional notification through GUI using email. © Copyright IBM Corporation 2011
Option 7: Change IPL Controls IBM i
• The last two parameters cannot be overridden elsewhere. – Earliest and latest time to allow an IPL. – This allows you to specify a range of time to allow an IPL. – This is the only place these parameters can be viewed or changed. © Copyright IBM Corporation 2011
Option 8: Display Log for BRM (DSPLOGBRM) IBM i
© Copyright IBM Corporation 2011
Backup Policy menu IBM i
• • • • •
Only two options are available. This screen shows the default values used with backup control groups. From here, you can override values set in the system policy. Values can be overridden in individual backup control groups. Work with items to omit from backup is used to add or remove backup items when processing the *ASPnn, *SAVSYS, *ALLUSR, and *IBM special values in a backup operation. – Can be overridden from the STRBKUBRM command – Ignored when using the *SYSTEM backup control group © Copyright IBM Corporation 2011
Option 1: Change Backup Policy (1 of 3) IBM i
© Copyright IBM Corporation 2011
Option 1: Change Backup Policy (2 of 3) IBM i
© Copyright IBM Corporation 2011
Option 1: Change Backup Policy (3 of 3) IBM i
© Copyright IBM Corporation 2011
Change Recovery Policy IBM i
• Two additional pages are associated with the recovery policy. • The defaults set through the recovery policy can be overridden through: – The parameters specified for the specific restore commands, or – The parameters specified for the WRKMEDIBRM command © Copyright IBM Corporation 2011
Change Archive Policy IBM i
• • • •
Two additional pages are associated with the Archive Policy. Specify criteria that must be met to archive your data Specify parameters for the backup of the archive data Use the STRARCBRM command to create a report of candidates for review, or to perform the archive function. © Copyright IBM Corporation 2011
Change Retrieve Policy IBM i
© Copyright IBM Corporation 2011
Change Migration Policy IBM i
• Ability to specify a multitude of criteria • Only libraries, folders, and spool files can be migrated • Ability to use MOVSPLFBRM command • Migrated at library level, not object level • Migrated at root folder level © Copyright IBM Corporation 2011
Media policy IBM i
• Unlike the other policies, multiple media policies can exist. • A media policy controls the following items: – Retention type (for saved data) – Move policy – Media class – Storage location to obtain tape from – Save to save file and ASP of save file (the majority of save file control is implemented by the media policy) – Save file retention time – Whether data on the volume is to be secured – ASP storage limit (%) for save files – Number of volumes required for a save – Mark volumes for duplication © Copyright IBM Corporation 2011
Move policy IBM i
• Multiple move policies can exist. • A move policy controls the following items: – Home location of media • Location for media after last sequence in itinerary
– Whether media container is to be used for move – Media movement confirmation – List of locations and duration at each location during media/data life
© Copyright IBM Corporation 2011
Using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
System i Navigator: Global Policy Properties IBM i
© Copyright IBM Corporation 2011
General IBM i
© Copyright IBM Corporation 2011
Notification IBM i
© Copyright IBM Corporation 2011
Signoff Exceptions IBM i
© Copyright IBM Corporation 2011
Power Down IBM i
© Copyright IBM Corporation 2011
Maintenance IBM i
© Copyright IBM Corporation 2011
Retrieval IBM i
© Copyright IBM Corporation 2011
Network IBM i
© Copyright IBM Corporation 2011
Logging IBM i
© Copyright IBM Corporation 2011
Using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Connecting to the system IBM i
© Copyright IBM Corporation 2011
Login prompt IBM i
© Copyright IBM Corporation 2011
Choose global policy properties IBM i
© Copyright IBM Corporation 2011
Global policy properties options IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. There is only one __________ policy on a system. a. System b. Backup c. Recovery d. All of these
2. True or False: Multiple users are able to make changes to the system policy at the same time.
3. True or False: Setting the Media Monitor parameter to OFF does not affect the logging of volume usage. © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. There is only one __________ policy on a system. a. System b. Backup c. Recovery d. All of these The answer is all of these.
2. True or False: Multiple users are able to make changes to the system policy at the same time. The answer is False. 3. True or False: Setting the Media Monitor parameter to OFF does not affect the logging of volume usage. The answer is False. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: The Backup policy and the Retrieve policy work together to set up the defaults for backup and recovery of data.
5. There can be as many __________ policies as required on your system. a. b. c. d.
Backup Recovery Media Archive
6. True or False: The values set in the System policy can be overridden when an individual command is run. © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: The Backup policy and the Retrieve policy work together to set up the defaults for backup and recovery of data. The answer is False. 5. There can be more as many __________ policies as required on your system. a. Backup b. Recovery c. Media d. Archive The answer is Media.
6. True or False: The values set in the System policy can be overridden when an individual command is run. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain what policies are and what function they serve • List the different policies that can be set for BRMS • Detail and explain the parameters that are set through the system policy • Explain how defaults are set on the system and how they are overridden at a lower level • Explain how to use the green screen, System i Navigator, and Systems Director Navigator for IBM i interfaces to set policies
© Copyright IBM Corporation 2011
Lab exercise: BRMS familiarization IBM i
Using 5250 emulation Using System i Navigator Using Systems Director Navigator for i At the end of the labs, you should be able to: • Navigate the BRMS menus and the GUI options • Display all of the commands that relate to BRMS • List some of the objects that are stored in the BRMS libraries: QBRM and QUSRBRM
© Copyright IBM Corporation 2011
Media devices and encryption using software or hardware
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how tape devices are made available or configured for BRMS to use • Describe the function of the parameters when changing a stand-alone tape device • Describe the function of the parameters when changing a tape media library device • Explain the benefit of using *MEDCLS in the device parameter when saving information • Explain the use of the optimum block, device sharing, and automatically enroll media parameters • Explain the support available to perform software data encryption • Explain the support available to perform hardware data encryption
© Copyright IBM Corporation 2011
Media devices and encryption using software or hardware
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Tape device information IBM i
• Is automatically gathered during installation – Based on devices known by the operating system
• Includes device type, model, and characteristics • Supports stand-alone tape drive, media library devices, and virtual tape devices • Is used to validate and control media usage • Supports: – Automatic device selection (*MEDCLS) – Device sharing – Enrolling media – Optimum block sizes
© Copyright IBM Corporation 2011
Tape devices recognized by the OS IBM i
WRKCFGSTS *DEV T* WRKCFGSTS *DEV TAP* © Copyright IBM Corporation 2011
Tape devices recognized by BRMS IBM i
WRKDEVBRM © Copyright IBM Corporation 2011
BRMS media devices IBM i
• A BRMS media device is needed for each tape unit to be used by either: – Go LICPGM option 11 (RSTLICPGM) creates an entry for each tape drive it finds on the system – INZBRM: *DEVICE or *DATA if a new drive has been added • INZBRM *DATA creates an entry for any new device • INZBRM *DEVICE does the same as *DATA as well as: – Reinitializes the device file – Resets any customization done on the media devices
– WRKDEVBRM: Option 1 to add or option 2 to change manually
© Copyright IBM Corporation 2011
Change Tape Media Library Device IBM i
© Copyright IBM Corporation 2011
Change Tape Device IBM i
Is this the correct location?
© Copyright IBM Corporation 2011
Optimum block parameter IBM i
• The optimum block parameter: – Specifies whether the optimum block size is used by this device for the save operation – Allows IBM i to send data to the drive in blocks greater than 32 KB blocks – Might increase save performance
• Use DSPTAP to see block size used on a certain tape. • To turn it on: – Set OPTBLK parameter in BRMS tape device entry.
• You can turn it on for all drives, even if they cannot use large block yet. • Tapes saved using OPTBLK must be restored on a tape drive that can support optimum block. • If you duplicate a tape that was saved with large block, the outbound drive must also use large block. © Copyright IBM Corporation 2011
Device sharing parameter IBM i
• A device can be shared between two systems (for example, a 3590 attached to a production and a development CPU). – This performs automatic vary-on/allocate before save and varyoff/deallocate after save. – Device can also be shared without this setting, but the user must handle vary-off/on.
System 1
System 2
Using TAP01 3590
© Copyright IBM Corporation 2011
Automatically enroll media parameter IBM i
• If this parameter is set to *YES on the BRMS tape device: – When BRMS is performing a save and finds a tape that is not already in the media inventory, it enrolls the tape and continues rather than sending a message. • Tape must already be initialized.
– This parameter is irrelevant for media libraries (MLBs) because BRMS would have to already know about the tape to mount it.
© Copyright IBM Corporation 2011
Using *MEDCLS in device parm (1 of 2) IBM i
© Copyright IBM Corporation 2011
Using *MEDCLS in device parm (2 of 2) IBM i
© Copyright IBM Corporation 2011
WRKMLBBRM IBM i
• Many options are available to work with the media library. • Each option initiates a separate command.
© Copyright IBM Corporation 2011
Using tape libraries IBM i
• One controller is created for each tape library device. – TAPMLBxx
• One TAPMLBxx can control all the tape devices. • A tape device is a resource controlled by the tape library. – – – – –
The device must be varied off. The tape library makes the device available as needed. Cannot vary on device if it is available to the tape library. Cannot make device available to the tape library if it is varied on. Must deallocate to vary on device as a stand-alone.
• Allocation: – Unprotected: The device is available to any system. – Allocated: The device is only available for use by the system that has this status. – Deallocated: The device is unavailable to the tape library.
• Status: – Operational: The device is ready for use. – Active: The device is actively running a job. • Job will be listed.
– Unavailable: The device is not available to the tape library. • Varied on as a stand-alone © Copyright IBM Corporation 2011
WRKMLBSTS IBM i
• TAP01 is a resource controlled by TAPMLB01. • A resource name is associated with each device description. – The resource name of TAP01 might or might not be the same as the device description name in IBM i.
• Varying on the tape library also makes all the tape resources available, if possible. © Copyright IBM Corporation 2011
Who is using my tape lib? IBM i
File . . . . . : QP1ADEVUSE Page/Line 1/27 Control . . . . . Columns 1 - 130 Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9 +....0....+....1....+....2....+....3 FILE LIBRARY MEMBER FORMAT DEVICELOG QTEMP DEVICELOG DEVICELOG DATE . . . . . . . . 02/11/11 TIME . . . . . . . . 14:50:59 01/04/08
14:50:59
DEVSTSDATE
DEVSTSTIME
2008-01-04 * * *
Page 1
E N D
STATUS
13.52.21 O F
R E P O R T
SYSTEM : X1521P3
:NET3590: TAP06 STATUS :-*ALLOCATED
* * *
Bottom F3=Exit
F12=Cancel
F19=Left
F20=Right
F24=More keys
© Copyright IBM Corporation 2011
Software data encryption
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Software data encryption overview IBM i
• Software data encryption requires: – 5770-BR1 Option 2: BRMS Advanced feature – 5770-SS1 Option 44: Encrypted Backup Enablement
• Use the cryptographic services key management in GUI to create keystore file. • The keystore file must be named Q1AKEYFILE and must be stored in the QUSRBRM library with a unique file label.
© Copyright IBM Corporation 2011
Open Cryptographic Services Key Management IBM i
© Copyright IBM Corporation 2011
Create New Keystore IBM i
© Copyright IBM Corporation 2011
Media policy parameters to use encryption IBM i
© Copyright IBM Corporation 2011
GUI: Media policy encryption parameters IBM i
© Copyright IBM Corporation 2011
Steps to set up BRMS for encrypted saves IBM i
© Copyright IBM Corporation 2011
Encryption considerations IBM i
• Encryption is not allowed for: – *IBM, *SAVSYS, *SAVSECDTA, *SAVCFG – Library names beginning with the letter Q (either user or system)
• Performance impact: See student notes. • Not supported on optical devices or virtual devices • Error on recovery report: Be aware. – Discussed in future section
• Most important: User must understand cryptographic services key management. – If not, risks losing data – Services contract available to get assistance from IBM
© Copyright IBM Corporation 2011
Hardware data encryption
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Accessing up-to-date information IBM i
© Copyright IBM Corporation 2011
IBM System Storage: TS1120 and TS1130 IBM i
Both support: • Flexible media, including short and long length cartridges and re-writable and WORM formats • Small form factor and high capacity • Supports encryption and key management • Compatibility with existing IBM tape automation installations • IBM Power Systems, System i5, System p5, System z, and System x support TS1120 • High performance with data transfer rate up to 260 MBps with 3:1 compression TS1130 • High performance with data transfer rate up to 350 MBps with 3:1 compression © Copyright IBM Corporation 2011
Steps to set up BRMS for encrypted saves IBM i
• Initialize new device by using: – INZBRM *Device command, or – Use WRKDEVBRM - option 1 to add new device
• For encrypted media, IBM i will report media density as FMT3592A2E. • Use media class to distinguish between densities or even volumes. – Media enrolled in encryption pool will have a density of FMT3592A2E. – Create a media class called FMT3592A2E by using the new media density FMT3592A2E.
• Use media class FMT3592A2E: – To enroll encryption capable media into BRMS inventory – For all media policies that require encrypted saves and archive operations
• User is responsible for enrolling encrypted and non-encrypted media into the correct media class. • All backup and archive operations performed on IBM i (V5R2 and above) that use media class FMT3592A2E will be encrypted. © Copyright IBM Corporation 2011
Checkpoint (1 of 3) IBM i
1. True or False: Information about the available tape devices that will be supported by BRMS is captured at BRMS install time. 2. The command used to list the tape devices that BRMS knows about is the ____________ command. a. b. c. d.
WRKMEDBRM WRKCTLGBRM WRKCLSBRM WRKDEVBRM
3. True or False: It is recommended that you set up your system to specify automatically enroll media. 4. Instead of specifying the actual name of a tape drive for the backup device parameter you can specify ____________. a. b. c. d.
*FULL *TAPE *MEDCLS *SYSTAP © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 3) IBM i
1.
2.
3.
4.
True or False: Information about the available tape devices that will be supported by BRMS is captured at BRMS install time. The answer is True. The command used to list the tape devices that BRMS knows about is the ____________ command. a. WRKMEDBRM b. WRKCTLGBRM c. WRKCLSBRM d. WRKDEVBRM The answer is WRKDEVBRM. True or False: It is recommended that you set up your system to specify automatically enroll media. The answer is False. Instead of specifying the actual name of a tape drive for the backup device parameter you can specify ____________. a. *FULL b. *TAPE c. *MEDCLS d. *SYSTAP The answer is *MEDCLS. © Copyright IBM Corporation 2011
Checkpoint (2 of 3) IBM i
5. The command to display and work with the status of a tape library is the ____________ command. a. b. c. d.
WRKCFGSTS WRKDEVBRM WRKMLBSTS WRKTAPSTS
6. Option ______ of the OS is required to implement software data encryption. a. b. c. d.
12 18 30 44
7. True or False: Software data encryption is a function provided by Option 1 Networking feature of the BRMS software.
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 3) IBM i
5. The command to display and work with the status of a tape library is the ____________ command. a. WRKCFGSTS b. WRKDEVBRM c. WRKMLBSTS d. WRKTAPSTS The answer is WRKMLBSTS.
6. Option ______ of the OS is required to implement software data encryption. a. 12 b. 18 c. 30 d. 44 The answer is 44.
7. True or False: Software data encryption is a function provided by Option 1 Networking feature of the BRMS software. The answer is False. © Copyright IBM Corporation 2011
Checkpoint (3 of 3) IBM i
8. The keystore file used for software encryption must be stored in which library? a. b. c. d.
QSYS QBRM QUSRBRM QGPL
9. True or False: Hardware data encryption is supported on all of the different tape drives that can be connected to the POWER I system. 10. The Encrypt Data *YES parameter is specified in which of the following? a. b. c. d.
System policy Backup policy Media class Media policy
© Copyright IBM Corporation 2011
Checkpoint solutions (3 of 3) IBM i
8. The keystore file used for software encryption must be stored in which library? a. QSYS b. QBRM c. QUSRBRM d. QGPL The answer is QUSRBRM.
9. True or False: Hardware data encryption is supported on all of the different tape drives that can be connected to the POWER I system. The answer is False. 10. The Encrypt Data *YES parameter is specified in which of the following? a. System policy b. Backup policy c. Media class d. Media policy The answer is Media policy. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how tape devices are made available or configured for BRMS to use • Describe the function of the parameters when changing a stand-alone tape device • Describe the function of the parameters when changing a tape media library device • Explain the benefit of using *MEDCLS in the device parameter when saving information • Explain the use of the optimum block, device sharing, and automatically enroll media parameters • Explain the support available to perform software data encryption • Explain the support available to perform hardware data encryption
© Copyright IBM Corporation 2011
Overview and implementation of virtual tape, DVD, and optical device support
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Discuss the advantage of virtual tape • List the steps necessary to implement virtual tape • Explain the purpose of catalog shadowing • Discuss the support available for DVD and optical devices
© Copyright IBM Corporation 2011
Overview and implementation of virtual tape support
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Virtual tape support (1 of 4) IBM i
• Key advantages: – Supported on all save/restore commands – Can be faster than saving directly to tape – Eliminates save file limitations – Eliminates media error limitations – Allows duplicate saves to media (DUPMEDBRM) – Allows on-site and off-site storage
© Copyright IBM Corporation 2011
Virtual tape support (2 of 4) IBM i
• Considerations: – Additional DASD requirements – No installation from SAVSYS virtual volume: • D type IPL is only supported from physical media.
– Might not be faster: • Tape technology • System configuration and environment
– Data compaction not supported – Data compression support: • DTACPR(*YES) parameter on save commands: – Default is *NO
• Significant performance impact
© Copyright IBM Corporation 2011
Virtual tape support (3 of 4) IBM i
• Implementation of virtual tape: – Included in base IBM i – Configures as Random Access Cartridge Loader (RACL) tape device: • • • •
I/O to disk instead of tape media Behaves like a tape library mounting specified volumes Supports up to 35 virtual tape devices Virtual tape volumes support multiple optimum block sizes: – Compatibility with tape devices
• Tape volume management interface is supported using GUI. • User interface is available through command line or GUI. • There is complete user interface and tape management with BRMS. • Virtual volumes are stored as IFS stream files. © Copyright IBM Corporation 2011
Virtual tape support (4 of 4) IBM i
• Image catalog: – Commands are modified to support virtual optical and virtual tape. – It can store up to 256 1 TB virtual tape volumes. – Load of image catalog on virtual device makes virtual volumes accessible.
• Virtual media: – Virtual volume can be opened by multiple virtual tape devices.
© Copyright IBM Corporation 2011
Overview and implementation IBM i
1 2 3 4 5 6 7 8 9 10
CRTIMGCLG
(2)
Up to 256 virtual tape volumes
ADDIMGCLGE
(3)
LODIMGCLG
Any ASP or iASP
(4) CRTDEVTAP
(1)
Virtual tape device
(6) Save Restore
Disk Disk
(5) Duplicate to media, switch, or FTP to another system © Copyright IBM Corporation 2011
1: Create virtual tape device IBM i
© Copyright IBM Corporation 2011
2: Create Image Catalog IBM i
© Copyright IBM Corporation 2011
3: Create virtual volume IBM i
© Copyright IBM Corporation 2011
Work with virtual devices IBM i
WRKCFGSTS *DEV TAP* command Can also be displayed using GUI
© Copyright IBM Corporation 2011
4: Load image catalog virtual volume IBM i
© Copyright IBM Corporation 2011
Work with Image Catalogs IBM i
WRKIMGCLG command Can also be displayed using GUI
© Copyright IBM Corporation 2011
Work with virtual volumes (1 of 2) IBM i
WRKIMGCLGE IMGCLG(VTAPTEAM00) Can also be displayed using GUI © Copyright IBM Corporation 2011
Work with virtual volumes (2 of 2) IBM i
WRKIMGCLGE command - F11 to view size information Can also be displayed using GUI © Copyright IBM Corporation 2011
BRMS and virtual tape IBM i
• Considerations: – Must create virtual tape devices outside of BRMS – Must create image catalog and virtual volumes outside of BRMS
• BRMS virtual tape acts just like a physical tape device. – BRMS automatically performs virtual tape mounts.
• Disaster recovery: – Duplicate to physical media using the DUPMEDBRM command – Virtual tape volumes stored as IFS objects – Image catalogs in READY status
• Virtual media volumes are not shared in BRMS network. – Local system only – Independent auxiliary storage pools (IASPs) allowing sharing by switching IASP © Copyright IBM Corporation 2011
Duplicating virtual volume to physical media IBM i
© Copyright IBM Corporation 2011
Catalog shadowing overview IBM i
Method to share virtual images using more than one virtual device for restore or media duplication REFERENCE CATALOG
CRTIMGCLG
Virtual device A
DEPENDENT CATALOG
Virtual device B Catalog directory Image files
VOLUMES Volume A Volume B Volume C
VOLUMES Volume A Volume B Volume C
BRMS does not support catalog shadowing. © Copyright IBM Corporation 2011
Overview of DVD and optical device support
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
WRKDEVBRM support for DVD and optical device IBM i
© Copyright IBM Corporation 2011
WRKMLBBRM support for DVD and optical device IBM i
Work with Media Libraries
Y0446P4
Position to . . . . . . _________________________ Starting characters Type options, press Enter. 2=Change 3=Hold 5=Display 6=Release 8=Work with MLB media 9=Display MLB media 10=Display MLB status 11=Add MLB media Opt Library Status
Location Text
OPTMLB01 Released OPTMLB01 Entry created by BRM configuration
Bottom F3=Exit
F5=Refresh
F9=System command
F12=Cancel
© Copyright IBM Corporation 2011
WRKMEDBRM support for DVD and optical device IBM i
Work With Media
System: I520DVL2
Position to . . . . . ______________________ Starting characters Type options, press Enter. 1=Add 2=Change 4=Remove 5=Display 6=Work with serial set 7=Expire 8=Move 10=Reinitialize ... Opt
Volume Serial
Volume Identifier
Optical Media Type
KMA001 LN4121 LN5795 OPT001 OPT002 OPT003 OPT004 +
LPP01234567890123456789 LN4121 LN5795 FISTOPT01 FISTOPT02 *DVD-RAM FISTOPT03 FISTLER01 *ERASE
More... Parameters or command: ===> F3=Exit F4=Prompt F5=Refresh F11=Volume information F12=Cancel F17=Top F18=Bottom F23=More options
© Copyright IBM Corporation 2011
ADDMEDBRM support for DVD and optical device IBM i
© Copyright IBM Corporation 2011
WRKMLMBRM support for DVD and optical device IBM i
Work with Media Library Media
I520DVL2
Media library . . . . . . : OPTMLB01 Position to . . . . . . . . Type options, press Enter. 1=Add MLB media 2=Work with media
5=Initialize
Volume Optical Opt Volume Identifier Serial Volume Type
Media Type
ABSW1A *NONE *PRIMARY *WORM ASCIIVOL *NONE *PRIMARY *ERASE DUPOPT-4XCCW-TO-4XCCW *NONE *PRIMARY DUPOPT-4XWORM-TO-4XCCW *NONE *PRIMARY FISTLER01 OPT004 *PRIMARY *ERASE FISTLER02 OPT005 *PRIMARY *ERASE FULL *NONE *PRIMARY *WORM FULL1 *NONE *PRIMARY *WORM
*WORM *WORM
More... F3=Exit F5=Refresh F9=System command F11=BRMS information F12=Cancel F13=Repeat
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. True or False: Support for virtual tape was added at V5R3. 2. True or False: Data compaction is not supported when saving to a virtual tape. 3. True or False: Data compression is not supported when saving to a virtual tape. 4. The maximum number of virtual volumes that can be loaded to an image catalog is ___. a. b. c. d.
32 64 256 *NOMAX © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: Support for virtual tape was added at V5R3. The answer is False. 2. True or False: Data compaction is not supported when saving to a virtual tape. The answer is True. 3. True or False: Data compression is not supported when saving to a virtual tape. The answer is False. 4. The maximum number of virtual volumes that can be loaded to an image catalog is ___. a. 32 b. 64 c. 256 d. *NOMAX The answer is 256. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
5. True or False: Catalog shadowing is supported by BRMS.
6. True or False: Saving to a virtual tape is always faster than saving to a physical tape drive.
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
5. True or False: Catalog shadowing is supported by BRMS. The answer is False. 6. True or False: Saving to a virtual tape is always faster than saving to a physical tape drive. The answer is False.
© Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Discuss the advantage of virtual tape • List the steps necessary to implement virtual tape • Explain the purpose of catalog shadowing • Discuss the support available for DVD and optical devices
© Copyright IBM Corporation 2011
Lab exercise IBM i
Media devices and virtual tape At the end of the lab, you should be able to: – Perform the steps necessary to: • • • •
Display the tape devices that are recognized by the OS Perform the command to create a virtual tape environment Perform the commands to make virtual devices available to BRMS Display what tape devices are recognized by BRMS
© Copyright IBM Corporation 2011
Creating a simple backup control group
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List all the steps to create a backup control group • List the different backup items that can be specified • Explain how to set backup control group attributes • Explain how media classes are used on backup • Explain how the backup policy and system policy are used • Explain how to set up to end and start subsystems • Explain how to set up to hold and release job queues • Explain what the BRMS media information is and how to back it up • Explain how to perform these functions using 5250 emulation, System i Navigator, and Systems Director Navigator for IBM i © Copyright IBM Corporation 2011
Control groups, media, and move policies IBM i Control groups Libraries List SWA Special values *obj *yes *allusr *link * no *savsys *spl *alltest *flr *etc *load *exit Attributes Retain object detail Media policy *no Backup device *obj Append, B/U data base, *mbr IPL? *yes
Media policies Retention type Required vols Move policy Mark for dup Media class Storage location Save to save file?
Move policies Home location Use containers? Verify moves? Storage location - duration
Tape devices
Storage locations
Read/write densities Device location Shared device? Optimum block size
*HOME vols expire? TAPMLBxx COMPROOM VAULT And so on
WRKMEDBRM Location Media class Move policy Expired? © Copyright IBM Corporation 2011
Media classes Density Prt labels? Shared media usage/read/write thresholds
Backup control groups
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
What are backup control groups? (1 of 3) IBM i
• Each backup control group is a collection of items to be backed up; they include: – Data with similar processing requirements – An item that is a library or a list of objects or keyword – Attributes that define how the backup will be performed and specifics about the media that will be used
• As many control groups as needed can be defined. • Each backup control group has a name that the user assigns.
© Copyright IBM Corporation 2011
What are backup control groups? (2 of 3) IBM i
• Define the type of backup to be performed. – Full or incremental – Which type is done on each day of the week
• Backup functions include: – Full save (SAVLIB, SAVOBJ, SAV, or SAVDLO) – Incremental save (SAVCHGOBJ or SAVDLO): • Cumulative incremental • Noncumulative incremental
• Use an interface that supports save-while-active. • Retain save history for tracking and later analysis. • Specify save defaults.
© Copyright IBM Corporation 2011
What are backup control groups? (3 of 3) IBM i
• Default backup control groups created at installation: – *BKUGRP: Full backup of all user data – *SYSGRP: Full backup of all IBM data – *SYSTEM: Full backup of entire system: • It cannot be changed; it can only be viewed. • It can be copied.
© Copyright IBM Corporation 2011
Save changed objects IBM i
To recover if using cumulative/incremental restore:
Cumulative Incremental Sunday FULL SAVE A
Monday Changed/SAVED
C
Tues C/S
S
B
C
Wed C/S
S
S
S
C
Thur C/S
C
Fri C/S
S
S
S
S
S
C S
S
S
Sat LIB A deleted
Incremental Incremental Sunday FULL SAVE A B C
Monday Changed/SAVED
C
Tues C/S
Wed C/S
S
Thur C/S
Fri C/S
Sat LIB A deleted
a. Sunday lib save b. Friday's Save
To recover if using incremental/incremental restore: a. b. c. d. e.
C S C S C S
© Copyright IBM Corporation 2011
Sunday lib save Monday's save Tuesday's save Wednesday's save Thursday's save
WRKCTLGBRM create/edit IBM i
• Use option 1 to create a new backup control group. • Use option 2 to edit an existing backup control group.
© Copyright IBM Corporation 2011
Text field IBM i
Text • Specify something meaningful and descriptive. • This can be used for searches on the WRKMEDBRM command.
© Copyright IBM Corporation 2011
Defining default activity and weekly activity IBM i
Default activity: • Specifies defaults for each line item • Specifies backup to be performed: F = full I = incremental Blank = skip on that day (none) – Will default to the backup policy
• Weekly activity: – Overrides the default activity – Specifies backup to be performed: F, I, or blank © Copyright IBM Corporation 2011
Backup items IBM i
• Named items: – Library name: Back up a library. • A warning message is issued if library does not exist.
– Generic library name: Back up multiple libraries. – Special value: Predefined items to back up – List name: Back up a list of objects, folders, spool files, or IFS data.
• Use F19 Select Libraries to assist. – Cursor must be on the Backup Items column. © Copyright IBM Corporation 2011
Select Libraries: F19 IBM i
© Copyright IBM Corporation 2011
Backup items: Special values (1 of 2) IBM i
• • • • • • • • •
*ALLDLO *ALLPROD *ALLTEST *ALLUSR *ASPnn *DLOnn *IBM *LINK *LNKOMTONL
• *LNKOMTLTS • *LTSOMTONL • *QHST • *SAVCFG
- Save the document library, all ASPs. - Save all *PROD type libraries. - Save all *TEST type libraries. - Save all user libraries. - Save an ASP (includes only libraries). - Save the document library, selected ASP. - Save all IBM libraries. - Save all directories and files. - Save all IFS directories and files except online Lotus server backup files. - Save all IFS directories and files except all Lotus server files. - Save all Lotus server files except online Lotus server files. - Save history information. - Save configurations. © Copyright IBM Corporation 2011
Backup items: Special values (2 of 2) IBM i
• *SAVSECDTA
- Save security data.
• *SAVSYS
- Save the operating system (requires all subsystems be ended).
• *SAVSYSINF
- Save only operating system information.
• *ALLCHGRCV
- Save all journal receivers in user libraries that do not start with the letter Q that have never been saved or that have changed since they were last saved.
• *ALLDTCRCV
- Save all detached journal receivers in user libraries that do not start with the letter Q that have never been saved or that have changed since they were last saved.
© Copyright IBM Corporation 2011
Special values not supported for parallel save IBM i
• The following special value items will be backed up using a single resource if included in a control group using multiple parallel resources: – – – – – – – – – – – – – –
*ALLDLO *ASPnn *DLOnn *EXIT containing a SAVDOMBRM command saving to a target release prior to V5R4M0 *LINK saving to a target release prior to V5R4M0 *LNKOMTONL saving to a target release prior to V5R4M0 *LNKOMTLTS saving to a target release prior to V5R4M0 *LTSOMTONL saving to a target release prior to V5R4M0 *SAVCFG *SAVSECDTA *SAVSYS *SAVSYSINF *ALLDTCRCV *ALLCHGRCV © Copyright IBM Corporation 2011
Backup items: Special operations IBM i
• Special operations: – *EXIT: Perform user command processing. • More detail will be covered in unit nine.
– *LOAD: Eject current tape and load a new tape. • Continue remaining operations on new tape. (Example: seq #50 through end will continue on a new tape.)
– *SETASPGRP: Set ASP group. • Details on next page
© Copyright IBM Corporation 2011
ASP column IBM i
• ASP device: – Specifies name of storage pool: • Special value • Primary ASP • Secondary ASP
– Works with *SETASPGRP in Backup Items column © Copyright IBM Corporation 2011
Retain Object Detail column IBM i
Retain Object Detail • Level of detail about what is saved through BRMS operations • Values allowed are: *ERR: Identify only those objects not saved due to error *NO: Do not keep track of object detail *YES: Keep track of object detail for backup lists *OBJ: Keep track at object detail level *MBR: Keep track at member detail level © Copyright IBM Corporation 2011
Simple control group IBM i
© Copyright IBM Corporation 2011
Enter > F3 to Exit IBM i
• The only configuration item within BRMS that requires this step to create or change a BRMS object • All other objects created require only an Enter to create or change the item.
© Copyright IBM Corporation 2011
Controlling subsystem and job queues
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Ending subsystems (1 of 2) IBM i
• Enter WRKCTLGBRM. • Select option 9 - Subsystems to process. – Subsystems are ended at start of control group. • More details will be discussed after *EXIT is described in next two units.
– Subsystems started again when: • Control group ends and *YES is specified in the restart parameter. • STRSBSBRM command is issued and *YES is in the restart parameter. – Restarts all subsystems ended at the beginning
• If *NO is specified in the restart parameter, subsystems will not restart in either scenario above.
• Use in preference to *EXITs with ENDSBS and STRSBS. – BRMS checks that subsystems have ended properly. – This enables the use of the STRSBSBRM command.
• In a BRMS network, subsystem Q1ABRMNET should be up except during a SAVSYS. © Copyright IBM Corporation 2011
Ending subsystems (2 of 2) IBM i
• Subsystems are processed in the sequence keyed. • A control group with *SAVSYS automatically puts the system in a restricted state.
© Copyright IBM Corporation 2011
Holding job queues IBM i
• Enter WRKCTLGBRM. • Select option 10. – Currently running jobs are allowed to complete; new jobs cannot start.
© Copyright IBM Corporation 2011
Setting attributes to control the backup
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Option 8: Attributes default to *BKUPCY IBM i
Use F9 from WRKCTLGBRM (top screen) to view the backup policy. © Copyright IBM Corporation 2011
Backup policy defaults to *SYSPCY IBM i
Use F9 from the Change Backup Policy screen to view the system policy. © Copyright IBM Corporation 2011
Prompting in backup control group IBM i
• Pop-ups available for some options through F4 • Pop-ups example for selection of media policy • Shows current values for *BKUPCY and *SYSPCY
© Copyright IBM Corporation 2011
Attributes screen (1 of 4) IBM i
© Copyright IBM Corporation 2011
Attributes screen (2 of 4) IBM i
© Copyright IBM Corporation 2011
Attributes screen (3 of 4) IBM i
© Copyright IBM Corporation 2011
Attributes screen (4 of 4) IBM i
© Copyright IBM Corporation 2011
Backup policy: Items to omit IBM i
Option 2 from BRMSBKUPCY menu
• Useful for temporary libraries—use a generic specification: – Requires a naming standard to be imposed
Note: In the example, any control group saving an *ALLUSR does not save any library that starts with PAYLIB* or a library named TEST. • These objects are still saved with the *SYSTEM control group.
© Copyright IBM Corporation 2011
Backup of the BRMS database
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Backing up media information (1 of 5) IBM i
Each time you run a save, the BRMS inventory database changes. To recover from the tapes you have just written to, you will need to save the revised BRMS inventory to tape at least once a day. Media information
Old information New information
Library level detail
Old information
Object level detail
Old information
New information
To do this, either: a. Set the Automatically backup media information parameter on the control group attributes. b. Use the SAVMEDIBRM command. © Copyright IBM Corporation 2011
New information
Backing up media information (2 of 5) IBM i
BRMS database is backed up each time this control group is run.
© Copyright IBM Corporation 2011
Backing up media information (3 of 5) IBM i
Manually save BRMS database using SAVMEDIBRM.
© Copyright IBM Corporation 2011
Backing up media information (4 of 5) IBM i
The recovery data might consist of up to 18 files. QA1ACN
Container Status
QA1ADI2
IFS History (Directory level)
QA1ADV QA1ADXR QA1AHS QA1ALI2 QA1ALR QA1AMB QA1AMD
Device Record: By Name Duplicate cross reference file Save History (Library level) IFS History (File Level) Library save history Member level Detail MLD Device Record: By Name
QA1AMM
Media master
QA1AMT
Media class
QA1ANET2
BRMS Sync file
QA1AOD
Save History (Object level)
QA1AOQ
Save History - Spool Files
QA1AOR
Used for ragged save restores (R530)
QA1ASP
System Policy
QA1A1DV
Device Record: By Type
QA1A1MD
MLD Device Record: By Location
• Control group attributes and SAVMEDIBRM, specify: – *LIB: Will save all files except QA1ADI2, QA1ALI2, QA1AMD, and QA1AOD – *OBJ: Will save all of these files
• In control group attributes only: – *NONE: Will save none of these files • Assumes SAVMEDIBRM issued later
© Copyright IBM Corporation 2011
Backing up media information (5 of 5) IBM i
Contrast 1. Retain object detail *YES/*NO/*ERR/*OBJ
2. Automatically back up media information *LIB/*OBJ Disk QUSRBRM MM HS
Backup
Tape
OD
Control group edit screen
Control group attributes screen Change Backup Control Group Attributes
Edit Backup Control Group Entries Group . . . . . . . . . . : EXAMPLE Default activity . . . . . *BKUPCY Text . . . . . . . . . . . An example of a control group
Group. . . . . . . . . . . . . . . . : *BKUPCY
Type information, press Enter.
Media policy for full backups . . . . . . . . . *BKUPCY Name, F4 for Media policy for incremental backups. . . . . . . . . . . . . *BKUPCY Name, F4 for Backup devices. . . . . . . . . . . . . . . . . *BKUPCY Name, F4 for ________
Backup Seq Items 10 20 30 40 50
*EXIT MYLIB1 MYLIB2 AAALNK *EXIT
Type information, press Enter.
Auxiliary Weekly Retain Save List Storage Activity Object While Type Pool Device SMTWTFS Detail Active *DFTACT *SYSBAS *DFTACT *NO *NO *SYSBAS *DFTACT *ERR *NO *LNK *SYSBAS IIIIIF *YES *NO *DFTACT
LO
AL IC G
AL IC S Y PH
Automatically backup media information. . . . . . . . . . . . . . *LIB *LIB, *OBJ, *NONE, *BKUPCY Text. . . . . . . . . . . . . . . . .Entry created by BRM configuration
© Copyright IBM Corporation 2011
or SAVMEDIBRM *LIB
Using System i Navigator to create a backup control group
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Creating a new backup control group IBM i
© Copyright IBM Corporation 2011
Wizard welcome IBM i
© Copyright IBM Corporation 2011
Assign name and description IBM i
© Copyright IBM Corporation 2011
Select a Save Strategy IBM i
© Copyright IBM Corporation 2011
Customize what will be saved IBM i
© Copyright IBM Corporation 2011
Customize User Data IBM i
© Copyright IBM Corporation 2011
Select item type and then click Add IBM i
© Copyright IBM Corporation 2011
Starting the wizard IBM i
© Copyright IBM Corporation 2011
Browse for items to add IBM i
© Copyright IBM Corporation 2011
Libraries to save IBM i
© Copyright IBM Corporation 2011
Save Order IBM i
© Copyright IBM Corporation 2011
Save Activity IBM i
© Copyright IBM Corporation 2011
Select Media Policies IBM i
© Copyright IBM Corporation 2011
Select Devices IBM i
© Copyright IBM Corporation 2011
Run Maintenance IBM i
© Copyright IBM Corporation 2011
Add Media IBM i
© Copyright IBM Corporation 2011
Summary page IBM i
© Copyright IBM Corporation 2011
Backup control group created IBM i
© Copyright IBM Corporation 2011
Using Systems Director Navigator for i to create a backup control group
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Choose New to start IBM i
© Copyright IBM Corporation 2011
Welcome page IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. True or False: The two types of backup that can be performed for your backup control group are either Full or Incremental. 2. The text used within a backup control group is also a searchable field and one of the parameters that can be specified for the _____________ command. a. b. c. d.
WRKDEVBRM WRKMEDBRM WRKMEDIBRM WRKSAVFBRM
3. True or False: In order to restore an individual object from a saved library you must have specified a value for Retain Object Detail. © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: The two types of backup that can be performed for your backup control group are either Full or Incremental. The answer is True. 2. The text used within a backup control group is also a searchable field and one of the parameters that can be specified for the _____________ command. a. WRKDEVBRM b. WRKMEDBRM c. WRKMEDIBRM d. WRKSAVFBRM The answer is WRKMEDBRM.
3. True or False: In order to restore an individual object from a saved library you must have specified a value for Retain Object Detail. The answer is True.
© Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. When working with control groups, which option is used to specify to end subsystems? a. b. c. d.
Option 1 Option 8 Option 9 Option 10
5. When working with control groups, which option is used to specify to hold job queues? a. b. c. d.
Option 1 Option 8 Option 9 Option 10
6. True of False: The SAVMEDI command is used to only back up the media information. © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. When working with control groups, which option is used to specify to end subsystems? a. Option 1 b. Option 8 c. Option 9 d. Option 10 The answer is Option 9.
5. When working with control groups, which option is used to specify to hold job queues? a. Option 1 b. Option 8 c. Option 9 d. Option 10 The answer is Option 10.
6. True of False: The SAVMEDI command is used to only back up the media information. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List all the steps to create a backup control group • List the different backup items that can be specified • Explain how to set backup control group attributes • Explain how media classes are used on backup • Explain how the backup policy and system policy are used • Explain how to set up to end and start subsystems • Explain how to set up to hold and release job queues • Explain what the BRMS media information is and how to back it up • Explain how to perform these functions using 5250 emulation, System i Navigator, and Systems Director Navigator for IBM i © Copyright IBM Corporation 2011
BRMS log
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how to use the DSPLOGBRM command • Explain the parameters available when you display the BRMS log • Describe the information displayed when you process the DSPLOGBRM command • Explain how to perform these functions using a green screen, System i Navigator, and Systems Director Navigator for IBM i
© Copyright IBM Corporation 2011
BRMS log (1 of 2) IBM i
• Log success or failure for BRMS operations and status messages • Shows BRMS information shown only; the first place to start for BRMS problem determination • Shows only selected information from job log, history log, and QSYSOPR message queue • Several sub-selection options are available: – – – – – – – – –
Media management messages Maintenance messages Backup or recovery messages Archive or retrieval messages Security messages Migration messages Allows for time and date selection Allows for message severity selection Using option 10 allows for additional selection of User ID or Specific message ID © Copyright IBM Corporation 2011
BRMS log (2 of 2) IBM i
• No search is available through the display but you have the ability to print and search spool file. • The DSPLOGBRM command tracks: – When the media monitor is enabled and disabled – When the console monitor is enabled and disabled – And so forth
• When backup operations are unable to save all objects: – BRM10A1 and BRM16A1 are issued: • Save completed but had errors • Severity Level 40 error messages
• When backup operations are successful: – Completion messages, BRM1049 and BRM1683, are issued
© Copyright IBM Corporation 2011
Using the 5250 green screen
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Using the DSPLOGBRM command IBM i
Must use F10 to view last two parameters
© Copyright IBM Corporation 2011
Display BRMS Log Information IBM i
© Copyright IBM Corporation 2011
F11: Alternate view IBM i
© Copyright IBM Corporation 2011
F4: Display additional information IBM i
Second-level message information available through the F4 key from either display
© Copyright IBM Corporation 2011
Using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
System i Navigator IBM i
© Copyright IBM Corporation 2011
DSPLOGBRM parameters IBM i
© Copyright IBM Corporation 2011
BRMS Log IBM i
© Copyright IBM Corporation 2011
Detailed Message Information display IBM i
© Copyright IBM Corporation 2011
Using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
BRMS log command parameters IBM i
© Copyright IBM Corporation 2011
Click arrow to display context menu IBM i
© Copyright IBM Corporation 2011
Detailed message display IBM i
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. The __________ command is used to display the BRMS log. a. DSPASPBRM b. DSPLOGBRM c. DSPBKUBRM d. DSPDUPBRM
2. True or False: The same information displayed in the BRMS log is also available in the history log and/or the system operator message queue. 3. True or False: When displaying the BRMS log it is possible to specify to show messages for a specific backup control group. © Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. The __________ command is used to display the BRMS log. a. DSPASPBRM b. DSPLOGBRM c. DSPBKUBRM d. DSPDUPBRM The answer is DSPLOGBRM.
2. True or False: The same information displayed in the BRMS log is also available in the history log and/or the system operator message queue. The answer is True. 3. True or False: When displaying the BRMS log it is possible to specify to show messages for a specific backup control group. The answer is False. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how to use the DSPLOGBRM command • Explain the parameters available when you display the BRMS log • Describe the information displayed when you process the DSPLOGBRM command • Explain how to perform these functions using a green screen, System i Navigator, and Systems Director Navigator for IBM i
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Creating a basic backup control group using 5250 green screen – Optional: If you will be using GUI, perform the exercise for the one you will be using.
• Creating a basic backup control group using System i Navigator • Creating a basic control group using Systems Director Navigator for i • In this exercise, you: – Create a backup control group – Review the BRMS log
© Copyright IBM Corporation 2011
Saving IFS data
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List all the different options to save data in the IFS • Explain how to save IFS data using 5250 emulation, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Saving IFS objects
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Integrated file system IBM i The IFS root
QSYS.LIB (normal OS/400 objs)
QDLS (EBCDIC folders)
SAVSYS SAVLIB SAVOBJ SAVCHGOBJ
SAVDLO
Traditional file systems
QOPENSYS UNIX file system
Shared folders from Client Access
QLANSRV integrated PC server files
QOPT optical files
New file systems
SAV command
• File systems simplify application porting and other functions. • Access it from the system using WRKLNK. • Save/restore commands available for the IFS: – SAV/RST
• Save/restore commands available when using BRMS: – WRKLNKBRM – SAVBRM – RSTBRM © Copyright IBM Corporation 2011
Using the SAV command for IFS data IBM i
• GO SAVE (option 21) includes the SAV command. • Customized save procedures need to incorporate the SAV command to also save this information. • Additional parameters are available for the SAVBRM command. • Vary on/off status of Integrated Netfinity or System x server or both affects the type of save achieved with this command. – Varied off INS gives an SAVSTG-like backup that can only be restored as a whole. – Varied on INS gives object-by-object backup that can be restored individually. Note: Backup takes much longer (requires a TCP/IP connection; system cannot be in restricted state).
• Refer to BRMS Redbook (SG24-4840) for details. © Copyright IBM Corporation 2011
Native SAV command IBM i
© Copyright IBM Corporation 2011
SAVBRM command IBM i
© Copyright IBM Corporation 2011
Saving IFS: Green screen IBM i
© Copyright IBM Corporation 2011
Saving IFS: System i Navigator IBM i
© Copyright IBM Corporation 2011
Saving IFS: Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. ___________ is the special value used to save all of the directories on your system. a. b. c. d.
*ALLDLO *IBM *LINK *SAVCFG
2. ___________ is the special value used to save all of the folders on your system. a. b. c. d.
*ALLDLO *IBM *LINK *SAVCFG
3. True or False: Saving your directories or folders can be specified with the green screen or the GUI interfaces. © Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. ___________ is the special value used to save all of the directories on your system. a. *ALLDLO b. *IBM c. *LINK d. *SAVCFG The answer is *LINK.
2. ___________ is the special value used to save all of the folders on your system. a. *ALLDLO b. *IBM c. *LINK d. *SAVCFG The answer is *ALLDLO.
3. True or False: Saving your directories or folders can be specified with the green screen or the GUI interfaces. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List all the different options to save data in the IFS • Explain how to save IFS data using 5250 emulation, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Working with backup lists
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Describe the different types of backup lists that you can create • Explain the steps to create a backup list • List some considerations to keep in mind when creating backup lists • Explain how to perform these functions using 5250 emulation, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Working with backup lists
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Types of backup lists IBM i
• Lists are used to save only a subset of objects. Types of lists are: – Object lists: • This list is used to save a set of objects or a subset of a library. • The command being processed is SAVOBJBRM. • List type is *OBJ.
– Spool files lists: • This list is used to save spool files. • The command being processed is SAVDLOBRM. • List type is *SPL.
– Folder lists: • This list is used to save specific folders. • The command being processed is SAVDLOBRM. • List type is *FLR.
– Link lists: • This list is used to save specific directories. • The command being processed is SAVBRM. • List type is *LNK. © Copyright IBM Corporation 2011
Default backup lists IBM i
• The backup lists created by default at installation time are: – QALLSPLF: • Saves all printed output
– QALLUSRLNK: • Save all user directories
– QIBMLNK: • Save all IBM directories
– QLNKOMT: • Associated user omit list for *LINK.
© Copyright IBM Corporation 2011
Creating backup lists: F23 IBM i
WRKLBRM can be called: • From a command line • Using F23 = Work with lists from within the control group (must use F24 to view additional selections)
© Copyright IBM Corporation 2011
Creating an object backup list IBM i
• Object name can be: – Full name – Generic—ending with asterisk (*) – *ALL
• Object type cannot be *LIB. • Member: – Can only be specified if object name is not generic or if the object column is *ALL and object type is *FILE. – Member name can be generic.
• New object lists for V7R1: – QIBMLNK saves all IBM IFS objects (SYSGRP CTLG on new install). – QALLUSRLNK is used in conjunction with QIBMLNK to save all IFS. © Copyright IBM Corporation 2011
Specifying object to be saved IBM i
© Copyright IBM Corporation 2011
Creating a folder backup list IBM i
• Any folder name can be entered, whether or not it exists. – BRMS verifies the existence of a specifically named folder. – BRMS does not verify the existence of folder when wildcards are used.
• If a folder does not exist, a message is sent to the BRMS log when the save is performed. • Specifying a folder will also back up all subfolders. • You have the ability to use *INC and *EXC. – Use this to exclude specific subfolders.
© Copyright IBM Corporation 2011
Specifying folders to be saved IBM i
© Copyright IBM Corporation 2011
Creating a spool file backup list IBM i
• Sequence numbers are used for *Includes and *Excludes. – BRMS builds a list based on all sequence numbers. – Excludes do not have to follow the includes. – It retains attributes on the restore.
© Copyright IBM Corporation 2011
Specifying spool files to be saved IBM i
© Copyright IBM Corporation 2011
Setting spool file expiration IBM i
• Use F11 on the Change Spooled File List display to access the Spool File Expiration column. – Sets expiration date for spool files on system – Several selections for setting expiration – Delete is not automatic; must run DLTEXPSPLF
© Copyright IBM Corporation 2011
Creating a link backup list IBM i
•
Creating a link list is a two-step process: 1. You must first create the link list. 2. Then edit the list to add the specific directories to be saved.
•
A specific path can be defined.
•
This builds a list of includes and omits.
© Copyright IBM Corporation 2011
Specifying directories to save IBM i
© Copyright IBM Corporation 2011
Control group with backup lists added IBM i
© Copyright IBM Corporation 2011
F14: Display client omit status IBM i
Client omits: •
Used to omit specific objects from being saved
•
Can only be specified using Navigator interface
•
Are only viewed from the green screen interface © Copyright IBM Corporation 2011
System i Navigator: Set up omits in a library IBM i
© Copyright IBM Corporation 2011
Changing defaults: F13 IBM i
© Copyright IBM Corporation 2011
System i Navigator: Working with backup lists
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Manage Lists IBM i
© Copyright IBM Corporation 2011
List actions > New IBM i
© Copyright IBM Corporation 2011
Object list > Next IBM i
© Copyright IBM Corporation 2011
Object list IBM i
© Copyright IBM Corporation 2011
New Folder List IBM i
© Copyright IBM Corporation 2011
New Printer Output List IBM i
© Copyright IBM Corporation 2011
New Directory List IBM i
© Copyright IBM Corporation 2011
Select Items for Save IBM i
© Copyright IBM Corporation 2011
Finish creating a directory list IBM i
© Copyright IBM Corporation 2011
Lists added IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Working with backup lists
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Manage Lists IBM i
© Copyright IBM Corporation 2011
Select New IBM i
© Copyright IBM Corporation 2011
Select type of list IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. Which list type is used to save specific objects from a library? a. b. c. d.
*FLR *OBJ *SPL *LNK
2. True or False: BRMS provides the capability to save specific user’s spool files. 3. When using the green screen interface to create lists, which of the following list types does not provide an option to Omit the save of specific data? a. b. c. d.
*FLR *OBJ *SPL *LNK © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. Which list type is used to save specific objects from a library? a. *FLR b. *OBJ c. *SPL d. *LNK The answer is *OBJ.
2. True or False: BRMS provides the capability to save specific user’s spool files. The answer is True. 3. When using the green screen interface to create lists, which of the following list types does not provide an option to Omit the save of specific data? a. *FLR b. *OBJ c. *SPL d. *LNK The answer is *OBJ. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: Spool files that have been assigned an expiration date will automatically be deleted off of the system on the expiration date.
5. True or False: Creating and using an object list is the same as using the SAVOBJBRM command.
6. True or False: The delete expired spooled files command can be added to a scheduler to automate when expired spool files will be deleted.
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: Spool files that have been assigned an expiration date will automatically be deleted off of the system on the expiration date. The answer is False. 5. True or False: Creating and using an object list is the same as using the SAVOBJBRM command. The answer is True. 6. True or False: The delete expired spooled files command can be added to a scheduler to automate when expired spool files will be deleted. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Describe the different types of backup lists that you can create • Explain the steps to create a backup list • List some considerations to keep in mind when creating backup lists • Explain how to perform these functions using 5250 emulation, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Creating and using backup lists and saving to a save file • Optional: If you will be using GUI, perform the exercise for the one you will be using. – Creating and using backup lists and saving to a save file using System i Navigator – Creating and using backup lists and saving to a save file using Systems Director Navigator for i – In this exercise, you: • Create a backup list and add it to your backup control group • Perform a save to a save file
© Copyright IBM Corporation 2011
Parallel save, user exits, and save while active
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain the support available to perform a parallel save • Explain the support available for saving private authorities • Explain the steps to create user exits • Explain the steps to set up save-while-active (SWA) for a single sync operation • Explain the steps to set up SWA for a multisync operation • Detail these steps using 5250 emulation, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Additional parameters for a save control group
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Parallel save IBM i
• Library spreading: – Always done for the following: • *ALLUSR, QUSRBRM, QBRM, QMSE, Q1ABRMSF01 - 32, *ALLUSR, *IBM, *ALLTEST, *ALLPROD, *ASP01 - 32, Generics
– Can take the place of concurrent saves – Keeps all resources saving libraries
• Algorithm automatically determines type of spreading based on: – Library size, – Number of objects – Performance of the tape drive used
• IFS object support for parallel saves was added at V5R4. • Dynamic allocation of parallel devices: – Allocate tape devices as needed for parallel saves – BRMS manages allocation automatically. © Copyright IBM Corporation 2011
Parallel/parallel versus parallel/serial IBM i
• Assuming there are four libraries to save: – LibA – LibB – LibC – LibD – Four tape devices available
• A true parallel save (parallel/parallel): – Will start saving LibA across the four available drives. – Four tapes will be required if LibA needs to be restored.
• A parallel/serial save yes: – Will start saving LibA to tape drive one, LibB to tape drive two, and so on – Assuming LibA will fit on one tape, only the one tape drive will be needed to restore LibA. © Copyright IBM Corporation 2011
IFS parallel save/restore support IBM i
• Single SAVBRM or RSTBRM command using multiple tape drives • Reduces save/restore window for large IFS objects: – Large network storage spaces – Domino databases
• You can specify up to a maximum of 32 tape devices in parallel. – Define minimum/maximum parallel resources using control group attributes.
© Copyright IBM Corporation 2011
F11: Additional columns to specify IBM i
© Copyright IBM Corporation 2011
Attributes: Specify parallel devices IBM i
© Copyright IBM Corporation 2011
System i Navigator Properties > highlight > Edit IBM i
© Copyright IBM Corporation 2011
Edit items IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i > select > Edit IBM i
© Copyright IBM Corporation 2011
Creating user exits
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Special operations for backup items: User exits IBM i
• Special operations: – *LOAD: • Eject current tape and load a new tape • Already covered in an earlier unit
– *SETASPGRP: • Set ASP group • Already covered in an earlier unit
– *EXIT: Perform user command processing: • Can be used to add logic to your control group • Can call a user written program • Can call IBM i commands Note: Do not run any native IBM i save or BRMS save commands within an exit. • Can interrupt normal BRMS pre-processing © Copyright IBM Corporation 2011
Normal processing and user exits (1 of 2) IBM i
• Normal processing in BRMS will cause: – – – –
Seq 10 - 30 is saved with one SAVLIB. Seq 40 will now save all links. Seq 50 – 70 is saved with one SAVLIB. Seq 80 – xx is now saving lists.
-Versus• In this example, normal processing is interrupted: – – – – – –
Seq 10 performs a SAVLIB. Seq 20 performs whatever exit calls it to do. Seq 30 performs a SAVLIB. Seq 40 performs whatever exit calls it to do. Seq 50 performs a SAVLIB. Seq 60 performs whatever exit calls it to do. © Copyright IBM Corporation 2011
Normal processing and user exits (2 of 2) IBM i
Recall that: Option 9 is used to end subsystems. Option 10 is used to hold job queues. • In the first example: – Subsystems are ended and job queues are held. – Seq 10 – 80 processes normally. – If parm = YES for option 9 and option 10, subsystems are restarted and job queues are released.
-Versus• In the second example: – Seq 10 will first do whatever exit calls to do; once this is completely done, continue processing. – Subsystems are ended and job queues are held. – Seq 20 – 70 processes normally. – If parm = YES for option 9 and option 10, subsystems are restarted and job queues are released. – Seq 80 when all previous processing is completed, perform whatever the last exit calls to do.
© Copyright IBM Corporation 2011
Correct use of *EXIT processing IBM i
Option 9 ends SBS QINTER and option 10 holds QBATCH JOBQ. 10 20 30 40 50
*EXIT RGZPFM PAYROLL/PAYMAST *EXIT SNDMSG MSG('File has been re-orged') TOUSR(SYSOPR) PAYROLL *EXIT SNDMSG MSG('Library has been saved') TOUSR(SYSOPR) *EXIT CALL PGM
1. Seq 10: *EXIT reorganizes physical file PAYROLL/PAYMAST. 2. QBATCH job queue is held. QINTER subsystem is ended. 3. Seq 20: *EXIT sends message letting operator know reorg has been completed. 4. Seq 30: PAYROLL library is saved. 5. Seq 40: *EXIT sends message letting operator know library has been saved. 6. Save history is processed and the database is updated. 7. QUSRBRM library - selected files - DB saved. 8. QINTER subsystem is restarted. QBATCH job queue is released. 9. Seq 50: *EXIT executes the CALL PGM. The rest of the control group is completely finished before the applications are started. © Copyright IBM Corporation 2011
Creating the user exit: F10 IBM i
Press F10 when the cursor is on a sequence number with *EXIT to create or edit the exit.
Use F4 to prompt the command. © Copyright IBM Corporation 2011
View user exits: F11 IBM i
Press F11 from the Edit Backup Control Group Entries display to view the *EXIT.
© Copyright IBM Corporation 2011
System i Navigator: Specify commands to run IBM i
© Copyright IBM Corporation 2011
Enter command to process IBM i
© Copyright IBM Corporation 2011
Properties: Command to run IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Click Add IBM i
© Copyright IBM Corporation 2011
Specify command to run IBM i
© Copyright IBM Corporation 2011
Control group processing order IBM i
• Processing before the save (saving what is called for in body of a backup control group) - Versus -
• Processing after the save (without IPL and *SAVSYS) • Processing after the save (with IPL) • Processing after the save (with *SAVSYS and no IPL)
© Copyright IBM Corporation 2011
Processing before the save IBM i
BRMS performs the following operations in the indicated order when you run a backup control group: 1. Process the first control group entry (seq 10) if it is an *EXIT; then: a. b. c. d. e. f. g. h.
Sign off interactive users if requested. Hold job queues if requested. End Lotus servers if requested. End TCP/IP servers if requested. Wait for end server wait time to expire if Lotus or TCP/IP servers ended. End subsystems if requested. Vary off Windows integrated servers if requested. Vary off hosted LPARs if requested.
2. Process the remaining sequence items (seq 20 and up).
© Copyright IBM Corporation 2011
Processing after the save (without IPL and without *SAVSYS) IBM i
BRMS performs the following operations in the indicated order after processing the backup control group when the entries do not include a *SAVSYS and when an IPL has not been requested: 1. Save the media information if requested. 2. Release job queues if requested and started in a previous seq #. 3. Start subsystems if requested and not started in a previous seq #. 4. Process the last control group entry if it is *EXIT. 5. Vary on Windows integrated servers if requested and subsystems are started. 6. Vary on hosted LPARs if requested and subsystems are started. 7. Start Lotus servers if requested and subsystems are started. 8. Start TCP/IP servers if requested and subsystems are started. 9. Run BRMS maintenance if requested. © Copyright IBM Corporation 2011
Processing after the save (with IPL) IBM i
BRMS performs the following operations in the indicated order after processing the backup control group items when an IPL has been requested: 1. Save the media information if requested. 2. Process the last control group entry if it is *EXIT. 3. Run BRMS maintenance if requested. 4. Perform the IPL if requested and subsystems to check not started.
© Copyright IBM Corporation 2011
Processing after the save (with *SAVSYS and no IPL) IBM i
BRMS performs the following operations in the indicated order after processing the backup control group items when the entries include a *SAVSYS and an IPL has not been requested: 1. Save the media information if requested. 2. Start the controlling subsystem (if not inhibited by subsystems to process). 3. Release job queues if requested. 4. Process the last control group entry if it is *EXIT. 5. Vary on Windows integrated servers if requested and subsystems are started. 6. Vary on hosted logical servers if requested and subsystems are started. 7. Start Lotus servers if requested and subsystems are started. 8. Start TCP/IP servers if requested and subsystems are started. 9. Run BRMS maintenance if requested. © Copyright IBM Corporation 2011
Using SWA with a single sync point
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Save-while-active IBM i
Save-while-active (SWA) allows you to back up your system with only a minimal outage for your users. Backup without SWA Midnight
6 a.m.
Users are off.
Users are allowed on again.
Backup with SWA Midnight 12:15 a.m.
Users are off.
Users are allowed on again. © Copyright IBM Corporation 2011
9 a.m.
Save finishes.
Planning for SWA IBM i
• Careful planning is required to prepare for an SWA project: – Is this a suitable environment? – How do you quiesce the application? – What objects and libraries need to be synchronized? – What is the best time to run the save? – How long does it take to get the checkpoint?
© Copyright IBM Corporation 2011
SWA: Library synchronization IBM i
• Library synchronization options available for SWA through BRMS: – *NO: Normal save – *LIB: Single library synchronization – *SYNCLIB: Multiple library synchronization (including *ALLUSR) – *SYSDFN: System defined synchronization point – *YES – DLO: Synchronization over all items in command: • IFS objects: Synchronize over all items or all items in link list
© Copyright IBM Corporation 2011
SWA library synchronization: Screen 1 IBM i
1. Add an *EXIT to specify MONSWABRM (Seq 20). 2. Group together libraries to synchronize (Seq 30 - 50). 3. Retain Object Detail value must be the same for all libraries to be synchronized.
1 3 2
© Copyright IBM Corporation 2011
MONSWABRM command IBM i
• Command used with *SYNCLIB option: – Starts a MONSWABRM job – Monitors a specified message queue: • Message queue is automatically created.
– System performs command defined within the MONSWABRM command after message queue receives confirmation of checkpoint. – Message queue is automatically deleted (once no longer needed by the system).
© Copyright IBM Corporation 2011
*EXIT using MONSWABRM IBM i
© Copyright IBM Corporation 2011
MONSWABRM using STRSBSBRM IBM i
© Copyright IBM Corporation 2011
Displaying the MONSWA *EXIT IBM i
• The advantage of STRSBSBRM over STRSBS is that you do not need to specify subsystems to start. • If the list of subsystems to end is changed, it only needs to be changed in one place (option 9 - Control work group). • Subsystems in the list of subsystems to end are restarted after the checkpoint processing is complete. © Copyright IBM Corporation 2011
SWA library synchronization: Screen 2 IBM i
4. Specify the type of sync to be done. 5. Specify the name of the message queue used in MONSWABRM.
4
© Copyright IBM Corporation 2011
5
Using SWA with multiple common synchronization points
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Multiple job common synchronization point IBM i
• New support for IBM i added at V6R1 • Support for SWA and synchronize • For both library and IFS objects • Single checkpoint to ensure library and IFS data saved in consistent state • Across multiple jobs (multiple control groups) Examples on the next set of pages
© Copyright IBM Corporation 2011
Enhancements to the MONSWABRM command IBM i
© Copyright IBM Corporation 2011
42
Master backup control group IBM i
© Copyright IBM Corporation 2011
43
First control group with multisync support IBM i
© Copyright IBM Corporation 2011
44
Second control group with multisync support IBM i
© Copyright IBM Corporation 2011
45
Checkpoint (1 of 2) IBM i
1. True or False: All of the data on a system can be saved using a parallel save operation.
2. True or False: Starting at V6R1 there is a new parameter on the create control group screen used to specify the type of parallel save to be performed on a specific entry in the control group.
3. The maximum number of tape devices that can be specified for a parallel save is _____. a. b. c. d.
16 32 64 *Nomax
© Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: All of the data on a system can be saved using a parallel save operation. The answer is False. 2. True or False: Starting at V6R1 there is a new parameter on the create control group screen used to specify the type of parallel save to be performed on a specific entry in the control group. The answer is True. 3. The maximum number of tape devices that can be specified for a parallel save is _____. a. 16 b. 32 c. 64 d. *Nomax The answer is 32. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: Any command supported on the command line can be used in an *EXIT operation.
5. True or False: Starting with V6R1, it is possible to establish a synchronization point across multiple libraries when performing a save while active within a backup control group.
6. True or False: Starting with V6R1, the monitor save while active BRM (MONSWABRM) command uses the synchronization id parameter to support multiple synchronization points. © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: Any command supported on the command line can be used in an *EXIT operation. The answer is False. 5. True or False: Starting with V6R1, it is possible to establish a synchronization point across multiple libraries when performing a save while active within a backup control group. The answer is True. 6. True or False: Starting with V6R1, the monitor save while active BRM (MONSWABRM) command uses the synchronization id parameter to support multiple synchronization points. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain the support available to perform a parallel save • Explain the support available for saving private authorities • Explain the steps to create user exits • Explain the steps to set up save-while-active (SWA) for a single sync operation • Explain the steps to set up SWA for a multisync operation • Detail these steps using 5250 emulation, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Performing a backup and full system backup
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List and describe the purpose of the default backup control groups provided by BRMS • Explain the standard parameters for the Start Backup BRM command • Explain the steps to perform an attended full system backup • Explain the steps to perform an unattended full system backup using the console monitor • Explain the steps to perform an unattended full system backup using the controlling subsystem
© Copyright IBM Corporation 2011
Default backup control groups
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Full system backup IBM i
A full-system backup should be run as the first step after setting up BRMS.
© Copyright IBM Corporation 2011
System group: Default IBM i
New in V7R1
© Copyright IBM Corporation 2011
Backup group: Default IBM i
© Copyright IBM Corporation 2011
Running a backup
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Using STRBKUBRM command (1 of 2) IBM i
© Copyright IBM Corporation 2011
Using STRBKUBRM command (2 of 2) IBM i
© Copyright IBM Corporation 2011
Saving with System i Navigator IBM i
© Copyright IBM Corporation 2011
System i Navigator: Backup overrides IBM i
© Copyright IBM Corporation 2011
Saving with Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Backup overrides IBM i
© Copyright IBM Corporation 2011
Options available to perform *SYSTEM backup IBM i
• Option 1: Perform attended backup. – Does not require console monitor or *CTLSBS – Must be run from system console – Allows the system operator to issue either: – STRBKUBRM CTLGRP(*SYSTEM) = run immediately – STRBKUBRM CTLGRP(*SYSTEM) SCDTIME(hhmmss) = run some time later that day
• Option 2: Perform unattended backup using console monitor. – Requires that the console monitor be running at the system console – Must leave the console signed on (to run console monitor) = security concern – Allows any user in your network to issue the command: – STRBKUBRM CTLGRP(*SYSTEM) SBMJOB(*CONSOLE)
• Option 3: Perform unattended backup using *CTLSBS. – Requires the parameter to allow *CTLSBS be set in system policy – Allows any user in your network to issue the command: – STRBKUBRM CTLGRP(*SYSTEM) SBMJOB(*CTLSBS)
Notes: Details of each on the next couple of pages. Each option requires a dedicated system. © Copyright IBM Corporation 2011
Performing an attended *SYSTEM backup
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Attended *SYSTEM backup IBM i
• Must be done at the console • Requires system operator be present during the entire process
© Copyright IBM Corporation 2011
Performing an unattended *SYSTEM backup using the console monitor
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Starting console monitoring IBM i
• Starting console monitoring from the console
From Backup menu
From Main BRMS menu
© Copyright IBM Corporation 2011
Using a custom profile IBM i
© Copyright IBM Corporation 2011
Console monitoring screens IBM i
• The console in console-monitoring mode: Console Monitor Press F12 to cancel the monitor operation. Press F9 to access command line. Control must return to this display for BRMS activity to be monitored.
Password is needed to exit console monitoring or get Command line access: Press F12 to cancel the access command line function. Type choice, press Enter. Current user ID . . . . . . . . . CONSOLE Enter password to verify. . . . . __________ Current password
................................................................. : Command : : : : ===> _____________________________________________________ : F4=Prompt F9=Retrieve F12=Cancel : : : :...............................................................: © Copyright IBM Corporation 2011
:
Performing unattended *SYSTEM backup IBM i
© Copyright IBM Corporation 2011
Performing an unattended *SYSTEM backup using *CTLSBS
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
*SYSTEM using *CTLSBS IBM i
© Copyright IBM Corporation 2011
System policy change IBM i
These parameters must be changed in the system policy to submit a restricted full system save to the controlling subsystem.
© Copyright IBM Corporation 2011
Saving with System i Navigator (1 of 2) IBM i
© Copyright IBM Corporation 2011
Saving with System i Navigator (2 of 2) IBM i
© Copyright IBM Corporation 2011
Saving with Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Override window IBM i
© Copyright IBM Corporation 2011
Saving POWER i information IBM i
• Does not require restricted state • Is a subset of system data and objects • Is not a replacement for the SAVSYS command; instead is used in conjunction with the SAVSYS command • Is not to be used for system upgrades or migrations
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. The _________ command is used to start backup processing in BRMS. a. DSPLOGBRM b. WRKCTLGBRM c. STRBKUBRM d. STRRCYBRM
2. True or False: After the backup of a backup control group has failed, it is possible to restart that failed backup from a point specified by the user. 3. True or False: The Console Monitor is always required when doing a full system backup. © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. The _________ command is used to start backup processing in BRMS. a. DSPLOGBRM b. WRKCTLGBRM c. STRBKUBRM d. STRRCYBRM The answer is STRBKUBRM.
2. True or False: After the backup of a backup control group has failed, it is possible to restart that failed backup from a point specified by the user. The answer is True. 3. True or False: The Console Monitor is always required when doing a full system backup. The answer is False. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. Which of the following backup control groups are not automatically created on a system? a. b. c. d.
*SYSTEM *SYSGRP *BKUGRP *SAVSYSINF
5. True or False: A full system backup can be submitted to run in batch. 6. True or False: The *SAVSYSINF backup control group is used to perform a full system backup.
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. Which of the following backup control groups are not automatically created on a system? a. *SYSTEM b. *SYSGRP c. *BKUGRP d. *SAVSYSINF The answer is *SAVSYSINF.
5. True or False: A full system backup can be submitted to run in batch. The answer is False. 6. True or False: The *SAVSYSINF backup control group is used to perform a full system backup. The answer is False.
© Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List and describe the purpose of the default backup control groups provided by BRMS • Explain the standard parameters for the Start Backup BRM command • Explain the steps to perform an attended full system backup • Explain the steps to perform an unattended full system backup using the console monitor • Explain the steps to perform an unattended full system backup using the controlling subsystem
© Copyright IBM Corporation 2011
Other backup topics
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List the backup commands provided by BRMS • Describe the additional parameters available with the BRMS backup commands • Explain some of the performance considerations when using BRMS to save your data • Explain the purpose of the QUSRBRM library • List and explain the commands used to view the BRMS backup history • Describe the steps to run online Domino backups
© Copyright IBM Corporation 2011
Other backup commands
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Advantages of other backup commands IBM i
• Advantages of BRMS commands over native save commands: – – – –
Device parameter allows you to specify *MDCLS for device. Media policy parameter allows for better control of media selection. Parallel device parameter allows you to specify parallel resources. Retain object detail parameter allows for better logging of save activity. • Automatic logging of library-level save history • Easy options for retaining object level detail in save history
– More data retention options – Control group parameter is really just a name associated with all libraries, objects, and so forth saved using this command. Control group does not need to exist. – Save type parameter allows you to specify either full or incremental backups. – Participation in BRMS media movement function – Automatic save file selection and management if saving to a save file © Copyright IBM Corporation 2011
Native SAVLIB commands IBM i
© Copyright IBM Corporation 2011
SAVLIBBRM command IBM i
© Copyright IBM Corporation 2011
Other BRMS backup commands IBM i
SAVDLOBRM
Save DLO
SAVFLRLBRM
Save Folder List
SAVLIBBRM
Save Library
SAVOBJBRM
Save Object
SAVOBJLBRM
Save Object List
SAVSAVFBRM
Save BRMS Save Files
SAVSYSBRM
Save System
SAVMEDIBRM
Save BRMS Recovery Data
SAVBRM
Save IFS Objects
Be aware of the differences between SAVxxxBRM commands and saves within a control group. © Copyright IBM Corporation 2011
Other miscellaneous backup topics
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Tapes to be sent outside your company IBM i
If you do not want the objects/volumes included in a BRMSlead recovery (since the tapes might not be available for recall): – Use the native SAVLIB command – Write on a non-enrolled BRMS tape – New in V7R1: • When running non-BRMS saves using non-BRMS volumes on a system with BRMS, the job will not end if a BRMS volume is loaded. • BRMS will post a BRM1730 message, giving the user the option to load another non-BRMS volume
Versus
If you do want BRMS to track the tape and potentially be used for a recovery: – Write on a BRMS-enrolled tape – This information included in the recovery report © Copyright IBM Corporation 2011
Performance (1 of 2) IBM i
• Using BRMS: – Takes longer than before (more is done) – Potentially uses more tapes (recovery data is saved) – Provides relief through archiving and incremental backups – Takes more space on the system: • Specifying amount of time to keep history of backups: – Longer retention of history information requires more space. – Retention specified in the maintenance job – Purged during maintenance job Backup without
Backup using BRMS Archivable objects
BRMS Archivable objects
Current objects
© Copyright IBM Corporation 2011
S a v e
Current objects
D u r a t i o n
BRM activity
Performance (2 of 2) IBM i
• Considerations: – Retain object detail: • Object level takes longer to process and uses more DASD.
– Save recovery data: • Object level takes longer to save and uses more tape.
– Retention of history information: • Longer retention increases the size of the database. • Using *REUSE for save history retention
– Overlap processing is interrupted by: • *EXIT • Using SWA • Structure of object lists
© Copyright IBM Corporation 2011
Saving the QUSRBRM library IBM i
• The QUSRBRM library contains: – – – – –
Policies Control groups Control lists Tape inventory database Other media management information
• The BRMS tape inventory database and some other items are saved as part of the media information. • Policies, control groups, and lists are not saved as part of the media information. • QUSRBRM should be saved when new items are created or existing items are changed. – Save weekly or daily depending on how much you are changing your BRMS environment.
• QUSRBRM is automatically saved as part of an *ALLUSR save. © Copyright IBM Corporation 2011
Working with BRMS backup analysis IBM i
• GO BRMBKUANL or Option 6 from the Backup Planning menu: – Retrieve Disk Space Information: • Stores information about library disk space utilization
– Print Library Analysis (run after RTVDSKINF): • Reports on library size, estimated backup time, and space on volume
– Display Backup Analysis: • Displays times/sizes of full and incremental backups and details about libraries that have been backed up
– Display ASP Information: • Detailed information on number of ASPs and utilization
© Copyright IBM Corporation 2011
Display Backup Plan: DSPBKUBRM IBM i
© Copyright IBM Corporation 2011
Working with BRMS backup history
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Commands to display save history IBM i
• WRKMEDIBRM: Library level—drill down to objects • WRKOBJBRM: Object level – Requires retain object detail (*OBJ, *MBR, or *YES)
• WRKFLRBRM: Folder level—drill down to documents – Requires retain object detail (*YES) to drill down into subfolders – Requires retain object detail (*OBJ, *MBR, or *YES)
• WRKSPLFBRM: Spool files only • WRKLNKBRM: Directories—drill down to subdirectories – Requires retain object detail (*YES)
• WRKSAVFBRM: Save files used by BRMS
© Copyright IBM Corporation 2011
Save history: WRKMEDIBRM IBM i
• Selection-based parameters
• Can be used to: – Display save information – Restore libraries – Drill down to select object detail to: • Review or restore objects • Review or restore members – Navigate to the Work with Media display
© Copyright IBM Corporation 2011
Save history: WRKOBJBRM IBM i
• Create a report or display of saved objects • Selection is based on object names, data ranges, and so forth. • Can be used to: – Display save information – Restore objects
© Copyright IBM Corporation 2011
Restore objects: WRKOBJBRM IBM i
• Option 7 starts the restore with the Select Recovery Items screen. • Use option 9 to view individual members. • Select Recovery Items lists all objects specified for recovery.
© Copyright IBM Corporation 2011
Confirm recovery screen IBM i
• Select Recovery Items lists all objects specified for recovery. • From here, you can: – – – –
Remove an item from the list of selected recovery items Display more details about an item Continue with the recovery of items Drill down to member level detail with option 9: • F14: Submit to batch • F16: Select all items • F9: Recovery defaults
© Copyright IBM Corporation 2011
Online progress screen IBM i
© Copyright IBM Corporation 2011
Save history: WRKFLRBRM IBM i
• Create a report or display of saved objects • Selection is based on folder names, data ranges, and so forth. • You can: – Display save information – Restore folders – Drill down for folder detail to: • Review or restore documents from selected folder saves
© Copyright IBM Corporation 2011
Save history: WRKSAVFBRM (1 of 2) IBM i
• Display information about the save file. • Expire save files within the BRMS history. • Use option 9 to work with the saved objects.
© Copyright IBM Corporation 2011
Save history: WRKSAVFBRM (2 of 2) IBM i
• Display information about the saved objects. • Restore specific objects. • Continue to drill down and work with members.
© Copyright IBM Corporation 2011
Save history: WRKSPLFBRM IBM i
• Preserves spooled file attributes • Displays more information about the spool file • Restores spool files from this display
© Copyright IBM Corporation 2011
Save history: WRKLNKBRM IBM i
• Begin searching for IFS objects from this screen. • Use option 9 to work with directory information, and continue to use option 9 through the subdirectories until the object is located. • If the specific path is known, use the Prompt (F4).
© Copyright IBM Corporation 2011
Online Domino backup
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Before online Domino IBM i
ENDDOMSVR or
SAVBRM or *LNK List or SAV
ENDDOMSVR
To back up mail folders, it was necessary to: • End the server, backup, and restart or • Replicate the server, end and save the replicant, restart, and resync © Copyright IBM Corporation 2011
Online Domino backup currently IBM i
STRBKUBRM QLTSDOM00
STRBKUBRM QLTSDOM01
and
STRBKUBRM QLTSSVR
and
• BRMS ease of use • Better than SWA—no sync points • Is included in disaster recovery reports (STRRCYBRM) • Simplifies RESTORE of user data © Copyright IBM Corporation 2011
BRMS Domino objects IBM i
• Created during BRMS initialization—INZBRM *DATA • Created/rebuilt during BRMS maintenance to handle daily changes to Domino servers • Control groups: – QLTSSVR – QLTSDOMxx: • Depends upon number of Domino servers
– QLTSQPLxx: • Depends upon number of stand-alone Quick Place servers
– Lists: • • • •
QLNKOMT QLNKOMTLTS QLNKOMTONL QLTSOMTONL
– Special values in control group under Backup Items: • *LNKOMTLTS • *LNKOMTONL • *LTSOMTONL
– Media policy: • QLTSSVR © Copyright IBM Corporation 2011
How BRMS Domino online full backups work IBM i
BRMS can save to a save file, TSM server, or a tape device. 4. Change file packaged with SAVDOMBRM database backup.
1. Changes come from users.
S T O P
4
2
Temp
5 MyAppl.nsf MyAppl.nsf
3
2. SAVDOMBRM starts. Temp file 5. Stored changes holds changes applied to to database. database.
© Copyright IBM Corporation 2011
Backup media
3. Database copied to backup media.
BRMS performance with Domino IBM i
• Domino databases are backed up in groups. • Default is now 50. • Range is 1-120. • Higher number means: – Faster backup: More packaged together means less overhead – Longer restores of a single database: • Larger impact on system: Pumping of more data
• NOTES.INI setting: – Domino:
SAVDOMBRM_FILES_IN_GROUP=n
– QuickPlace:
SAVLQPBRM_FILES_IN_GROUP=n
© Copyright IBM Corporation 2011
Online Domino IBM i
Edit Backup Control Group Entries
KITKAT
Group . . . . . . . . . . : QLTSDOM00 Default activity . . . . . *BKUPCY Text . . . . . . . . . . . DOMINO01 Type information, press Enter.
Backup Seq Items 10 *EXIT 20 *EXIT 30 *EXIT
Exit command
QNOTES/SAVDOMBRM SERVER('DOMINO01') CTLGRP(QLTSDOM
User Exit Maintenance
KITKAT
Type command, press Enter. Sequence number . . . . . . . : 20 Where used . . . . . . . . . : *EXIT Weekly activity . . . . . . . : IIIIIII SMTWTFS Command . . . . . . . . . . . . QNOTES/SAVDOMBRM SERVER('DOMINO01') CTLGRP(Q LTSDOM00)
© Copyright IBM Corporation 2011
How BRMS restore works IBM i
RSTBRM
2. Change file restored. 3
Temp 1
MyAppl.nsf
3. Stored changes applied to database and database brought online.
© Copyright IBM Corporation 2011
2
Backup media
1. Database restored from backup media.
Domino restore using WRKLNKBRM IBM i Work with Objects 08/22/02 10:17:48 Directory . . . . : /dev/UDFSDISK/QDEFAULT.UDFS/notes Saved date/time . : 08/14/02 20:31:52 Type options, press Enter. 4=Remove 5=Display 7=Restore
Opt Object 7 udfsdisk
Volume Serial 571ACY
Size 73728
Restore Object (RST) Type choices, press Enter. Device . . . . . . . . . . . . . > '/QSYS.LIB/TAPMLB06.DEVD' Objects: Name . . . . . . . . . . . . . > '''/dev/UDFSDISK/QDEFAULT.UDFS/notes/udfsdisk''' Include or omit . . . . . . . > *INCLUDE *INCLUDE, *OMIT New object name . . . . . . . *SAME
Name . . . . . . . . . . . . . > '/QSYS.LIB' Include or omit . . . . . . . > *OMIT New object name . . . . . . . *SAME
*INCLUDE, *OMIT
• No need to enter complex DEVD • Ease of changing path on restore © Copyright IBM Corporation 2011
Restore Domino using WRKLNKBRM IBM i
Work with Objects KITKAT 05/26/06 14:27:54 Directory . . . . : /dev/PRIMARY Saved date/time . : 01/19/06 09:58:17 Type options, press Enter. 4=Remove 5=Display 7=Restore
Opt Object 7 QDEFAULT.UDFS
Volume Serial 741AGK
Size 24576
Restore Object (RST) Type choices, press Enter. Objects: Name . . . . . . . . . . . . . > '''/dev/PRIMARY/QDEFAULT.UDFS''' Include or omit . . . . . . . > *INCLUDE New object name . . . . . . . *SAME
*INCLUDE, *OMIT
Name . . . . . . . . . . . . . > '/QSYS.LIB' Include or omit . . . . . . . > *OMIT New object name . . . . . . . *SAME
*INCLUDE, *OMIT
© Copyright IBM Corporation 2011
Domino restore using the RSTBRM command IBM i
© Copyright IBM Corporation 2011
Restoring a Domino server IBM i
• Domino server must exist before restoring Domino databases. • Restore system first: – Domino licensed code – QNOTES user profile – Subsystem description – That is: • • • • •
QNOTES.LIB QUSRNOTES.LIB /QIBM/ProdData /QIBM/UserData /Domino/data © Copyright IBM Corporation 2011
Incremental online backup IBM i
• Backs up Domino transaction logs • Requires use of archival transaction logging • Supports point-in-time recovery
© Copyright IBM Corporation 2011
How incremental backup works IBM i
BRMS Domino server task archives (copies) log extent (.TXN) files to a subdirectory as they become full.
BRMS Domino server task
NSF database
Active logs
© Copyright IBM Corporation 2011
Archived logs
Incremental backup IBM i
When backup runs, archived log extents are copied and then deleted, followed by extents in log directory, including the active log.
SAVDOMBRM
NSF database
Active logs
Archived logs
© Copyright IBM Corporation 2011
Backup media
Transaction logging (1 of 2) IBM i
1. When a database change occurs, it is written to the log immediately. 2. Writes to the NSF are done periodically when CPU time is available. 3. If a crash occurs, the changes in the log are applied or rolled back.
Domino server task
NSF database
Active log (.TXN)
© Copyright IBM Corporation 2011
Transaction logging (2 of 2) IBM i
• Each database being logged: – Is assigned a database instance ID (DBIID) – It is used to match transactions to databases.
• During the recovery process, DBIID is used to locate the database. • DBIID changes when: – You enable or re-enable transaction logging on a database – It is compacted with any options – Fixup is forced to run (-J option) – Database is moved to another server and then back – Refer to TECHNOTE 186175
• If DBIID changes and incremental backup, a new full backup of the database is needed! © Copyright IBM Corporation 2011
Considerations IBM i
• Domino servers still need to be downed for full backups of code libraries and Domino configuration data. • Incremental backup requires that the database is configured for transaction logging. • If no prior full backup exists, incremental backup switches to full backup automatically. • Incremental types of *CUML or *INCR both result in incremental backups. • Limit of 98 incremental backups between full backups. Once a week is recommended for full backups. © Copyright IBM Corporation 2011
Domino 8.5 DAOS support
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
BRMS and Domino 8.5 DAOS (1 of 2) IBM i
• Before Domino 8.5.0 and Domino Attachment and Object Service (DAOS): – Document attachments were part of the .nsf file.
• With Domino 8.5.0 and DAOS: – Document attachments are pulled out of the .nsf file as .nlo objects.
• With Domino 8.5.1 and PTFs SI34916 (V5R4M0) or SI34918 (V6R1M0) or later: – BRMS will auto-detect the presence of the NLO objects for the Domino online backups (no BRMS changes needed). – A full save will also now include all the NLO objects. – An incremental save will also now include only the new and changed NLO objects since the last full save. © Copyright IBM Corporation 2011
BRMS and Domino 8.5 DAOS (2 of 2) IBM i
• Careful with the size of the attachment that will be externalized! – Otherwise there will be many .nlo objects – Lots of extra IFS objects mean slow backups. – The default size in domino DAOS for attachments is 4096. 64,000 is recommended.
• References: – DAOS Quick Start Guide • http://www.lotus.com/ldd/dominowiki.nsf/dx/daos-quick-start-guide
– DAOS Best Practices • http://www.lotus.com/ldd/dominowiki.nsf/dx/daos-best-practices
– DAOS Estimator • http://www.ibm.com/support/docview.wss?rs=463&uid=swg24021920
– BRMS Reference • http://www-03.ibm.com/systems/i/support/brms/domdaos.html
© Copyright IBM Corporation 2011
Online Lotus Web IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. True or False: The parameters are identical on the SAVLIB and the SAVLIBBRM commands.
2. True or False: Using the *MEDCLS value for the device parameter adds flexibility to the save commands provided by BRMS.
3. True or False: Saving an individual library with the SAVLIB command provides a parameter that allows you to associate it with a backup control group.
© Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: The parameters are identical on the SAVLIB and the SAVLIBBRM commands. The answer is False.
2. True or False: Using the *MEDCLS value for the device parameter adds flexibility to the save commands provided by BRMS. The answer is True.
3. True or False: Saving an individual library with the SAVLIB command provides a parameter that allows you to associate it with a backup control group. The answer is True. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: The following are objects stored in the QUSRBRM library. • • • •
Policies Control groups Control lists Tape inventory database
5. True or False: The work with BRMS history commands provide an option to restore the saved data being displayed. 6. The _________ command will display the spool save history. a. b. c. d.
WRKOBJBRM WRKFLRBRM WRKSPLFBRM WRKLNKBRM © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: The following are objects stored in the QUSRBRM library. • Policies • Control groups • Control lists • Tape inventory database The answer is True.
5. True or False: The work with BRMS history commands provide an option to restore the saved data being displayed. The answer is True. 6. The _________ command will display the spool save history. a. WRKOBJBRM b. WRKFLRBRM c. WRKSPLFBRM d. WRKLNKBRM The answer is WRKSPLFBRM. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List the backup commands provided by BRMS • Describe the additional parameters available with the BRMS backup commands • Explain some of the performance considerations when using BRMS to save your data • Explain the purpose of the QUSRBRM library • List and explain the commands used to view the BRMS backup history • Describe the steps to run online Domino backups
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Creating a backup control group – Optional: If you will be using a GUI, perform the exercise for the GUI you will be using.
• Creating a backup control group using System i Navigator • Creating a backup control group using Systems Director Navigator for i
– In this exercise, you create a backup control group: • Specify libraries to save • Create and specify lists to save • Create and specify an *EXIT © Copyright IBM Corporation 2011
Lab aid IBM i STRBKUBRM Control group Schedule time Submit to batch Starting sequence Append to media Job description Job queue Activity - full or incr Retention type Retain media
Retrieve policy Retrieve device Retrieve confirm Retrieve authorization End of tape option Allow object Difference Object retention
WRKMLBSTS - Media library status
Recovery policy Recovery device End of tape option Allow object difference Restore to library Restore to folder
Move policy Home location--media TO Use containers Verify moves Storage location-duration
WRKMLMBRM - Media in the library WRKMEDBRM - Media in DB (sortable) WRKMEDiBRM - Media information (sortable) DSPTAPSTS - Tape drive status WRKMLBBRM - Library status WRKCFGSTS *DEV TAP* CHKTAP
WRKMEDBRM *ACT/*EXP Volume ID Location--media Container Media class System name File/control group File/control group Type Text Sequence
WRKTAPCTG © Copyright IBM Corporation 2011
Migration policy Migration Item Type Attribute Test Value Objects
Storage location TAPMLBxx Contact name and number Retrieval time Volumes expire Media slotting Container threshold
Tape devices WRKDEVBRM Read/write Densities Device location Tape mount delay Auto enroll media Shared device Optimum block
Container class Capacity Media class Different Expiration Dates Auto Unpack
Media class Density Print labels Shared media Media Thresholds WRKMEDiBRM Library Volume ASP Control group Save type Save dates Save status Sequence First/last System name
Storage locations
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how and where in the BRMS process storage locations are used • List the steps to create a storage location • Explain each of the parameters and their use when creating a storage location
© Copyright IBM Corporation 2011
Storage location IBM i
• Any physical location where tapes can be kept: – Could be anywhere
• Used in multiple places within the BRMS setup: – System policy: • Sets the default to be used unless it is specified at a lower level
– Move policy: • Where to move media once it has been used • Where to return media after rotation
– Media policy: • Where to locate media to use for BRMS operations
© Copyright IBM Corporation 2011
Where does the storage location fit in? IBM i
Control group attributes
Media policy
Move policy
Media class
© Copyright IBM Corporation 2011
Storage location
Creating a storage location using 5250 emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Storage locations IBM i
• Manually created or updated with the WRKLOCBRM command • Place where media and containers are kept or stored • As granular as needed for effective operations • Storage location details include: – – – – –
Address Contact name and phone Retrieval time Capacity limitations Notification controls
• Slot management within off-site storage locations optional • Default storage locations created: – *HOME: On-site media inventory – TAPMLBxx : • Created automatically if there is a tape library on the system.
– VAULT: Off-site storage location © Copyright IBM Corporation 2011
Work with locations (WRKLOCBRM) IBM i
© Copyright IBM Corporation 2011
Allow volumes to expire parameter IBM i
• Specifies whether volumes are eligible for reuse at this location • The recommendations are: – On-site locations are set to *YES, and – Off-site locations are set to *NO Vault
Data center
No tape drive Small number of volumes (active) Retrieval time 30-60 minutes
Has tape drives Large number of volumes (mostly expired) Retrieval time 0 minutes
Allow vols to expire (*NO)
• Allow vols to expire (*YES)
• Consider the following scenario for stand-alone drives: – Specify a save to a tape; media policy specifies location of *ANY. • Tapes can be expired in an off-site location. • BRMS views them as available.
– User can insert any expired tape which meets the criteria specified in the media policy. • Otherwise BRMS sends a message with a list of candidate volumes. © Copyright IBM Corporation 2011
Media slotting parameter IBM i
• Media or containers can be tracked by individual slot numbers at storage locations. • This is an optional parameter. – Typically used for off-site storage locations
• The setting for the default storage locations are: – *HOME
Media slotting = *NO
– VAULT
Media slotting = *YES
• Slot numbers automatically assigned for tapes: – Beginning with lowest available slot number – Once a slot number becomes available, it is the next one used.
© Copyright IBM Corporation 2011
Add location (1 of 2) IBM i
© Copyright IBM Corporation 2011
Add location (2 of 2) IBM i
© Copyright IBM Corporation 2011
Creating a storage location using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
System i Navigator: Move Policies > Manage Locations IBM i
© Copyright IBM Corporation 2011
Manage Locations: New IBM i
© Copyright IBM Corporation 2011
New Storage Location: Advanced IBM i
© Copyright IBM Corporation 2011
Creating a storage location using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Systems Director Navigator for i: Move Policies > Manage Locations IBM i
© Copyright IBM Corporation 2011
Manage Locations: New IBM i
© Copyright IBM Corporation 2011
New Storage Location IBM i
© Copyright IBM Corporation 2011
Storage location: Advanced button IBM i
© Copyright IBM Corporation 2011
Storage location recommendations IBM i
• During initial setup or during process improvements: – Create a new location called LOST. • Set Allow media to expire to *NO.
– Change the system policy. • Set the home location to LOST.
– Avoid using the default location of *HOME in the system policy. • *HOME is okay; you just have better indicators when using LOST.
– Check your location analysis report. • QP1A2SL • Reconcile any discrepancies.
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. True or False: At BRMS installation time, a storage location is automatically created for any tape libraries that are known by the OS.
2. Which command will display a list of the storage locations defined on your system? a. b. c. d.
WRKCTLGBRM WRKDEVBRM WRKLOCBRM WRKMEDBRM
3. It is recommended that for ________ locations, the parameter for allow volumes to expire should be set to *NO. a. b. c. d.
Tape library Tape drive Onsite Offsite © Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. True or False: At BRMS installation time, a storage location is automatically created for any tape libraries that are known by the OS. The answer is True.
2. Which command will display a list of the storage locations defined on your system? a. WRKCTLGBRM b. WRKDEVBRM c. WRKLOCBRM d. WRKMEDBRM The answer is WRKLOCBRM.
3. It is recommended that for ________ locations, the parameter for allow volumes to expire should be set to *NO. a. Tape library b. Tape drive c. Onsite d. Offsite The answer is Offsite. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how and where in the BRMS process storage locations are used • List the steps to create a storage location • Explain each of the parameters and their use when creating a storage location
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Creating a storage location – Part A: Creating a storage location using emulation
• Optional: If you will be using a GUI, perform the exercise for the GUI you will be using: – Part B: Creating a storage location using System i Navigator – Part C: Creating a storage location using Systems Director Navigator for i
• In this exercise, you create a storage location.
© Copyright IBM Corporation 2011
Containers
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain what a container class is and how it is used • Explain how to fill in the parameters when creating a container class • Explain what a container is and how it is used • Explain how to fill in the parameters when creating a container
© Copyright IBM Corporation 2011
Container classes and container IBM i
Use of containers is optional. Container class • Defines the physical characteristics of containers that are used to store and transport physical media • Container class indicates: – Capacity – Media classes that can be accommodated – Control information
• Assigned to a container during container creation Containers • User defined: – Must be portable – Examples: Case, box, locked bag
• Media assigned to a container during movement © Copyright IBM Corporation 2011
Container class
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Container management menu IBM i
© Copyright IBM Corporation 2011
Container classes example IBM i
Containers CASE01 ) CASE02 ) CASE03 ) : ) CASEnn )
Container class
Media classes
LTOCASE
ULTRIUM1 ULTRIUM2 LTO3581
© Copyright IBM Corporation 2011
Number of volumes 30 50 100
Add Container Class screen IBM i
© Copyright IBM Corporation 2011
Containers
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Containers overview IBM i
• A container is a case, box, locked bag, or magazine for holding tapes during media movement from creation through expiration. • Containers are optionally used as determined in the move policy. • User enrolls container by class and unique ID. • Container inventory: – Identifies, locates, shows content and status – Can manually manipulate containers – In a network environment, can be shared among systems
• Moving a container also moves its contents. • Container reuse is determined by move policy, status, and container characteristics. © Copyright IBM Corporation 2011
Container management menu IBM i
• View status (open/closed) • Assigned container class • Volume count—view media assigned to the container • Storage location • Move date—date moved to this location • Expiration date—expiration of the media with the longest retention
© Copyright IBM Corporation 2011
Adding a container IBM i
• Specify unique container ID • Associate a container class: – Previously defined – Defines physical characteristics of container
• Container location: – Must be same location as media in order for BRMS to put tape in container
© Copyright IBM Corporation 2011
Container properties IBM i
• Media is assigned to the container by media movement. – Must meet criteria defined by container and container class
• The container status can be changed to closed prematurely to prevent BRMS from moving volumes into it. • The expiration date of the container is that of the media volume which expires last. • Containers must be in the same location as the tapes for BRMS to put tapes into the container. • The container can be moved regardless of its status.
© Copyright IBM Corporation 2011
Change Container screen IBM i
• Some characteristics of the container can be changed. • Slotting pertains to containers in the same manner as media. – Slotting is performed at the location level. – Slot number can be changed.
© Copyright IBM Corporation 2011
Use of containers IBM i
• Use of containers is optional. • It provides an additional layer of control over media. • It is a logical association of tapes as well as a physical association of tapes to a physical container. – Association is from creation to expiration.
• Media is assigned to a container during movement. • If a container is moved, its contents are also moved.
© Copyright IBM Corporation 2011
System i Navigator: Manage Containers IBM i
© Copyright IBM Corporation 2011
System i Navigator: Manage Container Pools IBM i
© Copyright IBM Corporation 2011
System i Navigator: Add a container IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Manage Containers IBM i
Click the arrow beside Move Policies for containers selection. © Copyright IBM Corporation 2011
Systems Director Navigator for i: Manage Container Pools IBM i
© Copyright IBM Corporation 2011
Manage Container Pools: New IBM i
© Copyright IBM Corporation 2011
New Container Pool IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Manage Containers IBM i
© Copyright IBM Corporation 2011
New Container IBM i
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. Which of the following is optional in BRMS? a. b. c. d.
Media class Media policy Storage location Containers
2. True or False: Container class defines the physical characteristics of the containers used to store and transport physical media. 3. True or False: By default, one container per tape library is created on the system.
© Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. Which of the following is optional in BRMS? a. Media class b. Media policy c. Storage location d. Containers The answer is containers.
2. True or False: Container class defines the physical characteristics of the containers used to store and transport physical media. The answer is True. 3. True or False: By default, one container per tape library is created on the system. The answer is False. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain what a container class is and how it is used • Explain how to fill in the parameters when creating a container class • Explain what a container is and how it is used • Explain how to fill in the parameters when creating a container
© Copyright IBM Corporation 2011
Move management
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how the move policy fits in with BRMS • Explain the function served by a move policy • Detail the steps required to create a move policy • Explain each parameter available when creating a move policy • Explain the function served by move calendars • Detail the steps required to use a move calendar within a move policy • Explain the media movement process in BRMS
© Copyright IBM Corporation 2011
Where does the move policy fit in? IBM i
Control group attributes
Media policy
Move policy
Media class
© Copyright IBM Corporation 2011
Storage location
Move policy IBM i
• An itinerary for tape and container movement: – It is a sequence of locations and the duration at each location.
• As many move policies as needed can be defined. • Each has a user assigned name. • Specifies the home location: – Location media returns after all sequences in move policy. – Change default home location from *SYSPCY to a more meaningful location. – Special value of *ORIGIN tells the DB to return tape to its starting location at the end of the move cycle.
• Indicates if a container is to be used • Specifies if move requires verification • Default policy of OFFSITE created • Can be assigned to a volume using media policy during a save or later with CHGMEDBRM
© Copyright IBM Corporation 2011
Working with move policy
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Move management IBM i
Creating and using move policies Media movement can be performed in two ways: 1 - Automatically using move policies 2 - Manually using move policies with option 8 from the WRKMEDBRM screen Move commands
WRKPCYBRM: Create, change, delete, display move policy MOVMEDBRM: Move media VFYMOVBRM: Verify media to be moved PRTMOVBRM: Print media movement report WRKMEDBRM: Option 8 for manual move © Copyright IBM Corporation 2011
Work with move policies IBM i
WRKPCYBRM *MOV
© Copyright IBM Corporation 2011
Create Move Policy IBM i
© Copyright IBM Corporation 2011
Working with move management
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Using move policies (1 of 3) IBM i
1. Create the move policy as shown previously. 2. Specify the move policy in the media policy using the WRKPCYBRM *MED command.
3. Save a control group that specifies this media policy. © Copyright IBM Corporation 2011
Using move policies (2 of 3) IBM i
4. Issue the MOVMEDBRM command. – Fill in parameters to specify which volumes need to be moved: • •
Compares current location and expected location MOVMEDBRM will list any volume that is not in its correct location, as per the move policy, in the movement report.
– Creates the volume movement report for the current time period – Optionally run during BRMS maintenance – For Verify move parameter: •
Verify = *NO updates the media inventory and the move is complete
•
Verify = *YES continues with step five
© Copyright IBM Corporation 2011
Using move policies (3 of 3) IBM i
5. VFYMOVBRM command (optional) – It allows the operator to verify whether this move occurs. • • •
Use this command if the move policy has Verify = *YES. A volume only shows on this screen after MOVMEDBRM has been run. The volume location in the database is changed only after the verify is confirmed.
© Copyright IBM Corporation 2011
Print Media Movement (1 of 2) IBM i
• PRTMOVBRM prints the media movement report for a specific time period. Type *ALL includes all volumes that have ever been moved. *NEXT prints a report for the next projected moves. - Should specify a date range that includes a date in the future
*NOTVFY includes only media waiting to be verified. - Does not include *NEXT *VFY includes only verified media movement in the report for the date range selected. • For example, it could be used to produce a report of what was moved yesterday. • Shows move details for moves between Last Moved Date and Scheduled Move Date fields © Copyright IBM Corporation 2011
MOVMEDBRM report IBM i
Display Spooled File File . . . . . : QP1AVMS Control . . . . . Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+ 5722BR1 V5R4M0 060210 Volume Movement Report C60FB92D Volume Volume Expiration Media Pend Current Move Next Next Move Serial Slot Date Class Vfy Location Date Location Move Policy VOL001 6/23/06 VRT256K Y *HOME 6/09/06 ONSITE 6/22/06 ONEFORCLAS Total volumes moved . . . . . . . . . . : 1 Total volumes not moved . . . . . . . . : 0
Display Spooled File File . . . . . : QP1AVMS Control . . . . . Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+.. 5722BR1 V5R4M0 060210 Volume Movement Report C60FB92D Volume Volume Expiration Media Pend Current Move Next Next Move Serial Slot Date Class Vfy Location Date Location Move Policy VOL001 1 6/23/06 VRT256K N ONSITE 6/22/06 *HOME 6/29/06 ONEFORCLAS
© Copyright IBM Corporation 2011
Print Media Movement (2 of 2) IBM i
© Copyright IBM Corporation 2011
Assigning a move policy IBM i
Assigning a move policy to volume or container
If issuing: CHGMEDBRM VOL(T00005) MOVPCY(PAYMOV)
• Volume obeys move policy from that point onward. • If a container is changed to specify a new or different move policy, this move policy is applied to all volumes in the container.
© Copyright IBM Corporation 2011
WRKMEDBRM: Opt 8, Manually move IBM i
© Copyright IBM Corporation 2011
WRKMEDBRM: Option 5 screen IBM i
© Copyright IBM Corporation 2011
Creating a move policy using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Move policy: New policy wizard IBM i
© Copyright IBM Corporation 2011
Move policy: Properties IBM i
© Copyright IBM Corporation 2011
System i Navigator: Run move policy IBM i
© Copyright IBM Corporation 2011
Creating a move policy using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
New Policy IBM i
© Copyright IBM Corporation 2011
Move policy: Properties IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. True or False: Multiple move policies can be created in a BRMS operation.
2. The command used to work with move policies is? a. WRKMEDBRM b. WRKLOCBRM c. WRKPCYBRM d. WRKMEDBRM
3. True or False: The Home location is where the media will reside after its entire itinerary is finished.
© Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: Multiple move policies can be created in a BRMS operation. The answer is True. 2. The command used to work with move policies is? a. WRKMEDBRM b. WRKLOCBRM c. WRKPCYBRM d. WRKMEDBRM The answer is WRKPCYBRM.
3. True or False: The Home location is where the media will reside after its entire itinerary is finished. The answer is True. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True of False: The move policy is one of the values that is assigned when the media policy is assigned to a tape.
5. ______________ is the command used to start the move of media. a. STRBKUBRM b. MOVMEDBRM c. VFYMOVBRM d. STRRCYBRM
6. True or False: The verification of media movement is automatically set in BRMS. © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: The move policy is one of the values that is assigned when the media policy is assigned to a tape. The answer is True. 5. ______________ is the command used to start the move of media. a. STRBKUBRM b. MOVMEDBRM c. VFYMOVBRM d. STRRCYBRM The answer is MOVMEDBRM.
6. True or False: The verification of media movement is automatically set in BRMS. The answer is False. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how the move policy fits in with BRMS • Explain the function served by a move policy • Detail the steps required to create a move policy • Explain each parameter available when creating a move policy • Explain the function served by move calendars • Detail the steps required to use a move calendar within a move policy • Explain the media movement process in BRMS
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Move policies – Part A: Creating a move policy
• Optional: If you will be using GUI, perform the exercise for the GUI you will be using: – Part B: Creating a move policy using System i Navigator – Part C: Creating a move policy using Systems Director Navigator for i
• In this exercise, you create a move policy.
© Copyright IBM Corporation 2011
Media class
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how a media class works with a media policy, which works with the control group attributes • Explain the function served by a media class • Show how to use the WRKCLSBRM command • Explain the parameters available when you create a media class • Explain how media sharing works
© Copyright IBM Corporation 2011
Media class concepts
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Where does the media class fit in? IBM i
Control group attributes
Media policy
Move policy
Media class
© Copyright IBM Corporation 2011
Storage location
Media class IBM i
• Categories which define attributes of the actual physical media such as: – Indicates density – Capacity – Labels – Other usage criteria
• Default media classes created at time of BRMS installation: – One for each drive's default density – SAVSYS for alternative-IPL drive media
• Manually created or updated with the WRKCLSBRM command • Assigned when media (physical/logical) is enrolled or added • Primarily media class is a name and a density.
© Copyright IBM Corporation 2011
Shared media parameter: *NO IBM i
• Only the system that owns the tape can use the tape. – Potential problem when restoring to different system – Recovery report adds steps to address problem
• It requires management of an additional tape pool. • BRMS implements networking: – To provide protection of tape media at all times, and – Reduces the need for SHARE *NO volumes.
© Copyright IBM Corporation 2011
Shared media parameter: *YES IBM i
• Each tape is owned by a system. • A Distributed Data Management (DDM) job is initiated to verify status of the tapes. – The job is initiated any time one system tries to use a tape owned by another system. – If communications cannot be established, BRMS will not use that tape and will choose a different tape. System A
System B
1. SAVSYS is in restricted state.
3. System A does not answer since it is in restricted state.
2. System B needs to use vol A1000 – owned by Sys A. B then initiates a DDM session to A to ensure A1000 is still expired. 4. The next expired volume, in B's database, is selected for use. The next selected tape could belong to any Power i in the network.
© Copyright IBM Corporation 2011
Media class using 5250 emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Work with Media Classes IBM i
© Copyright IBM Corporation 2011
Add Media Class (1 of 2) IBM i
© Copyright IBM Corporation 2011
Add Media Class (2 of 2) IBM i
© Copyright IBM Corporation 2011
PRTMEDBRM command (1 of 2) IBM i
• Reports show information by media class. • Subset command by either threshold or statistics: – Show either *ALL or *EXCP.
• Use option 12 from the main BRMS menu. – Option 5 for statistics
© Copyright IBM Corporation 2011
PRTMEDBRM command (2 of 2) IBM i
© Copyright IBM Corporation 2011
Print media statistics: Menu option 5 IBM i
© Copyright IBM Corporation 2011
Media pool using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
New media pool IBM i
© Copyright IBM Corporation 2011
New Media Pool: Advanced options IBM i
© Copyright IBM Corporation 2011
Media class using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Media Pools: New IBM i
© Copyright IBM Corporation 2011
New Media Pool IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. The _____________ defines the attributes of the physical media. a. b. c. d.
Move policy Media policy Storage location Media class
2. True or False: At the time of the BRMS software installation, a default media class is created for each drive’s default density.
3. The command used to work with media class is __________. a. b. c. d.
WRKMEDBRM WRKLOCBRM WRKCLSBRM WRKDEVBRM © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. The _____________ defines the attributes of the physical media. a. Move policy b. Media policy c. Storage location d. Media class The answer is Media class.
2. True or False: At the time of the BRMS software installation, a default media class is created for each drive’s default density. The answer is True. 3. The command used to work with media class is __________. a. WRKMEDBRM b. WRKLOCBRM c. WRKCLSBRM d. WRKDEVBRM The answer is WRKCLSBRM. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: The Write once media parameter is used to specify that only new sequence numbers can be created on this media, it cannot be reinitialized or reused.
5. True or False: In a BRMS network environment, the Shared media parameter set to *NO means that only the system that owns a tape can use that tape.
6. The __________ command is used to generate reports that show information by media class. a. b. c. d.
ADDMEDBRM CHGMEDBRM PRTMEDBRM INZMEDBRM © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: The Write once media parameter is used to specify that only new sequence numbers can be created on this media, it cannot be reinitialized or reused. The answer is True. 5. True of False: In a BRMS network environment, the Shared media parameter set to *NO means that only the system that owns a tape can use that tape. The answer is True. 6. The __________ command is used to generate reports that show information by media class. a. ADDMEDBRM b. CHGMEDBRM c. PRTMEDBRM d. INZMEDBRM The answer is PRTMEDBRM. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how a media class works with a media policy, which works with the control group attributes • Explain the function served by a media class • Show how to use the WRKCLSBRM command • Explain the parameters available when you create a media class • Explain how media sharing works
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Creating a media class – Part A: Creating a media class using emulation
• Optional: If you will be using GUI, perform the exercise for the GUI you will be using: – Part B: Creating a media pool using System i Navigator – Part C: Creating a media pool using Systems Director Navigator for i
• In this exercise, you create a media class.
© Copyright IBM Corporation 2011
Media policies
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain the functions served by a media policy • Explain the parameters available when creating a media policy • Describe the retention types that can be set up in a media policy • Describe the capabilities available when saving your data to a save file
© Copyright IBM Corporation 2011
Where does the media policy fit in? IBM i
Control group attributes
Media policy
Move policy
Media class
© Copyright IBM Corporation 2011
Storage location
Media policy concepts IBM i
• Ties together all media management characteristics • Controls tape media: – – – –
• • • •
Retention controls expiration of data on tape References move policy to establish tape itinerary References media class to control tape selection Identifies storage location to obtain tapes
Controls save file media use and retention Can define as many media policies as needed User-assigned names Default media policies are: – – – – – – –
ARCHIVAL FULL INCR VIRTUAL SAVF SAVSYS SYSTEM
- 1725 days retention - 35 days retention - 14 days retention - 14 days retention - 35 days retention - 1725 days retention - 90 days retention
© Copyright IBM Corporation 2011
Creating a media policy using 5250 emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Media policy (1 of 4) IBM i
© Copyright IBM Corporation 2011
Retention type: Parameter (1 of 2) IBM i
Indicates how long data is to be kept on media • Retention type = Specific date – A specific date on which data expires – Media eligible for reuse when maintenance or STREXPBRM run on the date due to expire – Requires regular changes to the media policy
• Retention type = Numbers of days – Number of days since data on media was written – Media eligible for reuse when maintenance or STREXPBRM run on the day due to expire – Most commonly used
• Retention type = *PERM – To keep data on media indefinitely – Media is not reused © Copyright IBM Corporation 2011
Retention type: Parameter (2 of 2) IBM i
• Retention type is version oriented: – Based on the media's data content: • Number of saves of a library (for instance): – Not necessarily control groups
– User specifies the number of data backup versions to keep. – Media containing oldest version eligible for reuse when version limit for all objects on the media is exceeded. – Expiration date shows *VERnnn rather than date for each save version (nnn is the number of versions to be retained).
• Use version control report to reconcile. • Recommend to be used with control groups that are static Tips for specifying retention: • Ensure that retention period overlaps with next save. • Full and incremental retention should not leave any window of exposure. © Copyright IBM Corporation 2011
Secure media parameter IBM i
• Implemented by either: – Media policy with Secure media parameter set to *YES – CHGMEDBRM command – Change volume option from WRKMEDBRM
• Authority required: – To secure a volume:
*ALLOBJ or *SERVICE authority
– To read objects or to restore objects from a secured volume: *ALLOBJ or *SECADM authority
© Copyright IBM Corporation 2011
Save to save file parameters IBM i
© Copyright IBM Corporation 2011
Media policy (2 of 4) IBM i
• There are two options for volume duplication. – Automatic = select Mark volumes for duplication parameter: • Automatically puts a 1 in the DUPSTS field in the WRKMEDBRM screen
– Manual = use option 18 from the WRKMEDBRM screen: • Causes BRMS to put a 1 in the DUPSTS field in the WRKMEDBRM screen
• There is a new smart append for duplication at V5R4. – Mark history for duplication instead of entire volume. – Duplicate new data only. © Copyright IBM Corporation 2011
Media policy (3 of 4) IBM i
© Copyright IBM Corporation 2011
Media policy (4 of 4) IBM i
© Copyright IBM Corporation 2011
Managing save files IBM i
• Q1ABRMSFxx libraries contain save files. – Where xx represents the ASP number 01-32 or 33-255 – Automatic save file naming and cleanup on expiration – Expired save files deleted while running maintenance
• BRMS save file commands: – SAVSAVFBRM:
To copy save files to tape
– STREXPBRM:
Expire and delete save files just like other media
– RMVMEDIBRM:
Removes information about objects saved to save files
– WRKSAVFBRM:
To work with BRMS save files
© Copyright IBM Corporation 2011
Work with Save Files IBM i
© Copyright IBM Corporation 2011
Saving save files IBM i
© Copyright IBM Corporation 2011
Creating a media policy using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Media Policies: New (1 of 2) IBM i
© Copyright IBM Corporation 2011
New Media Policy: General IBM i
© Copyright IBM Corporation 2011
New Media Policy: Where IBM i
© Copyright IBM Corporation 2011
New Media Policy: Retention IBM i
© Copyright IBM Corporation 2011
New Media Policy: Automatic Duplication IBM i
© Copyright IBM Corporation 2011
Creating a media policy using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Media Policies: New (2 of 2) IBM i
© Copyright IBM Corporation 2011
New policy: General IBM i
© Copyright IBM Corporation 2011
New policy: Where IBM i
© Copyright IBM Corporation 2011
New policy: Retention IBM i
© Copyright IBM Corporation 2011
New policy: Automatic Duplication IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. The ______________ ties together all of the media management characteristics. a. b. c. d.
Move policy Media class Storage location Media policy
2. The most commonly used retention type is: a. b. c. d.
Date Days Version Permanent
3. True or False: To read objects or to restore objects from a secured volume, your user profile must have either *ALLOBJ or *SECADM authority.
© Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. The ______________ ties together all of the media management characteristics. a. Move policy b. Media class c. Storage location d. Media policy The answer is Media policy.
2. The most commonly used retention type is: a. Date b. Days c. Version d. Permanent The answer is Days.
3. True or False: To read objects or to restore objects from a secured volume, your user profile must have either *ALLOBJ or *SECADM authority. The answer is True.
© Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: The following media policies are automatically created at BRMS installation time. • • • •
Full Incremental SAVSYS SYSTEM
5. True or False: When performing a save operation and saving to a save file, the user has the option to specify the name given to the save file created by this operation.
6. The command used to work with a media policy is: a. b. c. d.
WRKMEDBRM WRKPCYBRM WRKCALBRM WRKCNRBRM © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: The following media policies are automatically created at BRMS installation time. 1. Full 2. Incremental 3. SAVSYS 4. SYSTEM The answer is True.
5. True or False: When performing a save operation and saving to a save file, the user has the option to specify the name given to the save file created by this operation. The answer is False. 6. The command used to work with a media policy is: 1. WRKMEDBRM 2. WRKPCYBRM 3. WRKCALBRM 4. WRKCNRBRM The answer is WRKPCYBRM. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain the functions served by a media policy • Explain the parameters available when creating a media policy • Describe the retention types that can be set up in a media policy • Describe the capabilities available when saving your data to a save file
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Creating a media policy – Part A: Creating a media policy using 5250 emulation
• Optional: If you will be using GUI, perform the exercise for the GUI you will be using: – Part B: Creating a media policy using System i Navigator – Part C: Creating a media policy using Systems Director Navigator for i
• In this exercise, you: – Create a media policy
© Copyright IBM Corporation 2011
Media topics
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Describe the function served by the WRKMEDBRM command • Describe the function served by the ADDMEDBRM command • Describe the function served by the ADDMLMBRM command • Explain how to add media to BRMS for both a stand-alone and an MLB environment • Describe the functions served by the STRBALBRM command • Explain how to create media sets and how to display their properties • Explain how to display any error messages generated during the save process • Describe the media pool concept used by BRMS • Describe the function served by the ADDMEDIBRM, EXTMEDIBRM, and SETMEDBRM commands © Copyright IBM Corporation 2011
Media inventory (1 of 6) IBM i
• Used and retained as defined by media policies • Kept to identify, locate, and show media content • Allows running a save to save file media • Virtual tape is supported. • When working with or using tape: – Users add (enroll) tape by volume ID and assign a media class. – The media class is used to determine the type of tape being added and is the basis for selection of media. – Usage and expiration are monitored to protect tapes with active data. – Manageable as a set when active data spans volumes – Media is moved as defined by move policies. – Statistics are kept by BRMS by volume ID.
© Copyright IBM Corporation 2011
WRKMEDBRM command (1 of 2) IBM i
© Copyright IBM Corporation 2011
WRKMEDBRM command (2 of 2) IBM i
• Use this command to view or print information about the media. • Any operations required for media can be accomplished through the resulting screen.
© Copyright IBM Corporation 2011
Media inventory (2 of 6) IBM i
© Copyright IBM Corporation 2011
Media inventory: F11 (3 of 6) IBM i
© Copyright IBM Corporation 2011
Media inventory: F11 (4 of 6) IBM i
© Copyright IBM Corporation 2011
Media inventory: F11 (5 of 6) IBM i
© Copyright IBM Corporation 2011
Media inventory: F11 (6 of 6) IBM i
© Copyright IBM Corporation 2011
Media inventory: Reconciling differences IBM i
• It is important to update media inventory daily using the maintenance command. • Reconcile any differences to enable quick location of a volume needed for recovery. – Use CHGMEDBRM or – Option 2 – Change or option 8 – Move from WRKMEDBRM screen • Use sparingly.
• Important values you can change to maintain accuracy: – Storage location (requires manual move to change) – Container, if used (requires manual move to change) • You will also move all contents of the container.
– Slot number, if used
• Other values that can also be changed (but do not usually change): – – – – – –
Media class Expiration date Creation date Move policy System Text © Copyright IBM Corporation 2011
Media sets (1 of 4) IBM i
• Multiple related tape volumes • Created by a multivolume save operation: – For example, a save operation of a specific object spans multiple volumes. • Only happens when saving a specific object and part of it is on the first volume and the remainder is on the second volume, or • When you perform a parallel save, which uses multiple volumes
• Identified by: – A plus sign (+) on the WRKMEDBRM display and by either a: • *YES in the Serial Set column or • *YES in the Parallel Set column © Copyright IBM Corporation 2011
Media sets (2 of 4) IBM i
© Copyright IBM Corporation 2011
Media sets (3 of 4) IBM i
© Copyright IBM Corporation 2011
Media sets (4 of 4) IBM i
• More than one tape was used for backup processing. • Identified by a plus sign (+) next to the volume serial number • The restore can be on a fewer number of drives than were used for the parallel save. • Parallel is easier to implement with BRMS. © Copyright IBM Corporation 2011
Manual move (1 of 2) IBM i
© Copyright IBM Corporation 2011
Manual move (2 of 2) IBM i
© Copyright IBM Corporation 2011
Option 13: Display media contents IBM i
© Copyright IBM Corporation 2011
Choose Opt 9: Work with saved objects IBM i
© Copyright IBM Corporation 2011
Choose Opt 9: Work with saved members IBM i
© Copyright IBM Corporation 2011
Options to work with saved members IBM i
© Copyright IBM Corporation 2011
Display error message IBM i
Work with Saved Objects
I520DVL3
Position to Object . . . Type options, press Enter. 4=Remove 5=Display 6=Work with media 7=Restore object 9=Work with saved members Save Save Opt Object Library Type Date Time Volume BRMSLPP TONIB *FILE 6/20/06 0:01:06 *SAVF BRMSLPP1 TONIB *FILE 6/20/06 0:01:06 *SAVF BRMSLPP2 TONIB *FILE 6/20/06 0:01:06 *SAVF BRMSLPP3 TONIB *FILE 6/20/06 0:01:06 *SAVF SETUP TONIB *PGM 6/20/06 0:01:06 *SAVF SETUPONE TONIB *PGM 6/20/06 0:01:06 *SAVF
Message ID CPF3760 CPF3760 CPF3760 CPF3760 CPF3760 CPF3760
• If an error occurs during the save of any object, the Message ID column contains a message ID related to the error. – The object is shown; however, it is not actually saved successfully. – Option 9 enables you to view member level detail. • Possible member was not saved. © Copyright IBM Corporation 2011
Enrolling and initializing media IBM i
• Enrolling: – Adding tape information to BRMS media inventory
• Initializing: – Writing tape header label, optionally clearing data – ADDMEDBRM command for stand-alone drives or – ADDMLMBRM command for tape library
• Select F10 for all additional parameters. • Initializing from the WRKMEDBRM option 10: – Can now initialize media that was in *ERR status after option 9 (Remove volume error status) used – Eliminates the need to remove media and re-add © Copyright IBM Corporation 2011
Tape drive: Add media (1 of 2) IBM i
© Copyright IBM Corporation 2011
Tape drive: Add media (2 of 2) IBM i
© Copyright IBM Corporation 2011
Tape library: Add media IBM i
© Copyright IBM Corporation 2011
Enrolling and initializing media IBM i
• Sufficient tapes must be available for the save operation. • New volumes are enrolled with Initialize Tape (*YES). – This issues INZMEDBRM to initialize volume.
• Volumes with active data (migrated from another system) are enrolled with Initialize Tape (*NO). – Volume statistics are included if previously collected. – ADDMEDIBRM command can be used to manually add content information. – EXTMEDIBRM command can be used to scan tape in a drive and build save history.
© Copyright IBM Corporation 2011
ADDMEDIBRM command IBM i
© Copyright IBM Corporation 2011
EXTMEDIBRM command IBM i
• You must specify the type of information on the tape using the File origin parameter. • BRMS reads the tape and populates the database with its contents.
© Copyright IBM Corporation 2011
Balancing your media: STRBALBRM IBM i
System
Priority
Required
Available
Prod01
1
5
3
Prod02
2
4
5
Dev
3
2
3
Media class
Media location
Media balancing (customer decides)
Priority
Number required
© Copyright IBM Corporation 2011
- Allocate media depends on availability. - If not able to allocate required media, message will be issued.
The steps to balance your media IBM i
1. List your systems in the order of highest to lowest priority. 2. Set priority for each system. STRBALBRM ACTION(*SET) MEDCLS(media-class) LOC(location) SYSNAME(system-name) MEDPTY(number) MEDREQ(number)
3. Print and review the media balance report. STRBALBRM ACTION(*REPORT) MEDCLS(media-class) LOC(location)
4. If necessary, balance the media. 5. Once again, print and review the media balance report.
© Copyright IBM Corporation 2011
Initial report: Before balancing IBM i
File . . . . . : QP1AMBL Control . . . . .
Page/L Column
Find . . ..+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....1. 5761BR1 V6R1M0 080215
Media Balancing Report
6/29/07 13:56:1
Selection Criteria Media Class . . . . . . . . . . : FMT3590H Location . . . . . . . . . . . . : TAPMLB01 System . . . . . . . . . . . . . : *NETGRP System Name
Network Media ID Class
PROD01 APPN PROD02 APPN DEV APPN
Location
FMT3590H TAPMLB01 FMT3590H TAPMLB01 FMT3590H TAPMLB01
Media Priority
Number of Number of Media Media Required Available Status
1 2 3
*****ENDOFLISTING*****
© Copyright IBM Corporation 2011
5 4 2
3 5 3
Communicating Communicating Communicating
Report after media balancing IBM i
File . . . . . : QP1AMBL Control . . . . .
Page/L Column
Find . . ..+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....1. 5761BR1 V6R1M0 080215
Media Balancing Report
6/29/07 13:59:1
Selection Criteria Media Class . . . . . . . . . . : FMT3590H Location . . . . . . . . . . . . : TAPMLB01 System . . . . . . . . . . . . . : *NETGRP
System Name
Network Media ID Class
PROD01 APPN PROD02 APPN DEV APPN
Location
Media Priority
FMT3590H TAPMLB01 FMT3590H TAPMLB01 FMT3590H TAPMLB01
Number of Number of Media Media Required Available Status
1 2 3
*****ENDOFLISTING***** © Copyright IBM Corporation 2011
5 4 2
5 4 2
Communicating Communicating Communicating
System i Navigator: Media > Volumes IBM i
© Copyright IBM Corporation 2011
List actions: Balance volumes IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator for i: Media > Volumes IBM i
© Copyright IBM Corporation 2011
Initialize once concept IBM i
• Volume is never reinitialized on reuse. • BRMS writes new file to file sequence one on tape (unless APPEND or SEQNBR *END is selected). • This overwrites old data. • Reinitializing a tape resets the statistics for the tape.
© Copyright IBM Corporation 2011
Media handling techniques IBM i
Media pools Media set rotation Media scratch pool BRMS method
Traditional method
Week 1 (Red)
Week 2 (Blue)
Week 3 (Green)
Monday
Tuesday
Wednesday
Thursday
Friday
Tape 1
Tape 1
Tape 1
Tape 1
Tape 1
Tape 2
Tape 2
Tape 2
Tape 2
Tape 2
Tape 3
Tape 3
Tape 3
Tape 3
Tape 3
Tape 4
Tape 4
Tape 4
Tape 4
Tape 4
Tape 5
Tape 5
Tape 5
Tape 5
Tape 5
Monday
Tuesday
Wednesday
Thursday
Friday
Tape 1
Tape 1
Tape 1
Tape 1
Tape 1
Tape 2
Tape 2
Tape 2
Tape 2
Tape 2
Tape 3
Tape 3
Tape 3
Tape 3
Tape 3
Tape 4
Tape 4
Tape 4
Tape 4
Tape 4
Tape 5
Tape 5
Tape 5
Tape 5
Tape 5
Monday
Tuesday
Wednesday
Thursday
Friday
Tape 1
Tape 1
Tape 1
Tape 1
Tape 1
Tape 2
Tape 2
Tape 2
Tape 2
Tape 2
Tape 3
Tape 3
Tape 3
Tape 3
Tape 3
Tape 4
Tape 4
Tape 4
Tape 4
Tape 4
Tape 5
Tape 5
Tape 5
Tape 5
Tape 5
© Copyright IBM Corporation 2011
T01
T02
T03
T04
T05
T06
T07
T08
T09
T10
T11
T12
T13
T14
T15
T16
T17
T18
T19
T20
T21
T22
T23
T24
T25
T26
T27
T28
T29
T30
T31
T32
T33
T34
T35
T36
T37
T38
T39
T40
...
Tnn
Select any tape meeting defined criteria.
Media set rotation: Traditional method IBM i
• Traditional method of media handling for smaller systems • Limits the ability to vary retention periods • Prone to operator selecting incorrect media set • Requires more operator intervention than scratch pool method • Uses more volumes because a tape set always has a fixed number of volumes no matter how many volumes used • Unused media volumes moved as part of set
© Copyright IBM Corporation 2011
Media scratch pool: BRMS method IBM i
• This is the BRMS method of media handling. • Retention periods are controlled down to the file level on a tape. • Any tape from the scratch pool of the correct media class can be used. • If an invalid tape is inserted or encountered, BRMS will list available volumes. • Only volumes that are used are included in the media set. • Only volumes that are used are moved with the media set.
© Copyright IBM Corporation 2011
Data loss protection IBM i
• MSE exit points to intercept tape activity • Tape checked for scratch status before writing to tape, except: – No checking by BRMS for SAVSTG – No logging of active status of tape used in SAVSTG operation
• Tape checked for correct media class before writing to tape – SETMEDBRM command used to specify media class for native IBM i save commands
© Copyright IBM Corporation 2011
SETMEDBRM command IBM i
© Copyright IBM Corporation 2011
Media Management menu IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 3) IBM i
1. The _______________ command works with active, expired, or all media volumes in the media inventory by creation and expiration date for any or all locations. a. b. c. d.
ADDMEDBRM ADDMLMBRM SETMEDBRM WRKMEDBRM
2. True or False: It is possible to manually move a volume from one location to another. 3. The _____________ command is used to add media to an individual tape drive. a. b. c. d.
ADDMEDBRM ADDMLMBRM SETMEDBRM WRKMEDBRM
4. True or False: With BRMS it is possible to restore an individual file member.
© Copyright IBM Corporation 2011
Checkpoint solutions (1 of 3) IBM i
1. The _______________ command works with active, expired, or all media volumes in the media inventory by creation and expiration date for any or all locations. a. ADDMEDBRM b. ADDMLMBRM c. SETMEDBRM d. WRKMEDBRM The answer is WRKMEDBRM.
2. True or False: It is possible to manually move a volume from one location to another. The answer is True. 3. The _____________ command is used to add media to an individual tape drive. a. ADDMEDBRM b. ADDMLMBRM c. SETMEDBRM d. WRKMEDBRM The answer is ADDMEDBRM.
4. True or False: With BRMS it is possible to restore an individual file member. The answer is True. © Copyright IBM Corporation 2011
Checkpoint (2 of 3) IBM i
5. The _____________ command is used to add media to a tape library. a. b. c. d.
ADDMEDBRM ADDMLMBRM SETMEDBRM WRKMEDBRM
6. True or False: It is required that a tape be re-initialized before you can reuse it to perform another BRMS save. 7. The _____________ command is used to manually add file level details to the BRMS media inventory content volume information. a. b. c. d.
ADDMEDIBRM EXTMEDIBRM SETMEDBRM WRKMEDBRM © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 3) IBM i
5. The _____________ command is used to add media to a tape library. a. ADDMEDBRM b. ADDMLMBRM c. SETMEDBRM d. WRKMEDBRM The answer is ADDMLMBRM.
6. True or False: It is required that a tape be re-initialized before you can reuse it to perform another BRMS save. The answer is False. 7. The _____________ command is used to manually add file level details to the BRMS media inventory content volume information. a. ADDMEDIBRM b. EXTMEDIBRM c. SETMEDBRM d. WRKMEDBRM The answer is ADDMEDIBRM.
© Copyright IBM Corporation 2011
Checkpoint (3 of 3) IBM i
8. The _____________ command is used to direct the system to extract file level details to the BRMS media inventory content volume information. a. b. c. d.
ADDMEDIBRM EXTMEDIBRM SETMEDBRM WRKMEDBRM
9. The controls you set with the _____________ command remain in effect for your job until they are reset or otherwise changed by re-running this command. a. b. c. d.
ADDMEDIBRM EXTMEDIBRM SETMEDBRM WRKMEDBRM
10. True of False: The Start Media Balancing for BRM (STRBALBRM) command balances media ownership to match the required number of media needed for systems within a BRMS network.
© Copyright IBM Corporation 2011
Checkpoint solutions (3 of 3) IBM i
8. The _____________ command is used to direct the system to extract file level details to the BRMS media inventory content volume information. a. ADDMEDIBRM b. EXTMEDIBRM c. SETMEDBRM d. WRKMEDBRM The answer is EXTMEDIBRM.
9. The controls you set with the _____________ command remain in effect for your job until they are reset or otherwise changed by re-running this command. a. ADDMEDIBRM b. EXTMEDIBRM c. SETMEDBRM d. WRKMEDBRM The answer is SETMEDBRM.
10. True or False: The Start Media Balancing for BRM (STRBALBRM) command balances media ownership to match the required number of media needed for systems within a BRMS network. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Describe the function served by the WRKMEDBRM command • Describe the function served by the ADDMEDBRM command • Describe the function served by the ADDMLMBRM command • Explain how to add media to BRMS for both a stand-alone and an MLB environment • Describe the functions served by the STRBALBRM command • Explain how to create media sets and how to display their properties • Explain how to display any error messages generated during the save process • Describe the media pool concept used by BRMS • Describe the function served by the ADDMEDIBRM, EXTMEDIBRM, and SETMEDBRM commands © Copyright IBM Corporation 2011
Lab exercise IBM i
• Running a backup using 5250 emulation – Optional: If you will be using GUI, perform the exercise for the GUI you will be using.
• Running a backup using System i Navigator • Running a backup using Systems Director Navigator for i • In this exercise, you: – Put all of the BRMS pieces together to perform a backup: • Enroll media: – Physical – Virtual – Pre-existing
• Set up control group attributes to use your media policy • Save your control group to virtual media; optionally save to physical media • Recover some data © Copyright IBM Corporation 2011
BRMS networking
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Describe the benefits of setting up a BRMS network • Perform the steps required to set up the POWER i in preparation for a BRMS network • Perform the steps to add a new system to an existing BRMS network
© Copyright IBM Corporation 2011
BRMS network concepts
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
BRMS network (1 of 2) IBM i
SNA or TCP
A
B
Shared media
• Advantages: – – – –
Shared scratch pool Cross-system restores, especially spool files Able to see all media from one system Ability to create recovery report for system B from system A © Copyright IBM Corporation 2011
SNA or TCP
C
BRMS network (2 of 2) IBM i
• Considerations: – Networking adds complexity to your BRMS setup. – You need to ensure communications stay active. – You need to coordinate schedules for BRMS functions. • BRMS daily maintenance • Media movement • Possible lock conditions if multiple systems in a BRMS network are performing these functions simultaneously.
– You need to implement a PTF strategy, make sure to stay current/up to date.
© Copyright IBM Corporation 2011
Creating a BRMS network IBM i
Existing system QUSRBRM QA1ANET2
New system QUSRBRM QA1ANET2
System policy Backup/recovery/archive/ retrieve policy Tape drives Backup/archive lists In-house recovery activity text
System policy Backup/recovery/archive/ retrieve policy Tape drives Backup/archive lists In-house recovery activity text
Control groups
Control groups
Media classes Container classes Storage locations Move policies Media policies Network group
Media classes Container classes Storage locations Move policies Media policies Network group
Container inventory Media inventory (MM) Library level detail (HS)
Container inventory Media inventory (MM) Library level detail (HS)
Object level detail (OD)
Object level detail (OD)
© Copyright IBM Corporation 2011
CPYMEDIBRM To file
QGPL QA1AMED CPYMEDIBRM From file
Shared media IBM i
• Shared media provides a single media inventory picture. • All systems are in a local cluster. – For example, Ethernet attached
• Most commonly share tapes for save/restore purposes. – Typically same machine room – Perhaps same building – Not usually across different cities
• Some media management information is mirrored on all systems in the network. • BRMS networking uses journaling to keep the systems synchronized (journal entries are sent to the remote system).
© Copyright IBM Corporation 2011
The information that is shared IBM i
• Media inventory: – Only tapes of a media class with SHARE(*YES) can be used on all systems.
• Media classes • Media policies • Container inventory • Container classes • Move policies • Network groups • Storage locations • Duplication cross-reference: – This information is copied between participating systems when set up. – Updates are reflected almost immediately through communications link. – Use of a tape on one system that was last used by another system initiates a communications job to verify tape status.
© Copyright IBM Corporation 2011
Information that is not shared IBM i
• System/backup/archive/retrieve/recovery policy information • Recovery contacts and activities • Backup and archive lists: – Object, folder, spool, and IFS
• Control groups • Calendars • Device and MLB table entries • Object/member level information in the database: – This can be displayed through communications access when requested, hence it is a little slower. – This process happens automatically under the covers when requested.
© Copyright IBM Corporation 2011
The Q1ABRMNET subsystem IBM i
• This subsystem runs shadowing over a communications link. • Job QBRMNET is started automatically with an autostart job in the QSYSWRK subsystem. • It wakes up every (xx) seconds to see if there are any updates to send. The BRMSYNC job sends the updates. – 60 seconds is the default. – This parameter can be changed in the system policy.
• Communications can be either TCP/IP or SNA. – Verify communications before attempting to set up the BRMS network.
© Copyright IBM Corporation 2011
Things to do before you network systems IBM i
• Review BRMS databases for potential duplicate volume serial numbers. • Ensure the BRMS PTFs are up-to-date: – Mixed-version network PTFs are loaded on all systems that should be in the network. – Networking time zone PTFs are loaded if your network should span time zones. – CPYMEDIBRM PTFs are loaded on the system that is being added to the network.
• On each POWER i in the BRMS network, make a safety copy of the QUSRBRM library using a SAVLIB command before you network your systems. © Copyright IBM Corporation 2011
Prepare the system for BRMS network
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Networking tasks IBM i
• How to set up to use TCP/IP for a BRMS network • How to set up to use TCP/IP in a restricted state • How to set up an Relational Data Base (RDB) directory entry for a BRMS network • How to remove a system from a BRMS network
© Copyright IBM Corporation 2011
How to set up to use TCP/IP for a BRMS network IBM i
1. Check TCP/IP. a. Ping command to verify communications in both directions
2. Set TCP/IP DDM connection security. – Non-secured DDM connection – Secured DDM connection
3. Configure the TCP/IP DDM server automatic restart. 4. Start and end the DDM server. 5. Enable BRMS to use TCP/IP. 6. Set up BRMS network. © Copyright IBM Corporation 2011
Set DDM server attributes IBM i
• Default for password required is *YES. – Must have a server authentication entry for any user ID that would access systems in the network: • QBRMS • Any user that would use the WRKMEDIBRM command • Any user that would issue the maintenance command using the centralized audit media © Copyright IBM Corporation 2011
End/start DDM server IBM i
• Use the following command to end the TCP/IP DDM server: – ENDTCPSVR SERVER(*DDM)
• Use the following command to start the TCP/IP DDM server: – STRTCPSVR SERVER(*DDM)
© Copyright IBM Corporation 2011
Enable BRMS to use TCP/IP IBM i
© Copyright IBM Corporation 2011
F11 BRMS Media Information IBM i
© Copyright IBM Corporation 2011
Set up to use TCP/IP in restricted state IBM i
Use the following command to specify the TCP/IP interfaces that BRMS is to use during restricted state: QSYS/CALL QBRM/Q1AOLD PARM('TCPIPIFC' '*ADD' 'interface') Or
QSYS/CALL QBRM/Q1AOLD PARM('TCPIPIFC' '*REMOVE' 'interface')
© Copyright IBM Corporation 2011
Set up RDB directory entry IBM i
© Copyright IBM Corporation 2011
Set up a BRMS network using emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Creating a BRMS network IBM i
Existing system: I520BL1 QUSRBRM QA1ANET2
New system: I520BL2 QUSRBRM QA1ANET2
System policy Backup/recovery/archive/ retrieve policy Tape drives Backup/archive lists In-house recovery activity text
System policy Backup/recovery/archive/ retrieve policy Tape drives Backup/archive lists In-house recovery activity text
Control groups
Control groups
Media classes Container classes Storage locations Move policies Media policies Network group
Media classes Container classes Storage locations Move policies Media policies Network group
Container inventory Media inventory (MM) Library level detail (HS)
Container inventory Media inventory (MM) Library level detail (HS)
Object level detail (OD)
Object level detail (OD)
© Copyright IBM Corporation 2011
CPYMEDIBRM To file
QGPL QA1AMED CPYMEDIBRM From file
1: On new system: Save current media information IBM i
• On the system being added to the network, use CPYMEDIBRM to save current media inventory and volume content information. – This is only needed if the system being added already has enrolled media. – If this is not needed, step one and step four are not needed.
• The Copy media information parameter should be set to *NO when adding a system to a BRMS network.
© Copyright IBM Corporation 2011
2a: On existing system: Add the new system IBM i
• If there are difficulties with this, use the following to help determine the problem: – The job log – The BRMS log – The system operator message – The history log © Copyright IBM Corporation 2011
2b: Status after add IBM i
• New System Status column added at V5R4: – More accurate status
• New Notify period parameter added at V5R4: – How often message sent about offline status
• New Communication method parameter added at V6R1 • F11 to view media information added at V7R1 © Copyright IBM Corporation 2011
3a: Initialize BRMS: *NETSYS IBM i
• This is performed on the new system being added to the network. • The from system can be any POWER i in the network. – You must have performed the previous steps on the same from system. Existing system
Data copied to new system
New system
© Copyright IBM Corporation 2011
(Old data is lost temporarily)
3b: Initialize messages IBM i
• This operation is not performed until all messages are answered. • A reply of C on any entry cancels the entire operation. Existing system
Data copied to new system
New system
© Copyright IBM Corporation 2011
(Old data is lost temporarily)
4: Recover media information IBM i
• Do not forget to change to *FROMFILE. • View message at the bottom of the screen after completion.
• Review report if necessary.
© Copyright IBM Corporation 2011
Status after initialize IBM i
• I520BL2 is defined as the local location parameter in the network attributes for I520BL2. • Must use local location name.
© Copyright IBM Corporation 2011
Tips for debugging network problems IBM i
• BRMS uses a mode of BRMS and uses QBRMS profile for authority. – The profile might get disabled occasionally due to unforeseen error conditions.
• If systems stop communicating, no job logs are produced. Issue: • CHGJOBD JOBD(QBRM/QBRMSYNC) LOG(4 00 *SECLVL)
– This produces a job log every time systems try to communicate. The job log is for user QBRMS. Once a job log is produced, turn logging back off.
• If data exists in file QUSRBRM/QA1ANET2, systems are not communicating. – Investigate file to determine which systems are involved and change logging level of jobd. • DSPPFM FILE(QUSRBRM/QA1ANET2)
• It is recommended that you do not use QUSRBRM to store any usercreated objects.
© Copyright IBM Corporation 2011
How to remove a system from BRMS IBM i
• The network group is shared information across the BRMS network. – You should be removing this system from all the other BRMS systems in the network.
• This system could potentially own media.
© Copyright IBM Corporation 2011
Confirm remove of a system IBM i
• *NO leaves the entries for the media in the BRMS inventory. • *YES removes any media and history that is associated with the system being removed. • *RENAME reassigns ownership of any media from the removed system to the current system. © Copyright IBM Corporation 2011
Set up a BRMS network using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
BRMS: Global Policy Properties IBM i
© Copyright IBM Corporation 2011
Network tab: Manage Systems IBM i
© Copyright IBM Corporation 2011
List actions: New > Add system IBM i
© Copyright IBM Corporation 2011
New system added IBM i
© Copyright IBM Corporation 2011
Properties: New system added IBM i
© Copyright IBM Corporation 2011
Set up a BRMS network using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Select Action: Global Policy Properties > Go IBM i
© Copyright IBM Corporation 2011
Network tab: Manage Systems IBM i
• Choose Network in the left column, then click Manage Systems. © Copyright IBM Corporation 2011
Select Action > New > Go IBM i
© Copyright IBM Corporation 2011
Add new system: OK IBM i
© Copyright IBM Corporation 2011
New system listed IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. True or False: BRMS networking is used to share media between systems that are sharing a tape library.
2. BRMS networking will support which of the following: a. b. c. d.
Cross system restores Ability to see all of the media from one system Ability to create a recovery report for System B from System A All of these
3. The command used to set up BRMS networking is __________. a. b. c. d.
INZBRM *DATA INZBRM *MERGE INZBRM *NETSYS INZBRM *RUNPRDINZ © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. True or False: BRMS networking is used to share media between systems that are sharing a tape library. The answer is True. 2. BRMS networking will support which of the following: a. Cross system restores b. Ability to see all of the media from one system c. Ability to create a recovery report for System B from System A d. All of these The answer is all of these.
3. The command used to set up BRMS networking is __________. a. INZBRM *DATA b. INZBRM *MERGE c. INZBRM *NETSYS d. INZBRM *RUNPRDINZ The answer is INZBRM *NETSYS. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. Which of the following policy or policies is overwritten or replaced when a system that is added to a BRMS network? a. b. c. d.
System policy Backup policy Recovery policy Media policies
5. True or False: Some of the media management information is mirrored on all systems in a BRMS network.
6. Which of the following is information that gets shared when you add a system into a BRMS network? a. b. c. d.
System policy Control groups Media classes Backup lists © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. Which of the following policy or policies is overwritten or replaced when a system that is added to a BRMS network? a. System policy b. Backup policy c. Recovery policy d. Media policies The answer is media policies.
5. True or False: Some of the media management information is mirrored on all systems in a BRMS network. The answer is True.
6. Which of the following is information that gets shared when you add a system into a BRMS network? a. System policy b. Control groups c. Media classes d. Backup lists The answer is media classes. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Describe the benefits of setting up a BRMS network • Perform the steps required to set up the POWER i in preparation for a BRMS network • Perform the steps to add a new system to an existing BRMS network
© Copyright IBM Corporation 2011
Scheduling BRMS jobs
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to • List the steps to schedule a job using the default scheduler • List the steps to change the default scheduler to the Advanced Job Scheduler • Explain the parameters for scheduling a job when using the Advanced Job Scheduler
© Copyright IBM Corporation 2011
Selecting a scheduler
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Scheduling menu IBM i
© Copyright IBM Corporation 2011
Change Job Scheduler IBM i
© Copyright IBM Corporation 2011
Change Job Scheduler for *USRDFN IBM i
© Copyright IBM Corporation 2011
Using the default scheduler
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Scheduling a job IBM i
© Copyright IBM Corporation 2011
Add Job Schedule Entry IBM i
© Copyright IBM Corporation 2011
Backup control group: F7 IBM i
© Copyright IBM Corporation 2011
Work with scheduled jobs IBM i
© Copyright IBM Corporation 2011
Using the Advanced Job Scheduler
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Schedule job: IJS is called IBM i
© Copyright IBM Corporation 2011
Using the job scheduler IBM i
© Copyright IBM Corporation 2011
Backup control group: F7 IBM i
© Copyright IBM Corporation 2011
Work with scheduled jobs IBM i
© Copyright IBM Corporation 2011
Scheduling your job with System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Schedule from the pop-up menu IBM i
© Copyright IBM Corporation 2011
Schedule at end of a wizard IBM i
© Copyright IBM Corporation 2011
Schedule a selected item IBM i
© Copyright IBM Corporation 2011
Using the default scheduler IBM i
© Copyright IBM Corporation 2011
Using the Advanced Job Scheduler (1 of 2) IBM i
© Copyright IBM Corporation 2011
Using the Advanced Job Scheduler (2 of 2) IBM i
© Copyright IBM Corporation 2011
Scheduling your job with IBM Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Schedule from the pop-up menu IBM i
© Copyright IBM Corporation 2011
Scheduling BRMS maintenance (1 of 2) IBM i
© Copyright IBM Corporation 2011
Scheduling BRMS maintenance (2 of 2) IBM i
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. True or False: By default BRMS is set up to use the Advanced Job Scheduler.
2. True or False: On the Work with control groups screen, option 6 (Add to schedule) will add your job to the scheduler that you set up as your default.
3. True or False: On the Work with control groups screen, option 7 (Work with BRMS scheduled jobs) will show only those BRMS jobs that have been scheduled.
© Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. True of False: By default BRMS is set up to use the Advanced Job Scheduler. The answer is False.
2. True of False: On the Work with control groups screen, option 6 (Add to schedule) will add your job to the scheduler that you set up as your default. The answer is True.
3. True of False: On the Work with control groups screen, option 7 (Work with BRMS scheduled jobs) will show only those BRMS jobs that have been scheduled. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completing this unit, you should be able to: • List the steps to schedule a job using the default scheduler • List the steps to change the default scheduler to the Advanced Job Scheduler • Explain the parameters for scheduling a job when using the Advanced Job Scheduler
© Copyright IBM Corporation 2011
Daily maintenance
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Describe the maintenance functions provided when you run daily maintenance • List alternative commands that can be used to run daily maintenance • Describe the reports that are generated as part of running daily maintenance
© Copyright IBM Corporation 2011
Daily maintenance options IBM i
• Remove outdated save history records—library/object level • Produce media movement report – IF MOVMEDBRM is run – Default is *NO
• • • • • • • • • •
Expire media Clean up old BRMS log entries Produce the media report by expiration date Produce the media expiration report Produce the media information report Produce save strategy exception report Produce the recovery analysis report Produce the recovery volume summary report Produce the ASP information report Produce recovery activities report
• • • • • • •
Audit and synchronize media records on all network systems Produce the centralized media audit report Produce the location analysis report Run cleanup Retrieve the volume statistics Print a version control report Print system information
– If information is available
– If requested © Copyright IBM Corporation 2011
BRMS maintenance command (1 of 2) IBM i
© Copyright IBM Corporation 2011
BRMS maintenance command (2 of 2) IBM i
© Copyright IBM Corporation 2011
Remove media information parameter (1 of 2) IBM i
• Media contents: – – – –
Remove on expiration or reuse *REUSE means more (possibly obsolete) data on the system Provides an additional level of recovery An expired volume can be used for recovery if a more current volume has a media error.
• Object level detail: – History consists of two files: Library level and object level (including member level). – *MEDCON (Media Contents) means remove entries from both files at the same time. – Number of days can be specified for retention of object level detail. • Number should be equal to or smaller than the expiration period. • If smaller, object level detail is removed sooner. – Prevents BRMS led object level recovery – Reduces space taken on disk © Copyright IBM Corporation 2011
Remove media information parameter (2 of 2) IBM i
• BRMS led library-level recovery still possible • User object level recovery still possible
Library detail *EXP
*REUSE
Object detail Number of days
*MEDCON
© Copyright IBM Corporation 2011
*MEDCON
Individual commands you can run IBM i
If required, subsets of the STRMNTBRM command function can be run individually by issuing one of the following commands: – RMVMEDIBRM – MOVMEDBRM – STREXPBRM – RMVLOGEBRM – WRKMEDBRM OUTPUT(*PRINT) – WRKMEDIBRM OUTPUT(*PRINT) – STRRCYBRM – WRKRCYBRM – PRTSYSRPT – GO BRMS – Option 12: Reports © Copyright IBM Corporation 2011
Notification messages and enhancements IBM i
• If maintenance is not run regularly: – A message is sent to the BRMS log and the message queue specified in the system policy.
• Enhancements to BRMS maintenance for V7R1 include: – More concurrent maintenance allowed – Warning when volumes are in use and cannot be moved – Volume move report (QPIAVMS) has warning – Automatic hold of BRMS jobs wanting to use files maintenance is currently using
• Messages: – BRM6714: Current job being held by maintenance job – BRM6715: BRM restricted procedure started – BRM6716: BRM restricted procedure ended © Copyright IBM Corporation 2011
Daily housekeeping IBM i
• You should perform the following tasks on a daily basis: – Review reports generated by running daily maintenance. – Address any issues identified. – Manage BRMS recovery reports. • Print and send with media. • Send using email: – Might require additional software
• Send to another platform. • Send to another POWER i: – SNDNETSPLF
– Clean up BRMS spooled files. – Enroll and initialize new media if required.
© Copyright IBM Corporation 2011
Maintenance enhancements at V7R1 IBM i
BRMS6714
© Copyright IBM Corporation 2011
BRMS Support and services tab IBM i
© Copyright IBM Corporation 2011
Perform maintenance and cleanup IBM i
© Copyright IBM Corporation 2011
Run Maintenance Options IBM i
© Copyright IBM Corporation 2011
Systems Director Navigator: Run Maintenance IBM i
© Copyright IBM Corporation 2011
Run Maintenance page IBM i
© Copyright IBM Corporation 2011
Run Maintenance Options IBM i
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. The _______________ command performs various BRMS maintenance and clean-up functions. a. b. c. d.
STRBKUBRM STRMNTBRM STREXPBRM STRRCYBRM
2. True or False: The BRMS data on a volume is deleted as soon as a volume is expired.
3. True of False: The BRMS database is automatically reorganized when you perform the daily maintenance function. © Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. The _______________ command performs various BRMS maintenance and clean-up functions. a. STRBKUBRM b. STRMNTBRM c. STREXPBRM d. STRRCYBRM The answer is STRMNTBRM.
2. True or False: The BRMS data on a volume is deleted as soon as a volume is expired. The answer is False.
3. True or False: The BRMS database is automatically reorganized when you perform the daily maintenance function. The answer is False. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Describe the maintenance functions provided when you run daily maintenance • List alternative commands that can be used to run daily maintenance • Describe the reports that are generated as part of running daily maintenance
© Copyright IBM Corporation 2011
BRMS reports
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List some of the reports that you can generate from the BRMS Reports menu • Highlight some of the options available on the Reports menu
© Copyright IBM Corporation 2011
Reports IBM i
• Generate any number of reports. – Print reports whenever needed. • Some reports printed through the STRMNTBRM command – These same reports can be printed as necessary.
– GO BRMS: • Option 12
– Print: • • • • •
Setup information Logs Activities Statistics And so forth
– Categorized by feature/function: • • • • • •
Media Backup Recovery Archive Retrieve Other © Copyright IBM Corporation 2011
Reports generated by the STRMNTBRM command
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Maintenance reports IBM i
• The following reports are printed when the BRMS maintenance command is performed: – QP1AVER
Version control
– QP1AEP – QP1ASYN
Media expiration Centralized media audit
– – – – – – – – –
Ignore this report unless using versioning
Only prints if Audit System Media is *YES QP1AMM Media report by expiration date QP1AHS Media information QP1ALE Save strategy exceptions QP1A2SL Location analysis QP1ARW Recovery activities QP1AASP Display ASP information QP1ARCY Recovering your entire system QP1A2RCY Recovery volume summary If issue the MOVMEDBRM from the maintenance command: • QP1APVMS • QP1AVMS
Pending volume movement (only printed if using verify moves) Volume movement
– Some reports can be prevented from printing. – Some reports have additional options. © Copyright IBM Corporation 2011
WRKSPLF after STRMNTBRM IBM i
© Copyright IBM Corporation 2011
Expired media report IBM i
© Copyright IBM Corporation 2011
Media report by expiration date IBM i
© Copyright IBM Corporation 2011
Media information report IBM i
© Copyright IBM Corporation 2011
Save strategy exception report IBM i
© Copyright IBM Corporation 2011
Recovery activities report IBM i
© Copyright IBM Corporation 2011
Location analysis report IBM i
© Copyright IBM Corporation 2011
Reports menu
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Reports menu IBM i
© Copyright IBM Corporation 2011
Option 54: Print backup statistics IBM i
© Copyright IBM Corporation 2011
Sample reports
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Option 5: Volume statistics report IBM i
© Copyright IBM Corporation 2011
Option 16: Print save files IBM i
© Copyright IBM Corporation 2011
Option 20: Print backup lists IBM i
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. True or False: There are multiple reports that an operator can choose to generate as part of running the BRMS daily maintenance command. 2. True or False: The WRKMEDBRM command can generate printed output.
3. True or False: Option 54 Print backup statistics will provide a summarized report about all objects that have been saved by BRMS within a specified period.
© Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. True or False: There are multiple reports that an operator can choose to generate as part of running the BRMS daily maintenance command. The answer is True. 2. True or False: The WRKMEDBRM command can generate printed output. The answer is True.
3. True or False: Option 54 Print backup statistics will provide a summarized report about all objects that have been saved by BRMS within a specified period. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List some of the reports that you can generate from the BRMS Reports menu • Highlight some of the options available on the Reports menu
© Copyright IBM Corporation 2011
Recovery
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain the features and functions of the BRMS recovery process • Explain how you use the recovery analysis report • Describe the process to do a full system recovery • Describe the process to do a partial recovery • List the advantages of using the BRMS recovery commands as opposed to using the standard restore commands • Explain how to augment the recovery process by specifying recovery contacts and activities
© Copyright IBM Corporation 2011
Recovery overview IBM i
• Recovering an entire system • Restoring objects: – IBM i objects – IFS (link information) – DLOs – Spool files
• Recovery activities and planning
© Copyright IBM Corporation 2011
The Start Recovery command IBM i
• The STRRCYBRM command options are: – *Report
(the default option for this parameter)
– *Restore
(which will start the restore process)
– Capabilities include: • • • • • • • •
*SYSTEM *ALLDLO *ALLUSR *APYJRNCHG *ASP *ASPDEV *CTLGRP *IBM
*JOURNAL *LIB *LNKLIST *RCYEXITPGM *RESUME *SAVSYS *SYSBAS
© Copyright IBM Corporation 2011
Recovery using emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Recovery command STRRCYBRM (1 of 4) IBM i
© Copyright IBM Corporation 2011
Recovery command STRRCYBRM (2 of 4) IBM i
© Copyright IBM Corporation 2011
Recovery command STRRCYBRM (3 of 4) IBM i
© Copyright IBM Corporation 2011
Recovery command STRRCYBRM (4 of 4) IBM i
© Copyright IBM Corporation 2011
User specified recovery information (1 of 2) IBM i
© Copyright IBM Corporation 2011
User specified recovery information (2 of 2) IBM i
© Copyright IBM Corporation 2011
Steps performed with recovery analysis report IBM i
Step 1: Licensed Internal Code Step 2: Operating system Step 3: Recover BRMS and associated libraries Step 4: Recover BRMS related media information Step 5: Initialize BRMS functional authority information Step 6: Recover user profiles Step 7: Recover required system libraries Step 8: Recover configuration data Step 9: Recover IBM libraries Step 10: Recover user libraries Step 11: Recover document library objects Step 12: Recover objects in directories Step 13: Apply journal changes Step 14: Restore authority Step 15: Verify system information Step 16: Print job log Step 17: Perform IPL © Copyright IBM Corporation 2011
Results of a user specified override IBM i
© Copyright IBM Corporation 2011
Recovery report: Update system information IBM i
© Copyright IBM Corporation 2011
Recovery without recovery analysis report IBM i
** This is not recommended. ** Be sure to keep the most recent copy of your recovery report for each system in a safe place at all times. • Data still exists on tape, therefore recovery is possible. • Most difficult aspects are: – Locating correct tapes to use – Deciding which objects to restore – Deciding in which sequence to restore them
• To get BRMS help, find and restore the latest QUSRBRM library. – Could perform DSPTAP of all tapes in inventory – Could use a manual procedure where you record last volume of every night's save in a log book
• Run STRRCYBRM to generate a new recovery analysis report. • Run WRKMEDBRM OUTPUT(*PRINT) to generate a list of volumes and current location. © Copyright IBM Corporation 2011
Recovery policy (1 of 3) IBM i
New in V7R1 Review help
© Copyright IBM Corporation 2011
Recovery policy (2 of 3) IBM i
© Copyright IBM Corporation 2011
Recovery policy (3 of 3) IBM i
© Copyright IBM Corporation 2011
Recovery by control group IBM i
© Copyright IBM Corporation 2011
STRRCYBRM concurrent recovery IBM i
This command supports concurrent recovery with other recovery jobs. The same recovery file is used.
© Copyright IBM Corporation 2011
Guided recovery IBM i
© Copyright IBM Corporation 2011
F9: Restore Command Defaults IBM i
© Copyright IBM Corporation 2011
Online progress screen IBM i
© Copyright IBM Corporation 2011
Recovery from incremental saves IBM i
• The last full save is restored first. • Subsequent incremental saves are performed since full save applied successfully. – Perhaps there will be some recovery of the same objects twice, but this is the only way to ensure all objects are restored correctly.
• BRMS restores to the most current level possible using the information in the BRMS history. • If both full and incremental media are available, BRMS handles the entire restore of the library.
© Copyright IBM Corporation 2011
BRMS restore commands IBM i
• Some other commonly used BRMS commands are: – RSTDLOBRM
Restore DLO
– RSTLIBBRM
Restore Library
– RSTOBJBRM
Restore Object
– RSTBRM
Restore IFS Objects
• Each command maps to the IBM i native command. • Advantages over the native restore commands: – Specific tape drive or any available drive (*MEDCLS) – Volume ID not required for restore – Ability to use parallel device resources
© Copyright IBM Corporation 2011
Other BRMS commands IBM i
The other BRMS commands that can aide in the recovery process are: • WRKMEDIBRM: Work with Media Information • WRKOBJBRM: Work with Saved Objects • WRKFLRBRM: Work with Saved Folders • WRKSPLFBRM: Work with Saved Spool Files • WRKLNKBRM: Work with IFS Saved Objects • WRKSAVFBRM: Work with Save Files
© Copyright IBM Corporation 2011
Recovery contacts and activities IBM i
GO BRMRCYPLN BRMRCYPLN
Recovery Planning
Select one of the following: 1. 2. 3. 4. 5.
Work with recovery policy Work with recovery contacts Work with recovery activities Print recovery activities Print recovery analysis
Recovery activities • Title • Up to five recovery contacts • Short text • Detailed recovery • Description (50 lines or more)
Recovery contracts • Name • Phone • Details
• Work with recovery contacts: – Add recovery contacts
• Work with recovery activities: – Add recovery activities
© Copyright IBM Corporation 2011
Recovery using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Restore system data IBM i
© Copyright IBM Corporation 2011
GUI: Start recovery command STRRCYBRM IBM i
© Copyright IBM Corporation 2011
Right-click object > Restore IBM i
© Copyright IBM Corporation 2011
Restore wizard: Welcome page IBM i
© Copyright IBM Corporation 2011
Select what objects to restore IBM i
© Copyright IBM Corporation 2011
Override disk pool and location of restore IBM i
© Copyright IBM Corporation 2011
Choose restore device IBM i
© Copyright IBM Corporation 2011
Summary page IBM i
© Copyright IBM Corporation 2011
Restore status windows IBM i
© Copyright IBM Corporation 2011
Management Central: Task Activity > BRMS IBM i
© Copyright IBM Corporation 2011
Individual item: Backup/Restore IBM i
© Copyright IBM Corporation 2011
Recovery using Systems Director Navigator for IBM i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Systems Director Navigator: Restore IBM i
© Copyright IBM Corporation 2011
GUI: WRKMEDIBRM command IBM i
© Copyright IBM Corporation 2011
GUI: Recovery of an object IBM i
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. The ______________ command recovers items ranging from a single library to the entire system. a. STRARCBRM b. STRBKUBRM c. STRRCYBRM d. STREXPBRM
2. True or False: When running a full system recovery, it is not possible to recover data from a save file.
3. True or False: It is possible to do a full system recovery without a recovery analysis report. © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. The ______________ command recovers items ranging from a single library to the entire system. a. STRARCBRM b. STRBKUBRM c. STRRCYBRM d. STREXPBRM The answer is STRRCYBRM.
2. True or False: When running a full system recovery, it is not possible to recover data from a save file. The answer is False.
3. True or False: It is possible to do a full system recovery without a recovery analysis report. The answer is True. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. The ______________ sets up the defaults used in a recovery operation. a. b. c. d.
Archive policy Backup policy Recover policy Retrieve policy
5. True or False: It is possible to perform a recovery by control group.
6. The default on the system when you run the STRRCYBRM command is __________. a. *Report b. *Restore © Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. The ______________ sets up the defaults used in a recovery operation. a. Archive policy b. Backup policy c. Recover policy d. Retrieve policy The answer is Recover policy.
5. True or False: It is possible to perform a recovery by control group. The answer is True.
6. The default on the system when you run the STRRCYBRM command is __________. a. *Report b. *Restore The answer is *Report. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain the features and functions of the BRMS recovery process • Explain how you use the recovery analysis report • Describe the process to do a full system recovery • Describe the process to do a partial recovery • List the advantages of using the BRMS recovery commands as opposed to using the standard restore commands • Explain how to augment the recovery process by specifying recovery contacts and activities
© Copyright IBM Corporation 2011
Lab exercise IBM i
• BRMS recovery capabilities • This exercise allows you to gain familiarity with some of the recovery procedures. In this lab exercise, you: – Produce a recovery analysis report – Perform the recovery of a backup control group – Examine the BRMS log – Document a sample recovery plan
© Copyright IBM Corporation 2011
Tape duplication and label print
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • List the different ways to specify that a tape label be printed • List the different options in the media class parameter used to specify that tape labels be printed • Explain the purpose and parameters for the PRTLBLBRM command • List the different ways to specify that a tape be duplicated • Explain the purpose and parameters for the DUPMEDBRM command
© Copyright IBM Corporation 2011
Duplicating tapes
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Media duplication IBM i
• Three ways to indicate inbound volumes: – Media policy: Automatic Mark for duplication parameter – WRKMEDBRM menu: • Option 14: Duplicate data • Option 18: Mark for duplication
– DUPMEDBRM command: • Key in from or to volume ID
• Two ways to initiate duplication: – DUPMEDBRM command – Duplicate tape from WRKMEDBRM (option 14)
© Copyright IBM Corporation 2011
Media policy: Mark for duplication IBM i
© Copyright IBM Corporation 2011
Example of duplication without smart append IBM i
Vol. 1
Vol. 2
• Seq 1
• Seq 1
• Seq 2
• Seq 2
• Seq 3
• Seq 3
• APPEND: • Seq 4
• Seq 4
• Seq 5
• Seq 5
• Seq 6
• Seq 6 • Seq 7 • Seq 8 • Seq 9
© Copyright IBM Corporation 2011
Example of duplication with smart append IBM i
Vol. 1 • Seq 1 • Seq 2 • Seq 3 • APPEND: • Seq 4 • Seq 5 • Seq 6
Vol. 2 • Seq 1 • Seq 2 • Seq 3 • Seq 4 • Seq 5 • Seq 6
© Copyright IBM Corporation 2011
WRKMEDBRM: Duplicate options IBM i
© Copyright IBM Corporation 2011
DUPMEDBRM command (1 of 2) IBM i
© Copyright IBM Corporation 2011
DUPMEDBRM command (2 of 2) IBM i
© Copyright IBM Corporation 2011
Completed message IBM i
• DUPMEDBRM successful: – Receive message Tape duplication completed successfully at bottom of screen
• WRKMEDBRM: – Dup Sts column changes from 1 to * to indicate that a duplication has taken place.
© Copyright IBM Corporation 2011
Option 15: Display duplicates IBM i
© Copyright IBM Corporation 2011
Duplication information from WRKMEDIBRM IBM i
© Copyright IBM Corporation 2011
DUPMEDBRM restrictions IBM i
• Volume to be duplicated must be: – Active – A member of the BRMS media inventory
• Copying a media set: – In batch mode – By specifying a volume of the media set in the From volume (VOL) parameter (Must use *SET in the Input volume list (FROMVOL) parameter.)
• You cannot duplicate TSM (ADSM) media. – *APPC or *NET devices cannot be used.
• You must have two tape drives to use this command. • Optimum block size of the output device must be greater than or equal to the optimum block size of the input device. © Copyright IBM Corporation 2011
Where BRMS jobs run IBM i
© Copyright IBM Corporation 2011
Protection of volumes marked for duplication IBM i
© Copyright IBM Corporation 2011
Considerations for duplicating tapes
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
V5R3 duplication considerations (1 of 3) IBM i
Database QUSRBRM QA1AHS
Mikey, Johnd, and so on.
• After SAVE: – Database—on DASD: • Updated • Appended to tape
QA1AMM QA1ACN
ABC123
ABC123
Mikey, Johnd, and so on.
QA1ADV QA1AMT
Qusrbrm ABC123
QA1ASP QA1A1DV QA1AMD QA1ALR QA1AOQ © Copyright IBM Corporation 2011
V5R3 duplication considerations (2 of 3) IBM i
Database QUSRBRM QA1AHS
Mikey, Johnd, and so on.
• After DUPLICATION: – Database—on DASD: • Updated
– Database—on tape: • Unchanged
QA1AMM
ABC123 DEF123
ABC123
DEF123
Mikey, Johnd, and so on.
Mikey, Johnd, and so on.
Qusrbrm ABC123
Qusrbrm ABC123
DUPMEDBRM © Copyright IBM Corporation 2011
V5R3 duplication considerations (3 of 3) IBM i
Database QUSRBRM QA1AHS
After DUPLICATION and SAVMEDIBRM: – Database—on tape:
Mikey, Johnd, and so on.
Updated
ABC123 QA1AMM
ABC123 DEF123
DEF123
Mikey, Johnd, and so on
Mikey, Johnd, and so on
Qusrbrm ABC123
Qusrbrm ABC123 Qusrbrm ABC123 DEF123
DUPMEDBRM and SAVMEDIBRM © Copyright IBM Corporation 2011
Printing labels
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Specifying label print IBM i
• WRKMEDBRM screen option 11: Mark for label print: – Used to mark a volume for label print
• Media class parameter: – Mark for print option under Add Media Class
• Media Management menu (BRMMED): – Option 7: Confirm media label print
• PRTLBLBRM
© Copyright IBM Corporation 2011
Specifying label print on WRKMEDBRM screen IBM i
© Copyright IBM Corporation 2011
Label print parameters on media class IBM i
© Copyright IBM Corporation 2011
Source member/Sample label IBM i
Sample label Source member
Volume Serial . Creation date . Expiration date Location . . . Container . . . Text . . . . .
. . . . . .
. . . . . .
. . . . . .
© Copyright IBM Corporation 2011
. . . . . .
. . . . . .
. . . . . .
: : : : : :
000023 12/20/07 12/30/07 TAPMLB01 *NONE Media class Ultrium1
Running the PRTLBLBRM command IBM i
• No parameters are associated with PRTLBLBRM. • Enter the command. – All labels marked for label print will be printed.
© Copyright IBM Corporation 2011
Checkpoint (1 of 2) IBM i
1. The command that will print labels is the __________. a. PRTMEDBRM b. PRTMOVBRM c. PRTLBLBRM d. WRKMEDBRM
2. True or False: The Media class provides parameters to print labels as part of a media movement operations.
3. True or False: The screen displayed by the WRKMEDBRM allows you to “mark” a volume for labels to be printed.
© Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. The command that will print labels is the __________. a. PRTMEDBRM b. PRTMOVBRM c. PRTLBLBRM d. WRKMEDBRM The answer is PRTLBLBRM.
2. True or False: The Media class provides parameters to print labels as part of a media movement operations. The answer is True.
3. True or False: The screen displayed by the WRKMEDBRM allows you to “mark” a volume for labels to be printed. The answer is True. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. The command used to duplicate media is the __________. a. WRKMEDBRM b. DSPDUPBRM c. DUPMEDBRM d. CPYMEDIBRM
5. True or False: The media policy provides parameters to automatically duplicate media.
6. True or False: BRMS will keep track and allow you to display details about media that has been duplicated.
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. The command used to duplicate media is the __________. a. WRKMEDBRM b. DSPDUPBRM c. DUPMEDBRM d. CPYMEDIBRM The answer is DUPMEDBRM.
5. True or False: The media policy provides parameters to automatically duplicate media. The answer is True.
6. True or False: BRMS will keep track and allow you to display details about media that has been duplicated. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • List the different ways to specify that a tape label be printed • List the different options in the media class parameter used to specify that tape labels be printed • Explain the purpose and parameters for the PRTLBLBRM command • List the different ways to specify that a tape be duplicated • Explain the purpose and parameters for the DUPMEDBRM command
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Tape duplication • This exercise provides you the opportunity to understand the process of duplicating tapes. In this lab exercise, you: – Duplicate a virtual tape to a physical tape
© Copyright IBM Corporation 2011
Functional usage
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how an administrator can limit access to BRMS • List the BRMS functions that can be secured • List and explain the parameters for the SETUSRBRM command • List the steps to secure BRMS using emulation • List the steps to secure BRMS using the System i Navigator and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Functional usage overview (1 of 2) IBM i
• Functional usage allows the administrator to secure the setup and functionality of BRMS from users. • Functional usage allows the administrator to control specific parts of the setup, such as a control group or policy. – Users would have the ability to use and view a policy, but they would not be able to change the contents.
• Simple function is provided through the SETUSRBRM command. • System i Navigator provides more tailored control. • Functional usage does not control IBM i security to BRMS objects.
© Copyright IBM Corporation 2011
Functional usage overview (2 of 2) IBM i
• Functional usage information is not shared across networked systems (must be set up at each system). • BRMS has put extra controls on its interface. – This does not replace IBM i security.
• System policy reflects whether default functional usage is used. • Denying a user access to a function through the functional usage model means that: – The function does not show on menus. – Related commands are restricted. – An access denied message is issued.
© Copyright IBM Corporation 2011
What can be secured? IBM i
• Administrators have the ability to secure the following types of functions and objects from specific users or groups of users: – Backup
- Media information
– Archive
- Specific control groups
– Recovery
- Specific lists
– Retrieval
- Specific policies
– Migration
- Basic system function in BRMS
– Media
• For a comprehensive list of individual items: – Backup, Recovery, and Media Services for I (SC41-5345) – See Chapter 11.
© Copyright IBM Corporation 2011
Functional usage using emulation
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
SETUSRBRM command: Overview IBM i
• *SECADM authority is required to use the SETUSRBRM command. • Provides a way to easily set the majority of controllable functions. • Provides two settings: – *ADMIN: • Full access to all BRMS functions
– *OPERATOR: • Basic usage to backup, archive, media, migration, movement • Restricted from recovery, retrieval, and system functions
• Can be applied to a specific user or *DEFAULT. • If a user does not have access for a requested function, they receive a BRM4040 ACCESS DENIED message. © Copyright IBM Corporation 2011
SETUSRBRM screen IBM i
• Example: – Give user *OPERATOR authority. – Changes made using the SETUSRBRM command will be reflected in System i Navigator.
© Copyright IBM Corporation 2011
Sign on as the OPERATOR AS2815 IBM i
© Copyright IBM Corporation 2011
Functional usage using System i Navigator
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Setting functional usage using Navigator IBM i
•
Allow for the tailoring of BRMS functional usage by using the following procedure: 1. Highlight your system. 2. Select File from the menu bar. 3. Select Application Administration. 4. Click the Host Application tab. 5. Expand Backup and Recovery Media Services. 6. Expand the function required. 7. Select the subfunction required. 8. Click Customize.
•
BRMS has been registered along with each of its functions.
•
System i Navigator reflects changes made with the SETUSRBRM command. © Copyright IBM Corporation 2011
iSeries Navigator: Application Administration IBM i
© Copyright IBM Corporation 2011
Host Applications tab IBM i
© Copyright IBM Corporation 2011
BRMS functions tree IBM i
© Copyright IBM Corporation 2011
Backup control group: Customize IBM i
© Copyright IBM Corporation 2011
Deny access to user AS2815 (1 of 2) IBM i
© Copyright IBM Corporation 2011
Advanced media activities: Customize IBM i
© Copyright IBM Corporation 2011
Deny access to user AS2815 (2 of 2) IBM i
© Copyright IBM Corporation 2011
Green screen: Change media IBM i
© Copyright IBM Corporation 2011
Green screen: Second-level message IBM i
© Copyright IBM Corporation 2011
Navigator: Change media IBM i
© Copyright IBM Corporation 2011
Navigator: Second-level message IBM i
© Copyright IBM Corporation 2011
Alternate method: By user IBM i
• Remove user setting: – Changes to Default access – Example: *BKUGRP © Copyright IBM Corporation 2011
Functional usage using Systems Director Navigator for i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
System: Application Administration IBM i
© Copyright IBM Corporation 2011
Host applications: BRMS IBM i
© Copyright IBM Corporation 2011
Expand BRMS > expand Backup IBM i
© Copyright IBM Corporation 2011
Choose CTLG > Customize IBM i
© Copyright IBM Corporation 2011
Select user > Add/remove > OK IBM i
© Copyright IBM Corporation 2011
Media > Advanced activities > Customize IBM i
© Copyright IBM Corporation 2011
Add/remove user authorities IBM i
© © Copyright Copyright IBM IBM Corporation Corporation 2010 2011
Functional usage IBM i
• Ability to reset functional usage during system restore: – INZBRM *SETAUT: • Is used during full system recovery: – Before user profiles are restored
• Allows you to reregister all BRMS functional authority • Is documented in the recovery analysis report: – Additional step to give QSECOFR proper authority
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. True or False: The Set User Usage for BRM (SETUSRBRM) command allows you to set or reset function usage values for a user or group profile.
2. True or False: By default, functional usage is turned off in the System policy. 3. True or False: The SETUSRBRM command allows you to set a user as either: • *Admin • *Operator
© Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. True or False: The Set User Usage for BRM (SETUSRBRM) command allows you to set or reset function usage values for a user or group profile. The answer is True. 2. True or False: By default, functional usage is turned off in the System policy. The answer is False. 3. True or False: The SETUSRBRM command allows you to set a user as either: • *Admin • *Operator The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how an administrator can limit access to BRMS • List the BRMS functions that can be secured • List and explain the parameters for the SETUSRBRM command • List the steps to secure BRMS using emulation • List the steps to secure BRMS using the System i Navigator and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Archive
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Describe the theory behind BRMS archive • List the steps to create: – Archive control groups – Archive lists
• Explain what can be set using archive control group attributes • Explain what can be set using the parameters for the archive policy • Explain the steps to perform an archive operation
© Copyright IBM Corporation 2011
Archive theory IBM i
Why archive? • To save DASD space: – Select infrequently used objects, save them to tape, and then delete from disk.
What are candidates to archive? • History files • Data required for legal reasons • Objects supplied by a package but not used for your functional requirements • Query definitions • Folders • Documents • Spool files • Journal receivers for audit • Source files • Test data • Performance data © Copyright IBM Corporation 2011
Archive considerations IBM i
• Is application structure suitable? • What inactivity period should be used to select inactive objects? • How long should archive tapes be kept? • What is the maximum allowable time for recalling archived items? • How many duplicate copies should be made of archive tapes? • Which objects will be storage freed? • What ASP should save files be put in? • Who will control the archiving? • When will archiving take place? • How many days will it be used per month? • What is the length of time to keep retrieved objects? © Copyright IBM Corporation 2011
Archive control groups IBM i
• Each group is a list of items to check for archive consideration. • An item is a library, list of objects, or keyword. • As many control groups as needed can be defined. • Each archive control group has a name which the user assigns. • Archive triggered from criteria: – Days used—less than—per month – Number of days of inactivity
• Default archive control group: – *ARCGRP—contains no entries
• STRARCBRM: – Report on archive candidates: • Down to member level • Default on command
– Perform archive
© Copyright IBM Corporation 2011
WRKCTLGBRM *ARC IBM i
© Copyright IBM Corporation 2011
Edit archive control group IBM i
© Copyright IBM Corporation 2011
Archive items IBM i
• Named items: – Library name: Archive objects from a library – Generic library name: Archive objects from multiple libraries – List name: Archive a list of objects, folders, spool files, or IFS files – *ALLDLO: Archive all document library objects – *ASPnn: Archive all objects within an ASP – *QHST: Archive old history—QHST—files
• Special operations: – *EXIT: Perform user command processing – *LOAD: Begin a new tape
© Copyright IBM Corporation 2011
Using archive lists IBM i
• Cannot use existing *BKU list • Cannot copy *BKU list • Must create new *ARC list
© Copyright IBM Corporation 2011
Object list IBM i
© Copyright IBM Corporation 2011
Folder list IBM i
© Copyright IBM Corporation 2011
Spool list (1 of 2) IBM i
© Copyright IBM Corporation 2011
Spool list (2 of 2) IBM i
© Copyright IBM Corporation 2011
Link list IBM i
© Copyright IBM Corporation 2011
Using archive lists IBM i
© Copyright IBM Corporation 2011
Archive control group setup options IBM i
The following options allow control over archive processing: • Option 8: Archive control group attributes: – Defines archive criteria for items within control group
• Option 9: Processing subsystems: – Same as for backup
• Option 10: Processing job queues: – Same as for backup
© Copyright IBM Corporation 2011
Archive control group attributes (1 of 2) IBM i
© Copyright IBM Corporation 2011
Archive control group attributes (2 of 2) IBM i
© Copyright IBM Corporation 2011
Archive criteria IBM i
• Object size • Inactivity limit: – The number of days of inactivity before an object becomes a candidate for archive – Checks last change date, last use date, or either
• Objects able to be freed: Test/archive if object is able to be saved storage freed • Objects not able to be freed: Test/archive if object cannot be saved storage freed • Retain object description: STG(*FREE) versus *KEEP • Days used per month: Less than (XX) A typical object Object description
• Advantages of STG(*FREE): – Required for auto-recall: • Must use restore otherwise
Object content
– Retains private authorities – IBM i is aware of objects
© Copyright IBM Corporation 2011
Archive IBM i
• Objects able to be saved with STG(*FREE) keyword: – *FILEs, *PGMs, *SQLPKGs, *DLOs, *JRNRCVs, *MODULEs, *SRVPGMs, and IFS
• Retain object description: *YES means save with STG(*FREE). • Retain object description: *NO means normal save, then delete. • Objects not able to be freed—all other object types *YES/*NO • Works in conjunction with *INC/*EXC on archive list: – All must agree before objects are archive candidates.
© Copyright IBM Corporation 2011
Duplicating archive tapes IBM i
• Once archived, only one copy of the data exists. • There is a possibility for data loss if media error or tape lost. • Make a copy at archive time with DUPMEDBRM.
© Copyright IBM Corporation 2011
Archive policy (1 of 2) IBM i
© Copyright IBM Corporation 2011
Archive policy (2 of 2) IBM i
© Copyright IBM Corporation 2011
Perform archive IBM i
• Enter archive control group name. • Enter STRARCBRM command; choose either: – *REPORT (This is default) – *ARCHIVE
• Enter schedule time (24-hour clock). • Select *YES or *NO for submitting to batch. • Use F9 for further options to change the job description or the job queue. © Copyright IBM Corporation 2011
Archive candidate report IBM i
• Lists objects which meet criteria: – Verify information. Display Spooled File File . . . . . : QP1AARC Control . . . . . Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8... 5770BR1 V7R1M0 Archive Object Candidate Report Control group . . . . . . . . . . . . : ARCHIVELIB ASP storage threshold . . . . . . . . : 0 Date type for archival . . . . . . . . : *USE Inactivity date . . . . . . . . . . : 4/14/11 Object size greater than . . . . . . . : 0 Objects able to be freed . . . . . . . : *YES Retain object description . . . . . : *YES Objects not able to be freed . . . . . : *YES Days used (per month) less than . . . : 0 List Library Object Member Type Attribute Size Name TONIB BRMSLPP *FILE SAVF 24,576 *LIB TONIB BRMSLPP1 *FILE SAVF 364,929,024 *LIB TONIB BRMSLPP2 *FILE SAVF 1,601,536 *LIB TONIB BRMSLPP3 *FILE SAVF 290,816 *LIB TONIB CUSMSI CUSMSI *FILE PF 8,192 *LIB TONIB CUSMST CUSMST *FILE PF 8,192 *LIB TONIB EVFEVENT TEST *FILE PF 8,192 *LIB © Copyright IBM Corporation 2011
Other archive options IBM i
• Display Archive Activity: – DSPLOGBRM with Type *ARC
• Work with Archive Media Information: – WRKMEDIBRM with Save type *ARC
BRMARCACT
Display Archive Activity
Select one of the following: 1. 2. 3. 4.
Display log Display archive exceptions Work with archive media information Resume retrieval of archived objects Display Log for BRM (DSPLOGBRM)
Type choices, press Enter. Type . . . . . . . . . . . . *MA... Time period for log output: Start time and date: Beginning time . . . . . . Beginning date . . . . . . End time and date: Ending time . . . . . . . Ending date . . . . . . . Severity . . . . . . . . . . Output . . . . . . . . . . .
. .
*ARC
*ALL, *ARC, *BKU, *MED,
. . . .
*AVAIL *CURRENT
Time, *AVAIL Date, *CURRENT, *BEGIN
. . . .
*AVAIL *CURRENT 00 *
Time, *AVAIL Date, *CURRENT, *END 00-99 *, *PRINT
. . . .
Work with Media Information (WRKMEDIBRM) Type choices, press Enter. Library . . . . . . . . . . . . *ALL Volume . . . . . . . . . . . . . *ALL Auxiliary storage pool . . . . . *ALL Control group . . . . . . . . . *ALL *SY... Save type . . . . . . . . . . . > *ARC ... + for more values Select dates: From date . . . . . . . . . . *BEGIN nnnnn To date . . . . . . . . . . . *END Save status . . . . . . . . . . *ALL Sequence option . . . . . . . . *DATE Entries to be displayed first . *LAST © Copyright IBM Corporation 2011
Name, generic*, *ALL... Character value, *ALL Name, 1-255, *ALL, *SYSTEM *ALL, *SYSTEM, *BKUGRP, *ALL, *FULL, *CUML, *INCR,
Date, *CURRENT, *BEGIN, Date, *CURRENT, *END, nnnnn *ALL, *NOERROR, *ERROR *DATE, *LIB, *VOL *LAST, *FIRST
Work with archive history IBM i
• WRKMEDIBRM SAVTYPE(*ARC) • Save type set to *ARC • Perform all operations available for save operations: – Restore – Work with saved objects – And so forth
Work with Media Information
I520DVL3
Position to Date . . . . . Type options, press Enter. 2=Change 4=Remove 5=Display 9=Work with saved objects ... Saved Opt Item TONIB1 TONIB1 TONIB1
6=Work with media
Save Save Save Date Time Type 6/23/06 12:00:29 *ARC 6/23/06 12:00:30 *ARC 6/23/06 12:01:03 *ARC
Parallel Volume Devices Serial 000027 000027 000027
© Copyright IBM Corporation 2011
7=Restore
File Sequence 0 0 0
Expire Date *NONE *NONE *NONE
Checkpoint (1 of 2) IBM i
1. The command used to archive data is: a. b. c. d.
STRBKUBRM STRRCYBRM STRARCBRM STRMGRBRM
2. True or False: A backup control group can be copied to create an archive control group.
3. The Default activity parameter in an archive control group is set to: a. b. c. d.
*SYSPCY FFFFFFF *ARCPCY ******* © Copyright IBM Corporation 2011
Checkpoint solutions (1 of 2) IBM i
1. The command used to archive data is: a. STRBKUBRM b. STRRCYBRM c. STRARCBRM d. STRMGRBRM The answer is STRARCBRM.
2. True or False: A backup control group can be copied to create an archive control group. The answer is False. 3. The Default activity parameter in an archive control group is set to: a. *SYSPCY b. FFFFFFF c. *ARCPCY d. ******* The answer is *ARCPCY. © Copyright IBM Corporation 2011
Checkpoint (2 of 2) IBM i
4. True or False: By default the STRARCBRM command will generate a report.
5. True or False: Libraries and folders are objects that can be archived.
6. True or False: An object list that was created for backup can also be used for archive processing.
© Copyright IBM Corporation 2011
Checkpoint solutions (2 of 2) IBM i
4. True or False: By default the STRARCBRM command will generate a report. The answer is True.
5. True or False: Libraries and folders are objects that can be archived. The answer is True.
6. True or False: An object list that was created for backup can also be used for archive processing. The answer is False. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Describe the theory behind BRMS archive • List the steps to create: – Archive control groups – Archive lists
• Explain what can be set using archive control group attributes • Explain what can be set using the parameters for the archive policy • Explain the steps to perform an archive operation
© Copyright IBM Corporation 2011
Retrieval
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how the retrieve function works in BRMS • List the steps to perform retrieve operations: – Immediate – Delayed
• List the commands used in BRMS to retrieve data • Explain the parameters for the retrieve commands • Explain the parameters used in the retrieve policy
© Copyright IBM Corporation 2011
Dynamic retrieval of archived files IBM i
• Objects archived with the STG(*FREE) parameter: – Leave object description in place – Down to member level
• These objects can be dynamically retrieved upon access, such as file open. • Seamless operation if using tape library: – Stand-alone drive would be restore operation.
• Retrieve operations can be performed in: – Batch – Interactive – Set for later retrieval: • Based on the retrieve policy
© Copyright IBM Corporation 2011
Retrieval policy overview IBM i
• Device—tape drive device name or *MEDCLS • Batch and interactive controls • ASP high storage threshold • Reset days used count • Parallel device resources • Retention of object • Extend retention on usage: – Object automatically deleted from system: • By retention or extend retention • Deleted during maintenance command
© Copyright IBM Corporation 2011
Retrieval policy IBM i
© Copyright IBM Corporation 2011
*VERIFY example (1 of 2) IBM i
• Perform an operation to open a file, for example: – DSPPFM
• Retrieve policy setting: – Retrieve confirmation set to *VERIFY
• Verification screen is displayed: Job 026468/AS2801/SSLOPEZIA2 started on 05/22/08 at 13:33:49 in subsystem QI Message queue AS2801 is allocated to another job. Retrieving PAYMAST1 in library PAYLIB301. (C G I S)
Type reply, press Enter. Reply . . .
© Copyright IBM Corporation 2011
*VERIFY example (2 of 2) IBM i
© Copyright IBM Corporation 2011
Set retrieve command (1 of 2) IBM i
• SETRTVBRM command: – Looks the same as retrieve policy screen: • Takes the default operation from the retrieve policy • Modifies retrieve controls for the job that issues the command
– Storage threshold: • Will not restore an object if the ASP threshold would be exceeded
• DSPLOGBRM TYPE(*RTV) command: – Will include messages issued during retrieve operations
© Copyright IBM Corporation 2011
Set retrieve command (2 of 2) IBM i
© Copyright IBM Corporation 2011
Retrieval operations IBM i
• File members are not retrieved immediately if: – User/retrieve policy selects delayed restore – User has insufficient authority – Restore will exceed ASP threshold
• Use RSMRTVBRM command to continue retrieval. Resume Retrieve using BRM (RSMRTVBRM) Type choices, press Enter. Retrieve select . . . Action . . . . . . . . Confirm retrieval . . Auxiliary storage pool Item type . . . . . .
. . . . . . . . . . . . . . . . . . .
. . . . .
*ALL *RETRIEVE *YES *ALL *LIB
*ALL, *DELAY, *SECURITY... *RETRIEVE, *REPORT *YES, *NO Name, *ALL, *SYSTEM, 1, 2... *LIB, *FLR, *LNK
Confirm Retrieve Retrieve select . . . :
*ALL
Type options, press Enter. Press F16 to confirm all. 1=Confirm 4=Remove 5=Display Opt _ _
Library PAYLIB1 PAYLIB1
Object PAYMASTA PAYMASTA
Member DEC06HIST NOV06HIST
Volume ABC123 ABC123
© Copyright IBM Corporation 2011
Asp 01 01
Size (M) 284 271
User CRAIG CRAIG
Checkpoint IBM i
1. True or False: The Recovery policy sets the defaults used in the retrieval of archived data.
2. True or False: The controls set through the SETRTVBRM will override the values in the retrieve policy.
3. True or False: An object that was archived on System A can be restored onto System B.
© Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. True or False: The Recovery policy sets the defaults used in the retrieval of archived data. The answer is False.
2. True or False: The controls set through the SETRTVBRM will override the values in the retrieve policy. The answer is True.
3. True or False: An object that was archived on System A can be restored onto System B. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how the retrieve function works in BRMS • List the steps to perform retrieve operations: – Immediate – Delayed
• List the commands used in BRMS to retrieve data • Explain the parameters for the retrieve commands • Explain the parameters used in the retrieve policy
© Copyright IBM Corporation 2011
Lab exercise IBM i
• Archive/retrieve using 5250 emulation • This exercise allows you to gain familiarity with some archive procedures. – Create an archive control group – Perform an archive – Perform dynamic retrieval of an object
© Copyright IBM Corporation 2011
TSM Client and BRMS on IBM i
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Unit objectives IBM i
After completing this unit, you should be able to: • Explain how BRMS works in conjunction with a TSM server • List the steps required to back up to a TSM server
© Copyright IBM Corporation 2011
Why the TSM Client? IBM i
Simplified management of enterprise backups
• Centralized administration of multiple servers and clients
• Many enterprises have selected TSM as the product of choice to control the recovery of their systems and data.
© Copyright IBM Corporation 2011
Advantages of TSM Client IBM i
• Has low-volume user data • Has look and feel of BRMS and POWER i: – Not a TSM backup
• Communicates through set of APIs for the Tivoli Storage Manager • Can use BRMS policies to save non-system objects across a network for storage on TSM server • Reduces amount of media required at off-site location • Reduces amount of time spent managing media • Minimizes device purchases © Copyright IBM Corporation 2011
Restrictions for TSM Client IBM i
• Save while active (SWA) *SYNCLIB is not supported. • Cannot save system data to TSM server: – Must save to tape
• Cannot save BRMS database (media information) to TSM server: – Must save to tape
• Cannot schedule operations from a TSM server: – Can schedule save to a TSM server
• BRMS uses own media policies for retention and expiration: – TSM policies not used © Copyright IBM Corporation 2011
Software requirements IBM i
• IBM i Media Storage Extensions feature: – 5761SS1 - Option 18
• Backup, Recovery, and Media Services for iSeries: – 5761BR1 (base feature)
• Tivoli Storage Manager application programming interface (API) for POWER i: – Can be downloaded from BRMS Internet site: • Check the Web site for the correct API for your IBM i release.
• Client (user) license on the TSM server © Copyright IBM Corporation 2011
Communications IBM i
VM OS/2 POWER i MVS AIX Solari HP-UX s Windows NT
TCP/IP TCP/IP APPC Other TSM servers POWER i application client to TSM
© Copyright IBM Corporation 2011
TSM server
Setting up BRMS IBM i
BRMS storage location
BRMS device *NET *APPC
Install TSM application APIs
Register with TSM server
BRMS control group
© Copyright IBM Corporation 2011
BRMS TSM media policy
Setting up BRMS: Register node IBM i
TSM can allow either OPEN or CLOSED registration. The POWER i application client requires that the TSM administrator perform an explicit, or CLOSED, registration of the iSeries as a TSM node.
TSM administrator REGISTER NODE Network-id.Default-Local-Location Password
© Copyright IBM Corporation 2011
Install TSM APIs IBM i
• Download APIs from BRMS Web site. • Follow installation instructions. – Change QSYSOPR message queue to *Break and Sev95.
© Copyright IBM Corporation 2011
Create BRMS storage location IBM i
• Create a location so that BRMS knows where to locate the media. – (Information contained on the TSM server)
© Copyright IBM Corporation 2011
Communication device IBM i Work with Devices Position to . . . . . .
Starting characters
Type options, press Enter. 1=Add 2=Change 4=Remove 10=Work with status Opt
5=Display
F1
Device
Category
Type/Model
Text
BRMSTSM LANTAP TAPMLB07 TAP01 TAP07
*NET *TAP *TAPMLB *TAP *TAP
*TCPIP 63100/001 35101/017 63106/001 63100/001
adsm Entry Entry Entry Entry
*APPC This device is only used with a TSM (ADSM) server. BRMS does not automatically configure this device for you. You must enter device information. A device with category *APPC is a device that supports SNA protocol.
*NET This device is only used with a TSM server. BRMS does not automatically configure this device for you. You must enter device information. A device with category *NET is a device that supports TCPIP/protocol.
created created created created
by by by by
BRM BRM BRM BRM
configuration configuration configuration configuration
There are two communication protocols that can be used with the TSM Client: TCP/IP and APPC. Both can be used to communicate with a TSM server. TCP/IP will be the most common way to communicate with other TSM server platforms. The type of communication protocol is established through the creation of either a *NET or *APPC device using the WRKDEVBRM command.
© Copyright IBM Corporation 2011
Create *NET or *APPC device IBM i
• WRKDEVBRM - ADD *NET/*APPC Add Net Device Net device
. . . . . . . . . . . :
BRMSTSM
Type choices, press Enter. Text
. . . . . . . . . . . . . . .
Location
. . . . . . . . . . . . .
TSM file space
. . . . . . . . . .
AIX TSM Server BRMSTSM
Name, F4 for list
*LCL
Buffer size . . . . . . . . . . . .
*DEVTYPE
*DEVTYPE, 1-512 KB
Internet address . . . . . . . . . Internet port . . . . . . . . . . .
10.91.133.192 111050 1-65534
Add APPC Device APPC device . . . .. . . . . : Text
. . . . . . .
Location
. . .
BRMSTSM1
TSM Server
. . . . . . . . . . . . .
TSM file space . . . . . . . . . . Buffer size . . . . . . . . . . . .
© Copyright IBM Corporation 2011
BRMSTSM Name, F4 for list *LCL *DEVTYPE
*DEVTYPE, 1-31 KB
Create a TSM media policy IBM i
• Media policy points BRMS to the TSM server instead of tape. – BRMS views the disk space on the TSM server as media. – BRMS expires media based on this policy.
© Copyright IBM Corporation 2011
TSM retention protection IBM i
© Copyright IBM Corporation 2011
Create a TSM control group IBM i
• Control group ties all policies together.
© Copyright IBM Corporation 2011
Recovery report IBM i
© Copyright IBM Corporation 2011
Back up and restore user data to the TSM server IBM i
• WRKMEDIBRM: – Information about the save – Restore Work with Media Information
i520DVL3
Position to Date . . . . . Type options, press Enter. 2=Change 4=Remove 5=Display 9=Work with saved objects ... Saved Opt Item LIB05 LIB07 LIB10 LIB11 LIB12 LIB13 LIB14 LIB188 *LINK LIB01
6=Work with media
Save Save Save Date Time Type 7/30/07 9:03:37 *FULL 7/30/07 9:03:39 *FULL 7/30/07 9:03:44 *FULL 7/30/07 9:03:53 *FULL 7/30/07 9:03:57 *FULL 7/30/07 9:03:59 *FULL 7/30/07 9:04:02 *FULL 7/30/07 9:04:04 *FULL 7/30/07 10:43:01 *FULL 10/31/07 11:03:10 *FULL
Parallel Volume Devices Serial *ADSM *ADSM *ADSM *ADSM *ADSM *ADSM *ADSM *ADSM *ADSM *ADSM
© Copyright IBM Corporation 2011
7=Restore
File Sequence 0 0 0 0 0 0 0 0 0 0
Expire Date 10/01/07 10/01/07 10/01/07 10/01/07 10/01/07 10/01/07 10/01/07 10/01/07 10/01/07 12/02/07 Bottom
TSM performance report IBM i
Go BRMRPT Option 53 Display Spooled File File
. . . . . :
Control . . . . . Find
. .. . . . .
QP1ATSMRPT __________ ___________________________________________
*...+....1....+....2....+....3....+....4....+....5....+....6.... ---------------------------------------------------------------The following summarizes the BRMS save rate save data can be passed to the TSM API.
Entry Job
1 . . . . . . . . . . . . . . :
05461010
Job user . . . . . . . . . . . . :
ITSCID07
Date . . . . . . . . . . . . . . :
01/110/07
Time . . . . . . . . . . . . . . :
07:27:10
Number of blocks . . . . . . . . : Average block size . . . . . . . :
1 3610100
(bytes)
Average block time . . . . . . . :
.121
(seconds)
Fastest block time . . . . . . . :
.121
(seconds)
Slowest block time . . . . . . . :
.121
(seconds)
Save rate
. . . . . . . . . . . :
1.4510
© Copyright IBM Corporation 2011
(billions of bytes each hour)
A review of the process IBM i
• The POWER i is an application client using BRMS as the application using TSM APIs with limited TSM function. • New BRMS devices and media policies are used in conjunction with the TSM APIs. • Recovery is from a BRMS viewpoint. • Any TSM server can be the target.
© Copyright IBM Corporation 2011
Checkpoint IBM i
1. True or False: Using BRMS in conjunction with Tivoli client software will allow you to save data to a Tivoli server. 2. True or False: A full system backup can be performed to a Tivoli server.
3. True or False: The start recovery BRMS STRRCYBRM command will allow you to recover data from a TSM server.
© Copyright IBM Corporation 2011
Checkpoint solutions IBM i
1. True or False: Using BRMS in conjunction with Tivoli client software will allow you to save data to a Tivoli server. The answer is True.
2. True or False: A full system backup can be performed to a Tivoli server. The answer is False.
3. True or False: The start recovery BRMS STRRCYBRM command will allow you to recover data from a TSM server. The answer is True. © Copyright IBM Corporation 2011
Unit summary IBM i
Having completed this unit, you should be able to: • Explain how BRMS works in conjunction with a TSM server • List the steps required to backup to a TSM server
© Copyright IBM Corporation 2011
Summary
Powertm with IBM i © Copyright IBM Corporation 2011 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
6.0
Course objectives IBM i
Having completed this course you should now be able to: • Describe the major features and functions of BRMS • List the steps to install BRMS on a single system or in a network environment • Implement a previously defined backup and recovery strategy using BRMS • Implement a previously defined archival and retrieval plan, including dynamic retrieval using BRMS • Explain how to utilize a tape library, virtual tape, and optical drive with BRMS • Implement and use BRMS using the green screen, System i Navigator, and Systems Director Navigator for i
© Copyright IBM Corporation 2011
Additional BRMS skills: OV290 IBM i
© Copyright IBM Corporation 2011
Fill out the class evaluation IBM i
https://elabgateway.moppssc.com Requires: Class number Course code
© Copyright IBM Corporation 2011