Sponsored Content
Top Forums UNIX for Advanced & Expert Users Installation through mksysb image backup Post 302905549 by rbatte1 on Thursday 12th of June 2014 06:02:39 AM
Old 06-12-2014
Annoyingly, you can't write direct from the mksysb command like you can with tape and the write might take 3 hours by the way. There is time and space taken to manipulate the mksysb image file ready for the write (25 minutes maybe) but the write to real media is slow.

If your mksysb image file is about 2Gb (must fit a single DVD I think) then you will need 5Gb free in rootvg so it can build /mkcd/cd_fs and /mkcd/cd_images at an appropriate size (determined for you in the mkdvd script)


Before you create your mksysb image, make sure you save an structural image of any volume groups you want to rebuild too like this:-
Code:
rm -r /tmp/vgdata                          # Clear out any old definitions
mkszfile                                   # Create rootvg requirements
for vg in `lsvg|sort|grep -v rootvg`
do
   echo "^\\\./" > /etc/exclude.$vg        # Exclude all files, i.e. take just the structure
   savevg -ef /disaster/$vg.structure $vg
done

# Now run mksysb as you normally would to a file
# Then run mkdvd to write to media

If the directory /disaster is in the rootvg then these will be available on the recovery. You can use:-
Code:
restvg -qf /disaster/vg-name.structure hdisk2 hdisk3 hdisk4....

This will build your replacement volume groups to match the sizes you had at the time. It will restore (and mount) filesystems and raw logical volumes and then you can recover your business data from whatever other backup solution you have.

It is less error prone and far quicker that having a scripted mkvg-mklv-crfs. On a recovery where we stopped issuing all the makes & creates and used restvg instead, we saved 4 hours just on the step to recreate the disk layout.



Robin
 

10 More Discussions You Might Find Interesting

1. AIX

mksysb and boot.image

hello i saved my system this morning, mksysb tape, and i have the message: "boot.image exceeded the size....." i have not the end because the message is disappeared. where can i find the mksysb message in a log ? the message is scary ? thank you (6 Replies)
Discussion started by: pascalbout
6 Replies

2. AIX

mksysb backup

How I can to obtain a full Backup of a AIX server with the command "mksysb"?? what is the correct form? Thanks (1 Reply)
Discussion started by: granador
1 Replies

3. AIX

mksysb backup

hi guys, i just want to take my server's mksysb backup through dvd-rom.but am having the doubt that, while am taking the mksysb backup in image it shows 8GB. So can i confirm that it takes 2 dvds and after writing in 1st cd it will ask for 2nd cd?????? please help me out. (1 Reply)
Discussion started by: rrlog
1 Replies

4. AIX

How do I create a bootable mksysb image file

I have several systems which require software maintenance several times a year. After the software maintenance, it is required that we make two system tapes for DR purposes. The creation of these system tapes takes anywhere from 1-1.5 hours because of the performance of the tape drives. What I... (7 Replies)
Discussion started by: acascianelli
7 Replies

5. AIX

mksysb file image

Hello, I have an mksysb image in my disk, created like: # mksysb -i /mnt/backup/lpar2.image I want to know if this image could be copied to a tape and make it a boot image. Thanks Enzote (3 Replies)
Discussion started by: enzote
3 Replies

6. AIX

check whether a mksysb image is bootable or not?

Hi, Can any one please tell me the method to check whether a mksysb image which is in the server is bootable or not. :confused: Thanks in advance, Anoop (1 Reply)
Discussion started by: anoopraok
1 Replies

7. AIX

MKSYSB backup

Hi, Currently we are taking mksysb backup through smitty mksysb command and directing the backup to happen on a tape.We have inbuilt tape drives in the AIX servers. Can we take the mksysb backup through 3rd party software tool (Symantec netbackup of IBm TSM). If yes what is the procedure and... (4 Replies)
Discussion started by: dwiravi
4 Replies

8. AIX

bootable mksysb image on

i have been given a bootable cd/dvd, that i install a ibm aix 185 workstation with, i want to make a nim mksysb resource from that, the following is a listing for the root file structure of the cd/dvd, seems someone took a mksysb of a built ibm aix machine and did mkcd -L -S -I and setup the... (2 Replies)
Discussion started by: asyed123
2 Replies

9. AIX

Restore mksysb image on cloned LPAR

Hi Folks, How to restore mksysb image on LPAR which is already having cloned AIX OS installed on hdisk0 (nothing configured, only full partition image is sitting on hdisk0) Let me know. Thank a lot. (1 Reply)
Discussion started by: snchaudhari2
1 Replies

10. AIX

DR using a mksysb image on disk.

This may be a dumb question and the more I think about it the worst it seems!! I have inherited some standalone systems where they are using the mksysb command to create a disk file image; this image is then backed up to Networker. My dumb question is how would we go about restoring this... (4 Replies)
Discussion started by: gz3xzf
4 Replies
IMAGECOLORSTOTAL(3)							 1						       IMAGECOLORSTOTAL(3)

imagecolorstotal - Find out the number of colors in an image's palette

SYNOPSIS
int imagecolorstotal (resource $image) DESCRIPTION
Returns the number of colors in an image palette. PARAMETERS
o $image - An image resource, returned by one of the image creation functions, such as imagecreatefromgif(3). RETURN VALUES
Returns the number of colors in the specified image's palette or 0 for truecolor images. EXAMPLES
Example #1 Getting total number of colors in an image using imagecolorstotal(3) <?php // Create image instance $im = imagecreatefromgif('php.gif'); echo 'Total colors in image: ' . imagecolorstotal($im); // Free image imagedestroy($im); ?> The above example will output something similar to: Total colors in image: 128 SEE ALSO
imagecolorat(3), imagecolorsforindex(3), imageistruecolor(3). PHP Documentation Group IMAGECOLORSTOTAL(3)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy