AIX Backup and Restore: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→AIX) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== AIX == | == AIX == | ||
=== rootvg === | === rootvg === | ||
==== Backup Using MKSYSB | ==== Backup Using MKSYSB ==== | ||
# '''<tt># mksysb -iv <path to mksysb image></tt>''' | # Backup to a file. | ||
#: '''<tt># mksysb -iv <path to mksysb image></tt>''' | |||
# Backup to a tape drive. | |||
#: '''<tt># mksysb -iv /dev/rmt0</tt>''' | |||
==== Restore Using MKSYSB and NIM==== | ==== Restore Using MKSYSB and NIM==== | ||
Line 11: | Line 14: | ||
==== Backup Using MKCD/MKDVD ==== | ==== Backup Using MKCD/MKDVD ==== | ||
# '''<tt># /usr/sbin/mkcd -V'rootvg' -R -S -A</tt>''' | # Backup to CD | ||
# | #: '''<tt># /usr/sbin/mkcd -V'rootvg' -R -S -A</tt>''' | ||
# '''<tt># /usr/sbin/mkdvd -V'rootvg' -R -S -A</tt>''' | # Backup to DVD | ||
# Note DVDs must be at least 4.7GB. | #: '''<tt># /usr/sbin/mkdvd -V'rootvg' -R -S -A</tt>''' | ||
#: Note DVDs must be at least 4.7GB. | |||
==== Restore Using MKDVD ==== | ==== Restore Using MKDVD ==== | ||
Line 24: | Line 28: | ||
=== non-rootvg === | === non-rootvg === | ||
==== Backup ==== | ==== Backup ==== | ||
# '''<tt># savevg -if <device> <volume group></tt>''' | # Create a backup of any other non-rootvg volume group. | ||
#: '''<tt># savevg -if <device> <volume group></tt>''' | |||
==== Restore ==== | ==== Restore ==== | ||
# Restore entire savevg image: | # Restore entire savevg image: | ||
# | #: '''<tt># restvg -f<path to savevg image> <hdisk ...></tt>''' | ||
# Restore files from a savevg: | # Restore files from a savevg: | ||
# | #: '''<tt># restorevgfiles -f <absolute path to savevg image> -s -d <restore directory> <.absolute path of file to be restored></tt>''' | ||
# | #: '''Important Note:''' The . in absolute path to be restored is necessary. | ||
== Further Reading == | == Further Reading == |
Latest revision as of 20:59, 13 December 2017
AIX
rootvg
Backup Using MKSYSB
- Backup to a file.
- # mksysb -iv <path to mksysb image>
- Backup to a tape drive.
- # mksysb -iv /dev/rmt0
Restore Using MKSYSB and NIM
- These steps differ from what power platform firmware the system is on.
- Bring system down, and boot up and select SMS mode on startup usually by pressing 1 or F1.
- If this server is managed by NIM, configure a remote IPL device.
- If not, manually select the boot device and continue with the restore.
Backup Using MKCD/MKDVD
- Backup to CD
- # /usr/sbin/mkcd -V'rootvg' -R -S -A
- Backup to DVD
- # /usr/sbin/mkdvd -V'rootvg' -R -S -A
- Note DVDs must be at least 4.7GB.
Restore Using MKDVD
- These steps differ from what power platform firmware the system is on.
- Bring system down, and boot up and select SMS mode on startup usually by pressing 1 or F1.
- Insert the first DVD.
- Setup Boot Options to install from DVD.
non-rootvg
Backup
- Create a backup of any other non-rootvg volume group.
- # savevg -if <device> <volume group>
Restore
- Restore entire savevg image:
- # restvg -f<path to savevg image> <hdisk ...>
- Restore files from a savevg:
- # restorevgfiles -f <absolute path to savevg image> -s -d <restore directory> <.absolute path of file to be restored>
- Important Note: The . in absolute path to be restored is necessary.