I've previously tried to restore from an AIX mksysb
image (question here).
I managed to find another set of nightly AIX backups that look to have been made with ufsdump
:
# mt -t /dev/rmt/1h rew
# dd if=/dev/rmt/1h of=./tapeThu3.out bs=512k
0+116608 records in
0+116608 records out
# file tapeThu3.out
tapeThu3.out: ufsdump archive file
I tried to use ufsrestore
to view them on Solaris (SPARC):
# ufsrestore tvf tapeThu3.out
Verify volume and initialize maps
Media block size is 126
gethead: unknown inode type 11
abort? [yn] y
I copied them to Linux, installed dump
which includes restore
:
[me@CentosXeon TapeRecovery]# restore -i -f tapeThu3.out
gethead: unknown inode type 11
abort? [yn] y
I also tried to mount it after installing the UFS filesystem module. I tried all of the different ufs types and always got:
[me@CentosXeon TapeRecovery]# mount -t ufs -o ufstype=old,loop,ro ./tapeThu3.out ./OpenedImage/
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg shows:
ufs_read_super: bad magic number
I'm now stumped and still don't have access to an AIX system to try a restore on there. I know that AIX is big endian (same as Solaris SPARC) and Linux x86 is little endian. The restore
command on Linux is meant to cope with both formats though.