Mksysb restoration


 
Thread Tools Search this Thread
Operating Systems AIX Mksysb restoration
# 15  
Old 08-04-2016
There is are tools that can help you (no doubt for a fee) but are destructive, so be sure you have your DR procedures nailed down first.

One tool I have used is Storix which will allow you to backup and when you come to restore you can adjust the volume group and filesystem layout.

It would, of course, be safer to restore to a blank server rather than to overwrite the original but it depends what you have available. Your DR vendor may also be able to work through this with you.




Kind regards,
Robin
This User Gave Thanks to rbatte1 For This Post:
# 16  
Old 08-04-2016
Quote:
Originally Posted by AIXBlueCat
this production server is an legacy.
my seniors taking over from the previous vendor, did not even do any mksysb backup until i join and ask them to do it.
First off: no problem. I have seen worse, so stay cool. You can handle that.

The first thing you need to explain (to your seniors) is: taking an mksysb is not changing or even doing anything to their precious production server. Getting a working mksysb image in fact enhances runtime security. Here is how to do it correctly:

1) on your production server create a file "/etc/exclude.rootvg" where you put in all the directories you do not want to have in your mksysb-image. Possible contents could be:

Code:
^./opt/bea92/
^./opt/filenet/
^./var/tmp/
^./var/log/
^./tmp/

2) Issue the mkszfile command. This generates a file called /image.data in which the layout of the FSes, LVs, disks, etc. is described as it is used by the mksysb-command. You need to edit this file prior to running the mksysb itself to remove LV-copies (mirrors) and the like. If you need help there: just post the file and we can go over it.

3) Only after adapting both these files run the mksysb-command, exactly as follows:

Code:
mksysb -e <device>

Note that you do NOT use the -i flag, which would overwrite the /image.data file you edited, voiding your edits.

The resulting mksysb-image should fit onto a tape and you can subsequently install it onto another system. If the resulting restore is not to your liking: finetune the process by excluding more directories, etc.. You can do this over and over again without changing your environment itself in any way.

I hope this helps.

bakunin
These 3 Users Gave Thanks to bakunin For This Post:
# 17  
Old 08-15-2016
still waiting to test the concept.
thank you everyone for the advice.

sorry for asking again,
can we do an mksysb backup with other userid other than root ?
if we do it using other userid, will the mksysb backup be bootable.
cos i do it with an userid, the backup was successful, but when i tried to boot thru it to do an restoration, it was not successful.
# 18  
Old 08-15-2016
Quote:
Originally Posted by AIXBlueCat
can we do an mksysb backup with other userid other than root ?
Consider this: to create a backup of something you need at least read access to it. A mksysb image is the complete rootvg, which includes the most sensitive information of the system (namely everthing in /etc/security and the like). Ask yourself: will any other user except root be allowed to do it?

The answer is: of course NOT! That should answer your other questions too.

You can do it from a user using a sudo-rule if you have sudo installed, but that means that this user runs some process effectively as root either.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 19  
Old 08-15-2016
Quote:
Originally Posted by bakunin
Consider this: to create a backup of something you need at least read access to it. A mksysb image is the complete rootvg, which includes the most sensitive information of the system (namely everthing in /etc/security and the like). Ask yourself: will any other user except root be allowed to do it?

The answer is: of course NOT! That should answer your other questions too.

You can do it from a user using a sudo-rule if you have sudo installed, but that means that this user runs some process effectively as root either.

I hope this helps.

bakunin
thank you very much.
yes, the userid i used is use to execute backup script.
but i will be using root to do the mksysb backup and test it again today.
# 20  
Old 08-16-2016
Quote:
Originally Posted by AIXBlueCat
thank you very much.
yes, the userid i used is use to execute backup script.
but i will be using root to do the mksysb backup and test it again today.
Thank You.
After using root to do the mksysb backup, the restoration was successful.
This User Gave Thanks to AIXBlueCat For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Error after systeme restoration

Rebooting with command: boot Boot device: /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk@0,0:a File and args: SunOS Release 5.10 Version Generic_147440-01 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. WARNING: system call missing from bind file... (8 Replies)
Discussion started by: andersonedouard
8 Replies

2. Shell Programming and Scripting

MySQL Restoration Backup Script

Hi there, Alright I have this line that I'm working with (bash programming): mysql -u username -pHASH ${args} < /home/site/backups/site.${args}.sql I get this error on that line: ./restore.sh: line 51: syntax error near unexpected token `newline' ./restore.sh: line 51: `mysql -u... (5 Replies)
Discussion started by: Pandoula
5 Replies

3. Solaris

question about restoration from backup tape (solaris 10)

I am trying to restore opt on my server. my issue is, all the partitions are saved into the same back up tape. what is the exact command to just restore /opt for example, supposing c0t0d0s7 is the partition for /opt ---------- Post updated at 01:16 PM ---------- Previous update was at... (7 Replies)
Discussion started by: feg
7 Replies

4. AIX

Data restoration

I am having the Lexmark/IBM 1/2” 3490E Tape Cartridge which contains old data which had taken up some years back. I want to know what kind of data is available and which backup product is used for backup the data and from which OS the data has been backup. It would be helpful for me if could... (3 Replies)
Discussion started by: kmvinay
3 Replies

5. AIX

mksysb restoration using NIM

Hi, I just want to ask whether anyone has experience on restoring mksysb backup in NIM. We have taken the mksysb backup and the SPOT has been configured on NIM also. I just want to know the checkpoints before doing this. Is there any checkpoints we need to do? Do we need to unmirrorvg? This... (12 Replies)
Discussion started by: depam
12 Replies

6. AIX

mksysb restoration steps

please provide me with the steps to restore from mksysb tape. i m using AIX 5.3 TL 7 (2 Replies)
Discussion started by: debasis9
2 Replies

7. UNIX for Dummies Questions & Answers

LTO multivolume restoration problem in SELS9

Can anybody help me ? ? Previously data was taken multi volume LTO Tape backup in Red hat Linux by following command : tar -cvf /dev/rmt/tps6d7v -b 1000 -M filenames , now i try to Restore it in SELS9 by following command : tar -xvf /dev/st1 -b 1000 -M filenames , it extracts only part of the... (0 Replies)
Discussion started by: pramanik
0 Replies

8. Solaris

restoration

i have 2 hardisk. Hardisk A and Hardisk B. i have backup the oracle folder from hardisk A to hardisk B c0t0d0s4/oracle. If i want to restore , what is the command and what do i need to do ? urgent help needed. Thanks for your quick reply . (1 Reply)
Discussion started by: Farbegas
1 Replies

9. Shell Programming and Scripting

Restoration issue

Dear All, I am using sun OS server and performing weekly backup on a tape DDS2 for log files for the past 7 days, the log file sizes are ranging between 1 - 2 G......When i want to restore a specific file from the tape, i have to restore the whole files from the tape by using the command (tar... (1 Reply)
Discussion started by: charbel
1 Replies

10. Solaris

Can before and after snapshots be used to verify successful filesystem restoration?

Hello Guys, Can before and after snapshots be used to verify successful filesystem restoration? snapshots will be created using fssnaps and restoration is thru legato restore? Any ideas on this? or any other ways I could verify that restoration is good? Regards (0 Replies)
Discussion started by: MarkyBoy
0 Replies
Login or Register to Ask a Question