Using mkdvd to create bootable mksysb on dvd reports success but nothing on dvd?


 
Thread Tools Search this Thread
Operating Systems AIX Using mkdvd to create bootable mksysb on dvd reports success but nothing on dvd?
# 1  
Old 02-16-2016
Hammer & Screwdriver Using mkdvd to create bootable mksysb on dvd reports success but nothing on dvd?

Hello,

Running AIX 7.1 7100-00-03-1115, trying to make a mksysb image to a dvd drive using mkdvd. My final command looks like this..
Code:
mkdvd -e -V rootvg -R -C /usr1/AIXADMIN/mkcd/cd_fs -I /usr1/AIXADMIN/mkcd/cd_images -M /usr1/AIXADMIN/mkcd/mksysbimage -d /dev/cd0 -Y

When i run this command, I get the following output..
Code:
Initializing mkdvd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating image.data file...
Creating mksysb image...

Creating list of files to back up.

Backing up 99186 files........

99186 of 99186 files (100%)
0512-038 mksysb: Backup Completed Successfully.
Populating the CD or DVD file system...
Copying backup to the CD or DVD file system...
.
Building chrp boot image...
Creating Rock Ridge format image: /usr1/AIXADMIN/mkcd/cd_images/cd_image_6291962
Running mkisofs ...
.
mkrr_fs was successful.

Making the CD or DVD image bootable...
Writing the CD or DVD image to device: /dev/cd0...
Running readcd ...
.
Capacity: 1 Blocks = 2 kBytes = 0 MBytes = 0 prMB
Sectorsize: 2048 Bytes
burn_cd was successful.

The part about making the DVD seemed to finish too quick, so I tried to read the contents with:
Code:
listvgbackup -f /dev/cd0

This took a few seconds and then it came back with:
Code:
0512-055 listvgbackup: Failed mounting /dev/cd0 to mount point /tmp/_cdrom.6291712.

It looks like the burning to dvd part is not working. I have a DVD in the drive listed in lsdev..
Code:
# lsdev -Cc cdrom
cd0 Available 00-08-00 SATA DVD-RAM Drive

I followed the documentation found on this IBM article. My goal is to make a bootable mksysb on DVD and also leave a copy of the ISO on the filesystem. It looks like the writing to dvd media part is not working correctly since listvgbackup fails.

Anyone have any ideas as to what the issue could be?

Last edited by c3rb3rus; 02-16-2016 at 01:49 PM.. Reason: fix display
# 2  
Old 02-17-2016
Quote:
Originally Posted by c3rb3rus
Anyone have any ideas as to what the issue could be?
At first glance everything looks OK, so the answer will mean debugging:

- You did do this as user root, yes?

- The FSs/filespaces you used (/usr1/AIXADMIN/mkcd/cd_fs, ...) are large file enabled?

- The filesize ulimit is set to unlimited for this session/this user?

- Have you checked the temporary locations the command produces? What is in there? Are any of these places not what they seem to be (like being symlinked to somewhere else, etc.)?

- Have you tested your equipment to work properly (e.g. trying to burn something on the drive in question)?

- at last: have you checked the logs, especially the mentioned /var/adm/ras/mkcd.log?

Finally, this is probably not the source of your problem, but: to create ISO images: wouldn't it be easier to first burn the CD/DVD, then use

Code:
# dd if=/dev/cd0 of=/some/file.iso

To create the ISO image where you want to have it?

I hope this helps

bakunin
# 3  
Old 02-26-2016
Hey bakunin,

From what I gathered if I run "mkdvd" to create my mksysb and don't specify -d device it does not create all the necessary stuff to make the ISO bootable in case we need to restore AIX?

This is why I was trying to use mkdvd and burn in one line...
Code:
mkdvd -e -V rootvg -R -C /usr1/AIXADMIN/mkcd/cd_fs -I /usr1/AIXADMIN/mkcd/cd_images -M /usr1/AIXADMIN/mkcd/mksysbimage -d /dev/cd0 -Y

# 4  
Old 02-26-2016
When I've done this process, I've always had a few steps to it:-
  • Clean up anything left from last time, e.g. old files, filesystems or logical volumes
  • Run mkszfile to ensure that the filesystem sizes are recorded correctly
  • Run savevg excluding all the files to collect the information about all the non-rootvg volume groups, saving the detail somewhere within rootvg
  • Run mksysb writing to a file on disk in a specified area outside the rootvg with the -e flag to exclude files in /etc/exclude.rootvg
  • Run mkdvd specifying the mksysb file created in the previous step
It may not be perfect, but it works very well and I even managed to edit the data files used by savevg to specify non-mirrored logical volumes in case we recover to a server without sufficient disk space to have the mirrors.

Sadly I have now lost access to the AIX servers I have worked on so I cannot share it.

I hope that at least this process might help.



Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

Can I use mkdvd to create bootable DVD from mksysb on tape

Hi, Is it possible to use mkdvd to create a bootable DVD using a mksysb on tape as the source image? On the system concerned, we don't have enough free space to create the mksysb to file first, so would like to use the existing tape mksysb backup. The DVD disk/s will then be used to boot a... (4 Replies)
Discussion started by: alanp36
4 Replies

2. AIX

Need help with mksysb backup on a DVD

i have an AIX server and planning to upgrade the operating system, before that i want to take a system backup which can be used in case of upgrade failure. i dont have NIM server t hold the mksysb backups. so i have the only option of taking the backup on DVD. i have the following optical drive... (5 Replies)
Discussion started by: saikiran_1984
5 Replies

3. Linux

Creating a bootable dvd/cd disk

Hi all, thanks for so many helps in many problems! Can anyone guide, how to create a bootable cd/dvd from downloaded iso images of CentOS 5? I have collected all the iso in a dvd but it is not booting the system. Any response will be appreciable... (2 Replies)
Discussion started by: naw_deepak
2 Replies

4. Solaris

Help me, please! Solaris 10 hands-off installation from a bootable DVD

Hello, I have a problem with installing the Solaris 10 using a bootable DVD with a flar archive. I want this installation to be totally hands-off, but unfortunately after I run this boot command at the ok prompt: ok boot cdrom - install ... the system is rebooted and the interactive... (5 Replies)
Discussion started by: Przemek
5 Replies

5. Solaris

bootable X86 dvd and flash archives

I have created a bootable DVD for X86 using a flash archive, the problem is that I have to specify the location at the beginning of the install. I have edited the any_machine profile under ./jumpstart_sample to contain the following install_type flash_install archive_location ... (4 Replies)
Discussion started by: eeisken
4 Replies

6. AIX

How to burn a bootable DVD on aix 5.3?

I have a mksysb backup image need burn to a DVD, then it can be used to restore OS in other machine. How to do this? (5 Replies)
Discussion started by: rainbow_bean
5 Replies

7. Solaris

Getting NFSv4 prompt when installing bootable DVD

Hi, I've created a bootable DVD which works fine for earlier versions of Solaris 10 (6/06) and Solaris 9. But now i've moved to Solaris 10 8/07 and I am getting the NFSv4 prompt at login. Initially i thought i could surpress this by adding the line nfs4_domain=dynamic to my... (0 Replies)
Discussion started by: declanryan
0 Replies
Login or Register to Ask a Question