|
Because IBM i Linux integration support combines two operating systems (Linux and IBM i), you can choose to manage your backups by using either IBM i or Linux utilities or a combination of both.
Full IBM i backup:
A full IBM i system backup automatically backs up any integrated server components that are on that system (unless someone has changed the backup and removed those components). To take a full system backup:
1. On the IBM i command line, type GO SAVE and press Enter.
2. On the Save screen that appears, choose:
Option 21 to save the entire system
Option 22 to save just system data
Option 23 to save just user data
Linux operating system:
The Linux operating system and the files required to start the Linux server are located on the system and install drives of the server. The server storage spaces that contain these drives are in IFS directory QFPNWSSTG on IBM i. The structure of integrated servers allows you to save these drives on IBM i and restore them in case of damaged or deleted files. For example, to replace a damaged kernel, you can restore the Linux system drive.
Daily backup of the system drive is a good idea. You can save these files to tape or to a save file that is stored on IBM i. To save them to a save file, use the SAV command with the compression option enabled. For example:
SAV DEV('/QSYS.LIB/LINUXBAK.LIB/SYSDRIVE.FILE')
OBJ('/QFPNWSSTG/nwsdname1') DTACPR(*YES)
Note: With i 6.1, you can perform the above SAV command while the server is active by adding the following parameters to the SAV command:
SAVACT(*YES) SAVACTOPT(*NWSSTG)
This takes advantage of the storage space snapshot support.
For prior releases, the NWSD must be varied off prior to running the SAV command.
See the backup and recovery topics listed at the top of this page.
User data (using user-defined storage spaces):
On IBM i you can save each user storage space with this command:
SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ(('/QFPNWSSTG/stgspc'))
Prior to i 6.1: To save a storage space in user a auxiliary storage pool, use this command:
SAV DEV('/QSYS.LIB/TAP01.DEVD')
OBJ(('/QFPNWSSTG/stgspc')('dev/QASPnn/stgspc.UDFS'))
Note: With i 6.1, you can perform the first SAV command listed above while the server is active by adding the following parameters to the SAV command:
SAVACT(*YES) SAVACTOPT(*NWSSTG)
This takes advantage of the storage space snapshot support.
For prior releases, the NWSD must be varied off prior to running the SAV command.
You cannot restore individual files from this backup. If you need to restore files or directories individually, use the following method.
User data (using individual files):
If you need the ability to restore individual files, use one of these options:
- Integrated file save/restore from IBM i for iSCSI attached servers with i 6.1. File-level backup and recovery of Linux data is enabled through IBM i. This support is enabled through the IBM i NetClient file system (QNTC) of the Integrated File System. This function enables customers to incorporate incremental saving of files associated with a network server description into their existing IBM i backup procedures. In addition, the files saved through this method can be individually restored if needed.
- Linux backup utility. On Linux, any of the built in (e.g. tar) or add-on backup applications can be used. See the Linux backup application documentation for information about using these applications.
Note: This method can be combined with the dynamic disk drive unlinking support (See Unlinking integrated server disks in the Information Center). This provides an alternative method to include file-level backups of Linux data with IBM i backups.
- Use IBM i NetServer to copy files from the Linux server into the IBM i Integrated File System (IFS). For example, map a network drive from the Linux server to a directory in IFS. Then use a suitable Linux backup utility (for example, tar) to save the Linux files to the network drive.
|