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
c1541(1)						      General Commands Manual							  c1541(1)

NAME
c1541 - a stand alone disk image maintenance program SYNOPSIS
c1541 [options] [image] DESCRIPTION
c1541 is a stand alone program that can be used for D64, D71, D81, X64 and G64 disk image file maintenance. It is part of the VICE emula- tor. c1541 can be used both in interactive and batch mode. It will start in interactive mode if no images and no options are specified or if one image is specified; when started in interactive mode, command line editing and command history are available. Each command line option for use in batch mode has an interactive mode counterpart, that is shown in parenthesis. -attach image (attach image) attach image for use. All consequent commands in interactive mode will refer to this image. -detach image (detach image) detach image from c1541. -format image (format image 'name,id') format the disk image image with the specified label. image is created if it does not exist. -delete image files... (delete files...) delete files from image -list image (list) list directory of image. -validate image (validate) validate mage. -copy image oldname1 [oldname2...] newname (copy oldname1 [oldname2...] newname) concatenate oldname1, oldname2... into newname on image (can be used to copy files). -create image dump ['descr'] (create image dump ['descr'] build image from raw dump file dump (i.e. convert from D64 to X64 file). -tape image tapeimage [files...] (tape image tapeimage [files...]) transfer files from tapeimage to image (default is all files). -read image 1541name [fsname] (read 1541name [fsname]) extract 1541name from the disk image into fsname (1541name by default) from image. -extract image (extract). extract all files from image. -write image fsname [1541name] (write fsname [1541name]) write fsname to image as 1541name (fsname by default). (works with P00 files as well). -block [drive:] [track] [sector] [disp] (block [drive:] [track] [sector] [disp]) show disk blocks in hex format. -info image ['descr'] (info ['descr']) show version information about image. When more than one command is specified in batch mode, all of them are executed in the same order they have on the command line. If you use - as a file name, it stands for stdin or stdout. SEE ALSO
VICE(1), petcat(1) AUTHORS
Teemu Rantanen <tvr@cs.hut.fi> Ettore Perazzoli <ettore@comm2000.it> Andreas Boose <boose@linux.rz.fh-hannover.de> Jouko Valta <jopi@stekt.oulu.fi> with improvements by Olaf Seibert <rhialto@mbfys.kun.nl> Gerhard Wesp <gwesp@cosy.sbg.ac.at> VICE
January 1999 c1541(1)
All times are GMT -4. The time now is 10:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy