Please login or register. August 23, 2017, 01:29:49 PM

Author Topic: Restoring specific files from DVD image backup, mksysb made with mkdvd  (Read 758 times)

0 Members and 1 Guest are viewing this topic.

ChrisGl

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
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:
Code: [Select]
# mkdvd -I <mounted NFS backup directory> -V rootvg -R -SI'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:
Code: [Select]
#  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.  However, I am fairly confident I have found the actual mksysb file in the following location:
Code: [Select]
/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:
Code: [Select]
# 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:
Code: [Select]
# 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?

Here is the directory listing:
Code: [Select]
/mnt:
.
..
OSLEVEL
RPMS
bosinst.data
image.data
installp
ismp
mkcd.data
ppc
root
sbin
udi
usr
/mnt/RPMS:
.
..
ppc

/mnt/RPMS/ppc:
.
..

/mnt/installp:
.
..
ppc

/mnt/installp/ppc:
.
..

/mnt/ismp:
.
..
ppc

/mnt/ismp/ppc:
.
..

/mnt/ppc:
.
..
bootinfo.txt
chrp

/mnt/ppc/chrp:
.
..
bootfile.exe

/mnt/root:
.
..
etc
sbin

/mnt/root/etc:
.
..
consdef
filesystems
objrepos
preserve.list

/mnt/root/etc/objrepos:
.
..
CDiagAtt
CDiagAtt.vc
CDiagDev
DAVars
FRUB
FRUs
MenuGoal
TMInput

/mnt/root/sbin:
.
..
comp.kext
comp.uext
helpers

/mnt/root/sbin/helpers:
.
..
udfmnthelp
v3fshelper

/mnt/sbin:
.
..
helpers

/mnt/sbin/helpers:
.
..
udfmnthelp

/mnt/udi:
.
..
ppc

/mnt/udi/ppc:
.
..

/mnt/usr:
.
..
bin
ccs
lib
lpp
sbin
sys

/mnt/usr/bin:
.
..
alog
awk
basename
bootlist
bsh
cat
cdeject
copydump
copydumpmenu
cp
cpio
cut
dd
df
dspmsg
expr
fgrep
find
getopt
grep
ksh
ln
mkdir
mv
odmadd
odmdelete
odmget
pax
rm
sed
sh
sleep
tctl
tee
uname
uncompress
wc

/mnt/usr/ccs:
.
..
bin

/mnt/usr/ccs/bin:
.
..
ar

/mnt/usr/lib:
.
..
boot
drivers
instl
libasl.a
libcfgscsi.a
libcur.a
libdiag.a
liberrlog.a
libiconv.a
liblvm.a
libsm.a
libssa.a
libudf.a
methods
nls
objrepos

/mnt/usr/lib/boot:
.
..
bin
getrootfs
ssh

/mnt/usr/lib/boot/bin:
.
..
bootinfo_chrp
bootlist_chrp
libcfg_chrp
mkboot_chrp

/mnt/usr/lib/drivers:
.
..
aixdiskpcmke
cfs.ext
efscsidd
efscsiddpin
fcparray
fcparraypin
hd_pin
hd_pin_bot
idecdrom
idecdrompin
idedisk
idediskpin
isa
ldterm
lft_loadpin
mintdd_load
mintdd_loadpin
pci
pse
qfscsidd
qfscsiddpin
qlfscsidd
qlfscsiddpin
scdisk
scdiskpin
scsidisk
scsidiskpin
sctape
sctapepin
smintdd_load
smintdd_loadpin
ssa
ssadisk
ssadiskpin
ssapin
stydd
tape
tapepin
ttydbg
udfs.ext
usb
vconsdd
vdev_busdd
vscsi_initdd

/mnt/usr/lib/drivers/isa:
.
..
fdisa
isa_busdd
kbddd_chrp
rsdd_rspc

/mnt/usr/lib/drivers/pci:
.
..
PCIccmdd
PCIccmddpin
atidd
atiddpin
bldd
blddpin
efcdd
efcddpin
eidedd
eidedd_pin
hcd22106474
hcd33103500
hcd99172704
hcdc1110358
jasdd
lanaidd
lanaiddpin
mg2dd
mg2dd_pin
mgadd
mgadd_pin
mir2ddd
mir2dddpin
mirdd
mirddpin
mojdd
mojddpin
mojldd
mojlddpin
mtndd
mtnddpin
pci_busdd
qfcdd
qfcddpin
qlfcdd
qlfcddpin
s_scsidd
s_scsiddpin
sisscsi_dd
sondd
sonddpin
sonldd
sonlddpin

/mnt/usr/lib/drivers/pse:
.
..
pse

/mnt/usr/lib/drivers/usb:
.
..
usbcd
usbcdpin
usbd
usbfd
usbkbd

/mnt/usr/lib/instl:
.
..
inuextendblv

