AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only

Restoring specific files from a DVD image causing issues

  • 1.  Restoring specific files from a DVD image causing issues

    Posted Fri January 06, 2017 05:24 PM

    Originally posted by: cwg


    We have an older system, IBM PowerPC 9115-505, AIX 5.3.0.40.  I have a backup in the form of a DVD image made as a nightly cron, with the command:

    # mkdvd -I <mounted NFS backup directory> -V rootvg -R -S

    I'm now trying to restore a handful of files ONLY from this backup.  I've run full system restores from this type of backup successfully, but that's not appropriate in this case.  So, I created a logical volume, copied the ISO to that volume, and mounted it, with the commands:

    #  mklv -y dvd-lv rootvg 10G
    # dd if=<dvd_image> of=/dev/rdvd_lv bs=1m
    # mount -v cdrfs -o ro /dev/dvd_lv /mnt

    I will include the directory listing of /mnt later in this post (see attached file).  However, I am fairly confident I have found the actual mksysb file in the following location:

    /mnt/usr/sys/inst.images/mksysb_image
    /mnt/usr/sys/inst.images/mksysb_image2

    I then tried to restore files using the command from within the temporary directory I wanted to restore files to:

    # restorevgfiles -f /mnt/usr/sys/inst.images/mksysb_image <file I wanted to recover>
    New volume on /mnt/usr/sys/inst.images/mksysb_image:
    Cluster size is 51200 bytes (100 blocks).
    The volume number is 1.
    The backup date is: Mon Dec 19 21:00:50 CST 2016
    Files are backed up by name.
    The user is root.
    Mount volume 2 on /mnt/usr/sys/inst.images/mksysb_image.
            Press the Enter key to continue.

    I've tried looking for the file with lsmksysb and grep with some success:

    # lsmksysb -f /mnt/usr/sys/inst.images/mksysb_image | grep <file>
    New volume on /mnt/usr/sys/inst.images/mksysb_image:
    Cluster size is 51200 bytes (100 blocks).
    The volume number is 1.
    The backup date is: Mon Dec 19 21:00:50 CST 2016
    Files are backed up by name.
    The user is root.
         1360896 .<file>
    Mount volume 2 on /mnt/usr/sys/inst.images/mksysb_image.
            Press the Enter key to continue.

    So it has the listing for the file, but again, hangs up on the second volume.  This is especially frustrating considering the first volume is 2GB, and the second is only 300MB. 

    I've spent a few hours trying different variations - copying these files to a different volume and running from there, changing filenames, whatever seemed like it might work, and no luck yet.  And I know this is something simple that I am missing.  Can anyone offer any advice on this?