Installation through mksysb image backup


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Installation through mksysb image backup
# 1  
Old 06-11-2014
Reference Installation through mksysb image backup

Hi Experts,

I am very new to AIX, I have a mksysb image in one of my aix server (V6), I would like to install this mksysb image on newly lpar. Is it possible without tape and NIM?

Advice would be appreciated.

Regards,
Rockie
# 2  
Old 06-11-2014
Hello aix.rockie, and welcome.

Don't worry about being new, we all were once. Let's see if we can help you.

What is your mksysb image stored on?

When you activate an LPAR, you will be able to interrupt the process and choose to boot from a variety of devices, such as hard disk (an installed OS), tape, CD (or DVD) network (NIM boot) etc. You have to get your mksysb image available as one of these.

What would work for you?

What else do you have on the physical server?



Robin
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 06-11-2014
Sure you can burn the image in DVD and use it (as rbattel mentioned).

Use mkdvd command for it.
This User Gave Thanks to ibmtech For This Post:
# 4  
Old 06-12-2014
Thanks Robin & ibmtech

we have a p740 with single vios and 6 lpars on that. we have mksysb image on lpar. We are about to create new lpar on that we have to install.

Thanks,
Rockie
# 5  
Old 06-12-2014
Do you have a DVD writer? If you can assign that to the LPAR with the mksysb image, you would then:-
Code:
cfgmgr -S
lsdev -C|grep cd
mkdvd -d /dev/cd0 -m /mksysbfs/mksysb.file
rmdev -dl cd0

I'm assuming that the DVD writer is detected as cd0

Use DVD-RAM media, not DVD-R, DVD-ROM or DVD-RW.


To get you round your request short term, you can make a virtual optical device on the VIO server and assign that. The same commands on the LPAR with the mksysb image file.


Two important points:-
  1. If you don't have a DVD writer, what is your recovery plan? Consider either LPAR will not boot or total server loss. If you are backing up the VIO server, then this is just the VIO server operating system and not the virtual disks assigned to the LPARs.
    .
  2. Create your new LPAR without any network cards defined and assign the optical media (physical or virtual) to it before you activate it. If you restore your image with the network definitions in place, then the server will boot and cause conflicts with the system it is cloned from.

    When the server has been running, then shut it down, assign the network cards and activate it again. You will still only have the console, but then you can put on the addresses you want to use.
I hope that these suggestions help. Let us know what you plan to do and how you get on, or if neither of these is viable.



Robin
This User Gave Thanks to rbatte1 For This Post:
# 6  
Old 06-12-2014
Thanks Robin for the quick response with the great explanations.

We are creating this for some testing purpose, we are hoping to do this next week with writing mksysb on the DVD as you said.

Thanks
Rockie
# 7  
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question