/mnt/usr/lib/methods:
.
..
aixdiskpcmrtl
cfg22106474
cfg33103500
cfg99172704
cfgL2cache_chrp
cfg_PCIccm
cfg_ati
cfg_bl
cfg_lai
cfg_mg2
cfg_mga
cfg_mint
cfg_mir
cfg_mir2d
cfg_moj
cfg_mojl
cfg_mtn
cfg_smint
cfg_son
cfg_sonl
cfg_vclient
cfgasync_rspc
cfgbus_isac
cfgbus_pcic
cfgbus_vdevice
cfgc1110358
cfgcdrom_usb
cfgcon
cfgefc
cfgefscsi
cfgeide
cfgfcparray
cfgfd_usb
cfgfda_chrp
cfgfdac
cfgfdar
cfgfdd
cfgidecdrom
cfgidedisk
cfgjas
cfgkbd_std
cfgkbd_usb
cfgkm_chrp
cfgkma_chrp
cfglft
cfglvdd
cfgmem_chrp
cfgncr_scsi
cfgproc_chrp
cfgqfc
cfgqfscsi
cfgqlfc
cfgqlfscsi
cfgsccd
cfgscdisk
cfgscsicd
cfgscsidisk
cfgscsitape
cfgsctape
cfgsisarray
cfgsisioa
cfgsispdisk
cfgsisphysb
cfgsisraidb
cfgsisscsi
cfgsisscsib
cfgssa
cfgssadisk
cfgssar
cfgsys_chrp
cfgsysplanar_chrp
cfgtty
cfgusb
cfgvcon
chgdisk
chgfcparray
chggen
chgsisarray
chgtape
chgtty
define
define_rspc
deflvm
defssar
defsys
fdarcfgrule
instdbcln
isaload
jasload
rsddload
showled
startlft
starttty
startusb
ucfgdevice
vconsload

/mnt/usr/lib/nls:
.
..
loc
msg

/mnt/usr/lib/nls/loc:
.
..
C.lftkeymap

/mnt/usr/lib/nls/msg:
.
..
en_US

/mnt/usr/lib/nls/msg/en_US:
.
..
BosMenus.cat

/mnt/usr/lib/objrepos:
.
..
CC
CC.vc
FONT
FONT.vc
KEYBOARD
KEYBOARD.vc
MESSAGES
MESSAGES.vc

/mnt/usr/lpp:
.
..
bos
bosinst
diagnostics
fonts

/mnt/usr/lpp/bos:
.
..
inst_root
liblpp.a

/mnt/usr/lpp/bos/inst_root:
.
..
etc
sbin

/mnt/usr/lpp/bos/inst_root/etc:
.
..
preserve.list

/mnt/usr/lpp/bos/inst_root/sbin:
.
..
comp.kext
comp.uext
helpers

/mnt/usr/lpp/bos/inst_root/sbin/helpers:
.
..
jfs2
udfmnthelp
v3fshelper

/mnt/usr/lpp/bos/inst_root/sbin/helpers/jfs2:
.
..
chfs
crfs
fsck
fstype
logform
logredo
mkfs
mount

/mnt/usr/lpp/bosinst:
.
..
Animate
BosMenus
CheckSize
Get_RVG_Disks
adjfs
berror
bi_io
bi_main
bicfgsup
bidata
blvset
bosinst.template
datadaemon
getprtpkgs
image.template
rda

/mnt/usr/lpp/diagnostics:
.
..
bin
da

/mnt/usr/lpp/diagnostics/bin:
.
..
dctrl
diagsrv
uformat

/mnt/usr/lpp/diagnostics/da:
.
..
dhf

/mnt/usr/lpp/fonts:
.
..
Erg11.iso1.snf
Erg22.iso1.snf

/mnt/usr/sbin:
.
..
allocp
bootinfo
cfgmgr
chcons
chdev
chfs
chlv
chpv
extendlv
extendvg
fsck
getlvcb
getlvname
getlvodm
getvgname
imfs
importvg
lchangepv
lcreatelv
ldeletelv
lextendlv
lmktemp
logform
logredo
lquerylv
lquerypv
lqueryvg
lreducelv
lsattr
lsdev
lslv
lvaryoffvg
lvgenmajor
lvgenminor
lvmmsg
lvrelmajor
lvrelminor
mkboot
mkfs
mklv
mknod
mkvg
mount
putlvcb
putlvodm
readlvcopy
redefinevg
restbyname
rmlv
strload
swapon
sync
synclvodm
umount
updatevg
varyonvg

/mnt/usr/sys:
.
..
inst.images

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

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1041
  • Karma: +0/-0
Re: Restoring specific files from DVD image backup, mksysb made with mkdvd
« Reply #1 on: January 07, 2017, 03:02:16 PM »
I'll read and comment later. You are close in any case.

ChrisGl

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Restoring specific files from DVD image backup, mksysb made with mkdvd
« Reply #2 on: January 07, 2017, 08:32:06 PM »
I'll read and comment later. You are close in any case.

Thank you.  I really appreciate you looking at this.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1041
  • Karma: +0/-0
Re: Restoring specific files from DVD image backup, mksysb made with mkdvd
« Reply #3 on: January 08, 2017, 12:45:44 PM »
OK - the simple approach is to cat the two files to make one - or perhaps requiting less space cat both of them into 'restore',

e.g.,
Code: [Select]
cat file1.bff file2.bff | restore -Tqf -
The reason for the two files was the 2GB limit - i.e., mksysb was/is assuming the worst case.

Hope this helps!

(and, p.s., you had done the heavy lifting - I do not know if AIX 5.3 (TL0) already knew about loopmount - but that may be an easier way to work with iso files in the future.)


ChrisGl

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Restoring specific files from DVD image backup, mksysb made with mkdvd
« Reply #4 on: January 08, 2017, 10:45:25 PM »
Thank you, it worked!  I used cat to make one file, and everything ran smoothly after that. 

I looked into loopback, and 5.3 doesn't know a thing about it.  Might finally get to upgrade that system. 

When I set up this process, the data set being backed up was a little smaller, and didn't run across 2GB.  Monday I'll look into if any parameters will override that behavior. 

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1041
  • Karma: +0/-0
Re: Restoring specific files from DVD image backup, mksysb made with mkdvd
« Reply #5 on: January 09, 2017, 10:03:21 AM »
Glad it is working. And, if you have a nim server it might be a lot simplier to just do a nim based backup - rather than using mkdvd.

If you must have a dvd for boot - something I wrote a long time ago (eeks - almost 10 years ago!): http://www.rootvg.net/content/view/134/309/