Mksysb restoration


 
Thread Tools Search this Thread
Operating Systems AIX Mksysb restoration
# 1  
Old 07-01-2016
Mksysb restoration

Hi,

I am an newbie to AIX.
Recently, I being assigned to do an mksysb restoration at our DR site.
It always encounter "Out of Space" during restoration, this is even when I restored to 4x146GB HDD.
Even though, on production, it only need 2x146GB HDD for the rootvg.
What is the problem, I also redo the mksysb backup and ensure that it is successfully completed without any errors ?

Can someone please kindly help ?

Thanks
AIXBlueCat
# 2  
Old 07-02-2016
When you issue the mksysb command to take the mksysb-image issue the mkszfile first. This command (re-)writes a file named /image.data where the sizes of all PVs, LVs, etc. in the rootvg are stated.

It is possible to edit this file and then use the edited one, this way i.e. taking a mksysb of a mirrored rootvg and restore it without mirroring onto a single disk. Without any other hints i'd start investigating this frst to find out what the culprit is. The /image.data is quite straightforward and although its content is not exactly well-documented you can understand it with some limited guesswork. Reading the man pages for mksysb and mkszfile will sure help too.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 3  
Old 07-03-2016
there are 2 Volume of DDS4 tape for the mksysb backup
when I restored to 2x146GB HDD, it failed with Out of Space
but when I restored to 4x146GB HDD, it will prompt for Volume 2 but still encounter an error message - Media Surface Error and Out of Space
can some exper please kindly help.
appreciate it very much

Last edited by AIXBlueCat; 07-04-2016 at 04:31 AM..
# 4  
Old 07-04-2016
Quote:
Originally Posted by AIXBlueCat
there are 2 Volume of DDS4 tape for the mksysb backup
when I restored to 2x146GB HDD, it failed with Out of Space
but when I restored to 4x146GB HDD, it will prompt for Volume 2 but still encounter an error message - Media Surface Error and Out of Space
can some exper please kindly help.
appreciate it very much
I have already tried to help you, maybe i haven't been clear enough:

take the mksysb image again! Issue the mkszfile command first and examine the newly written /image.data file before you proceed to continue with the mksysb command itself. If you cannot figure out any specific problems post it here (it is several kb in size, you might want to post it as an attachment).

Especially this part is interesting (this is from one of my systems, yours will look similar but different):

Code:
source_disk_data:
        PVID= 00f81dc70b958716
        PHYSICAL_LOCATION= U9179.MHD.211AB7V-V5-C2-T1-L8100000000000000
        CONNECTION= vscsi0//810000000000
        LOCATION=
        SIZE_MB= 40960
        HDISKNAME= hdisk0

This is also to be considered:

Code:
logical_volume_policy:
        SHRINK= no
        EXACT_FIT= no

Another possibility might be that you have (a) sparse file(s) in your rootvg. These tend to be "expanded" to their virtual size for real when being restored.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 07-06-2016
Another thing I could suggest would be that LV mirrors will need to be respected too. I fell over that when restoring to a server with a HUGE single disk protected externally. I can't remember if it was local hardware RAID or a SAN.

The problem is that the mirrors have to go on separate PVs (as far as the OS knows) and we just had one. There was an unsupported adjustment that I had to do to the volume group definition file (created by mkszfile) before running mksysb but once it's written you are a bit stuck.

I have seen it done by DR provider professionals where they copy the image into a NIM server and adjust it, but that's just me witnessing it rather that knowing what they did.

Is your DR site and equipment owned by your company or is it rented time from a DR specialist company?

I must say that using tapes for such a large rootvg seems a little odd. Is there not a DVD-RAM drive available?



Kind regards,
Robin
This User Gave Thanks to rbatte1 For This Post:
# 6  
Old 07-06-2016
Quote:
Originally Posted by rbatte1
Another thing I could suggest would be that LV mirrors will need to be respected too. I fell over that when restoring to a server with a HUGE single disk protected externally. I can't remember if it was local hardware RAID or a SAN.
True, but as threads O/P said he has two target disks i thought that should be cared for. In fact, you are right: for the taking of an mksysb image the mirrors should all be edited out in the image.data file before taking it. I do that routinely because it allows for greater flexibility when restoring. One can always set up a mirror afterwards if that is necessary.

Quote:
Originally Posted by rbatte1
I must say that using tapes for such a large rootvg seems a little odd.
I'd say the large rootvg in itself is ridiculous. The rootvg is for holding the OS and everything pertaining to the systems configuration, not for the application data or the videos taken on the last holiday. Even my biggest systems have a rootvg built from a single 40GB LUN and even that is half empty on most systems.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 7  
Old 08-03-2016
thank you all for the help.
as I am not allow to do/check anything on the production server.
I do it the hard way, restore thru OS DVD, then restore the filesystems for rootvg thru the NetBackup server which also have a backup of all filesystems in the server.
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