Professional Documents
Culture Documents
5.2
Unit objectives
IBM Power Systems
Backup introduction
IBM Power Systems
Types of backup:
Volume group
mksysb utility which records an image backup of the operating system
savevg utility which performs a full backup of a user-created VG
Full
Backs up all specified data
Incremental
Records changes since previous backups
smit mksysb
/usr/bin/mksysb -i /backups/my_mksysb
Back
Back Up
Up the
the System
System
** Backup
Backup DEVICE
DEVICE or
or FILE
FILE
Create
MAP
files?
Create MAP files?
EXCLUDE
EXCLUDE files?
files?
List
List files
files as
as they
they are
are backed
backed up?
up?
Verify
Verify readability
readability if
if tape
tape device?
device?
Generate
Generate new
new /image.data
/image.data file?
file?
EXPAND
EXPAND /tmp
/tmp if
if needed?
needed?
Disable
Disable software
software packing
packing of
of backup?
backup?
Backup
Backup extended
extended attributes?
attributes?
(Leave
blank
to
use
a
system
(Leave blank to use a system default)
default)
Location
Location of
of existing
existing mksysb
mksysb image
image
File
File system
system to
to use
use for
for temporary
temporary work
work space
space
(If
blank,
/tmp
will
be
used.)
(If blank, /tmp will be used.)
Back
Back up
up encrypted
encrypted files?
files?
Back
up
DMAPI
Back up DMAPI filesystem
filesystem files?
files?
[/backups/my_mksysb]
[/backups/my_mksysb]
no
no
no
no
no
no
Backup to tape, for
no
no
example /dev/rmt0 is
yes
yes
also popular
no
no
no
no
yes
yes
[]
[]
[]
[]
yes
yes
No
No
+/
+/
++
++
++
++
++
++
++
++
//
//
++
++
image.data file
IBM Power Systems
bosinst.data file
IBM Power Systems
GRAPHICS_BUNDLE = yes
MOZILLA_BUNDLE = no
KERBEROS_5_BUNDLE = no
SERVER_BUNDLE = yes
ALT_DISK_INSTALL_BUNDLE = no
locale:
BOSINST_LANG = en_US
CULTURAL_CONVENTION = en_GB
MESSAGES = en_US
KEYBOARD = en_GB
target_disk_data:
PVID =
PHYSICAL_LOCATION =
CONNECTION =
LOCATION =
SIZE_MB =
HDISKNAME = hdisk0
Blocksize =
512
Blocksize =
512
Blocksize =
512
Tape Drive
Blocksize
BOS Boot
mkinsttape
dummy
rootvg
image
image
1st Section
2nd Section
1
Kernel
Device Drivers
backup image
.toc
3rd Section
2
./image.data
./bosinst.data
./tapeblksz
4th Section
3
Dummy TOC
OR
Backup
by name
From the SMS Menu, boot the system from the tape device.
Restore mksysb image from the device, that is, tape
(/dev/rmt0), as follows:
Welcome
Welcome to
to Base
Base Operating
Operating System
System
Installation
and
Installation and Maintenance
Maintenance
11
22
>>
>> 33
44
>>
>>
11
22
33
44
66
Tape
Tape Drive
Drive
>>
>> 11
Start
Start Install
Install Now
Now With
With Default
Default Settings
Settings
Change/Show
Change/Show Installation
Installation Settings
Settings and
and Install
Install
Start
Maintenance
Mode
for
System
Recovery
Start Maintenance Mode for System Recovery
Configure
Configure Network
Network Disks
Disks (iSCSI)
(iSCSI)
Access
Access AA Root
Root Volume
Volume Group
Group
Copy
Copy aa System
System Dump
Dump to
to Removable
Removable Media
Media
Access
Advanced
Maintenance
Access Advanced Maintenance Functions
Functions
Erase
Erase Disks
Disks
Install
Install from
from aa System
System Backup
Backup
tape/scsi/4mm/2GB
tape/scsi/4mm/2GB
Path
Path Name
Name
/dev/rmt0
/dev/rmt0
Welcome
Welcome to
to Base
Base Operating
Operating System
System
Installation
Installation and
and Maintenance
Maintenance
Type
Type the
the number
number of
of your
your choice
choice and
and press
press Enter.
Enter. Choice
Choice is
is indicated
indicated by
by >>.
>>.
11
Start
Install
Now
With
Default
Settings
Start Install Now With Default Settings
>>
22
Change/Show
>>
Change/Show Installation
Installation Settings
Settings and
and Install
Install
33
Start
Maintenance
Mode
for
System
Recovery
Start Maintenance Mode for System Recovery
44
Configure
Configure Network
Network Disks
Disks (iSCSI)
(iSCSI)
55
Select
Select Storage
Storage Adapters
Adapters
System
System Backup
Backup Installation
Installation and
and Settings
Settings
Type
Type the
the number
number of
of your
your choice
choice and
and press
press Enter.
Enter.
11
Disk(s)
hdisk0
Disk(s) where
where you
you want
want to
to install
install
hdisk0
Use
No
Use Maps
Maps
No
Shrink
No
Shrink Filesystems
Filesystems
No
Import
No
Import User
User Volume
Volume Groups
Groups
No
Recover
No
Recover devices
devices
No
Install
Install with
with the
the settings
settings listed
listed above
above
22
33
44
00
Installing
Installing Base
Base Operating
Operating System
System
Please
Please wait...
wait...
Approximate
Elapsed
Approximate
Elapsed time
time
%% tasks
tasks complete
complete (in
(in minutes)
minutes)
33
00
Making
Making logical
logical volumes
volumes
PowerPC
PowerPC Firmware
Firmware
Version
Version SF240_338
SF240_338
SMS
1.6
SMS 1.6 (c)
(c) Copyright
Copyright IBM
IBM Corp.
Corp. 2000,2005
2000,2005 All
All rights
rights reserved.
reserved.
------------------------------------------------------------------------------------------------------------------------------------------------------------Main
Main Menu
Menu
1.
1. Select
Select Language
Language
2.
2. Setup
Setup Remote
Remote IPL
IPL (Initial
(Initial Program
Program Load)
Load) #then
#then select
select the
the adapter
adapter && IP
IP Parameters
Parameters
3.
Change
SCSI
Settings
3.
Change SCSI Settings
4.
4. Select
Select Console
Console
5.
Select
5.
Select Boot
Boot Options
Options
IP
IP Parameters
Parameters
Interpartition
Interpartition Logical
Logical LAN:
LAN: U9113.550.65F2E7F-V9-C3-T1
U9113.550.65F2E7F-V9-C3-T1
1.
[10.47.1.21]
1. Client
Client IP
IP Address
Address
[10.47.1.21]
2.
Server
IP
Address
[10.47.1.33]
2.
Server IP Address
[10.47.1.33]
3.
[000.000.000.000]
3. Gateway
Gateway IP
IP Address
Address
[000.000.000.000]
4.
[255.255.0.0]
4. Subnet
Subnet Mask
Mask
[255.255.0.0]
BOOTP R = 1 BOOTP S = 2
FILE: /tftpboot/alex.lpar.co.uk
FINAL Packet Count = 27900
FINAL File Size = 14284288 bytes.
load-base=0x4000
real-base=0x2000000
Installing
Installing Base
Base Operating
Operating System
System
Please wait...
Please wait...
Approximate
Elapsed time
Approximate
Elapsed time
% tasks complete
(in minutes)
% tasks complete
(in minutes)
3
3
0
0
smit savevg
** Backup
Backup DEVICE
DEVICE or
or FILE
FILE
** VOLUME
GROUP
to
VOLUME GROUP to back
back up
up
List
List files
files as
as they
they are
are backed
backed up?
up?
Generate
new
vg.data
file?
Generate new vg.data file?
Create
Create MAP
MAP files?
files?
EXCLUDE
EXCLUDE files?
files?
EXPAND
EXPAND /tmp
/tmp if
if needed?
needed?
Disable
software
Disable software packing
packing of
of backup?
backup?
Backup
Backup extended
extended attributes?
attributes?
Number
of
BLOCKS
to
write
in
Number of BLOCKS to write in aa single
single output
output
(Leave
blank
to
use
a
system
(Leave blank to use a system default)
default)
Verify
Verify readability
readability if
if tape
tape device?
device?
Back
up
Volume
Group
information
Back up Volume Group information files
files only?
only?
Back
Back up
up encrypted
encrypted files?
files?
Back
Back up
up DMAPI
DMAPI filesystem
filesystem files?
files?
[/tmp/datavg_bk_svg]
[/tmp/datavg_bk_svg]
[datavg]
[datavg]
no
no
yes
yes
no
no
no
no
no
no
no
no
yes
yes
[]
[]
no
no
no
no
yes
yes
no
no
+/
+/
++
++
++
++
++
++
++
++
##
++
++
++
++
smit restvg
/usr/bin/restvg -q f /tmp/datavg_bk_svg
Remake
Remake aa Volume
Volume Group
Group
** Restore
[/tmp/datavg_bk_svg]
Restore DEVICE
DEVICE or
or FILE
FILE
[/tmp/datavg_bk_svg]
SHRINK
no
SHRINK the
the filesystems?
filesystems?
no
Recreate
logical
volumes
and
filesystems
only?
no
Recreate logical volumes and filesystems only?
no
PHYSICAL
[]
PHYSICAL VOLUME
VOLUME names
names
[]
(Leave
(Leave blank
blank to
to use
use the
the PHYSICAL
PHYSICAL VOLUMES
VOLUMES listed
listed
in
in the
the vgname.data
vgname.data file
file in
in the
the backup
backup image)
image)
Use
yes
Use existing
existing MAP
MAP files?
files?
yes
Physical
[]
Physical partition
partition SIZE
SIZE in
in megabytes
megabytes
[]
(Leave
(Leave blank
blank to
to have
have the
the SIZE
SIZE determined
determined
based
based on
on disk
disk size)
size)
Number
of
BLOCKS
to
read
in
a
single
[]
Number of BLOCKS to read in a single input
input
[]
(Leave
blank
to
use
a
system
default)
(Leave blank to use a system default)
Alternate
[]
Alternate vg.data
vg.data file
file
[]
(Leave
blank
to
use
vg.data
stored
in
(Leave blank to use vg.data stored in
backup
backup image)
image)
+/
+/
++
++
++
++
+#
+#
##
//
AIX
Backup and restore
tar
cpio
pax
dd
Compression Utilities
Compress, restore using uncompress or zcat
gzip, restore using gunzip
Absolute Paths
## find
find /home/aix
/home/aix || backup
backup -iqvf
-iqvf /dev/rmt0
/dev/rmt0
Relative Paths
## cd
cd /home/aix
/home/aix
## find
find .. || backup
backup -iqvf
-iqvf /backup/aix.backup
/backup/aix.backup
List files
## restore
restore -Tvf
-Tvf /backup/aix.backup
/backup/aix.backup
## restore
restore -xvf
-xvf /backup/aix.backup
/backup/aix.backup
## restore
restore -xvf
-xvf /tmp/aix.backup
/tmp/aix.backup ./file1
./file1
Extract (restore)
files
Extract individual
file
Full backup
## backup
backup -u
-u -0
-0 -f
-f /tmp/databkup_21Oct_level0
/tmp/databkup_21Oct_level0 /data
/data
## backup
backup -u
-u -1
-1 -f
-f /tmp/databkup_21Oct_level1
/tmp/databkup_21Oct_level1 /data
/data
## cat
cat /etc/dumpdates
/etc/dumpdates
/dev/rfslv00
/dev/rfslv00 11 Tue
Tue Oct
Oct 21
21 15:45:21
15:45:21 2008
2008
/dev/rfslv00
0
Tue
Oct
21
15:40:54
2008
/dev/rfslv00 0 Tue Oct 21 15:40:54 2008
Incremental backup
Backup history
## restore
restore -rqvf
-rqvf /tmp/databkup_21Nov_level0
/tmp/databkup_21Nov_level0
## restore
restore -rqvf
-rqvf /tmp/databkup_21Nov_level1
/tmp/databkup_21Nov_level1
tar command
IBM Power Systems
cpio command
IBM Power Systems
pax command
IBM Power Systems
dd command
IBM Power Systems
Writing to a tape
drive on a remote
machine
Compression commands (1 of 2)
IBM Power Systems
zcat, expands a
compressed file to
standard out.
Compression commands (2 of 2)
IBM Power Systems
Creates a
compressed
tarball (.tar.gz)
of the /data
directory.
Good practices
IBM Power Systems
Checkpoint
IBM Power Systems
1.
2.
3.
4.
True or False: smit mksysb backs up all file systems, provided they
are mounted.
________________________________________________
_________________________________________________________
Checkpoint solutions
IBM Power Systems
1.
2.
3.
Which command could you use to restore these files? The files were
backed up using the backup command so you would have to use the
restore command.
4.
True or False: smit mksysb backs up all file systems, provided they
are mounted. mksysb only backs up rootvg file systems. To back up
other volume groups, you must use the savevg command.
Exercise 11
IBM Power Systems
Unit summary
IBM Power Systems