Opened 5 months ago

Closed 5 months ago

#815 closed defect (worksforme)

Problem with mondoarchive in RHEL7

Reported by: Nelson Wu Owned by:
Priority: high Milestone: 3.3.0
Component: mondo Version: 3.2.2
Severity: normal Keywords: result=254;
Cc: nelson.wu@…

Description (last modified by bruno)

We are not able to do the mondo rescue backup on RHEL7.2 with kernel 3.10.0-327.36.3.el7.x86_64.

---progress-form---4--- TASK:  [*****...............]  25% done; 19:52 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********............] 38% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*****...............]  25% done; 19:47 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********............] 38% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*****...............]  25% done; 19:53 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********............] 38% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*****...............]  25% done; 19:48 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********............] 38% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [******..............]  26% done; 19:48 to go
afio: Ready for volume 2 on /tmp/mondo.tmp.lRnnPR/tmpfs/307.afio.bz2
afio: "quit" to abort, anything else to proceed. > afio: Ready for volume 2 on /tmp/mondo.tmp.lRnnPR/tmpfs/308.afio.bz2
afio: "quit" to abort, anything else to proceed. >
afio: Ready for volume 3 on /tmp/mondo.tmp.lRnnPR/tmpfs/307.afio.bz2
afio: "quit" to abort, anything else to proceed. > quit
afio: Ready for volume 2 on /tmp/mondo.tmp.lRnnPR/tmpfs/308.afio.bz2
afio: "quit" to abort, anything else to proceed. > quit
afio: Ready for volume 2 on /tmp/mondo.tmp.lRnnPR/tmpfs/307.afio.bz2
afio: "quit" to abort, anything else to proceed. > quit
afio: Ready for volume 2 on /tmp/mondo.tmp.lRnnPR/tmpfs/308.afio.bz2
afio: "quit" to abort, anything else to proceed. > quit
afio: Ready for volume 2 on /tmp/mondo.tmp.lRnnPR/tmpfs/307.afio.bz2
afio: "quit" to abort, anything else to proceed. > quit
Errors occurred while archiving set 308. Please review logs.
Fatal error... Unable to write tarball to scratchdir
---FATALERROR--- Unable to write tarball to scratchdir
If you require technical support, please contact the mailing list.
See http://www.mondorescue.org for details.
The list's members can help you, if you attach that file to your e-mail.
Log file: /var/log/mondoarchive.log
Mondo has aborted.
Execution run ended; result=254
Type 'less /var/log/mondoarchive.log' to see the output log


Packages installed:

afio-2.5-1.rhel7.x86_64.rpm
buffer-1.19-4.rhel7.x86_64.rpm
mindi-3.0.2-1.rhel7.x86_64.rpm
mindi-busybox-1.21.1-1.rhel7.x86_64.rpm
mondo-3.2.2-1.rhel7.x86_64.rpm
newt-0.52.15-4.el7.x86_64.rpm
newt-devel-0.52.15-4.el7.x86_64.rpm
pbmkbm-0.14.4-1.rhel7.noarch.rpm
perl-File-BaseDir-0.03-14.el7.noarch.rpm
perl-File-DesktopEntry-0.08-1.el7.noarch.rpm
perl-File-MimeInfo-0.21-1.el7.noarch.rpm
perl-IO-Interface-1.05-2.el7.x86_64.rpm
perl-Module-ScanDeps-1.10-3.el7.noarch.rpm
perl-MondoRescue-3.2.2-1.rhel7.noarch.rpm
perl-Net-IPv4Addr-0.10-6.el7.noarch.rpm
perl-ProjectBuilder-0.14.4-1.rhel7.noarch.rpm
project-builder-0.14.4-1.rhel7.noarch.rpm
rpmbootstrap-0.14.4-1.rhel7.noarch.rpm
slang-2.2.4-12.el7.x86_64.rpm
slang-devel-2.2.4-12.el7.x86_64.rpm

The below is what parametar we used to backup:

mondoarchive -Oi -9 -N -F -s 8g -d /localdisk/os_image -E '/apps|/mnt|/localdisk|/tmp|/home_local|/home|/apps-lynx|/MLP'

The below is tyhe mindi.conf setting

EXTRA_SPACE=33554428
BOOT_SIZE=155680          # size of the boot disk
MINDI_DEFAULT_BOOT_OPTION="nuke"
DENY_MODS="onload sfc_char sfc_resource sfc_aoe sfc_affinity

Change History (5)

comment:1 Changed 5 months ago by Nelson Wu

Mondorarchive Log:

INFO: Errors occurred while archiving set 308. Please review logs.
DBG4: [Main] libmondo-archive.c->create_afio_files_in_background#1037:                                          [122463:0] - archived 308 OK
DBG4: [Main] libmondo-archive.c->create_afio_files_in_background#999:                                          [122463:0] - EXATing 309...
DBG4: [Main] libmondo-archive.c->create_afio_files_in_background#1012:                                          [122463:0] - archiving 309...
DBG1: [Main] ../common/newt-specific.c->fatal_error#304: Fatal error received - 'Unable to write tarball to scratchdir'
DBG3: [Main] ../common/newt-specific.c->fatal_error#320: OK, I think I'm the main PID.
DBG2: [Main] ../common/newt-specific.c->fatal_error#327: I'm going to do some cleaning up now.
DBG4: [Main] ../common/newt-specific.c->fatal_error#328: killall mindi 2> /dev/null
INFO: running: ps auxww | grep " /mondo/do-not " | grep -v "grep" | awk '{print $2;}' > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran just fine. :-)
INFO: running: kill `ps auxww | grep " /mondo/do-not " | grep -v "grep" | awk '{print $2;}'` > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran with res=256
INFO: running: ps auxww | grep " mondo.tmp " | grep -v "grep" | awk '{print $2;}' > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran just fine. :-)
INFO: running: kill `ps auxww | grep " mondo.tmp " | grep -v "grep" | awk '{print $2;}'` > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran with res=256
INFO: running: ps auxww | grep " ntfsclone " | grep -v "grep" | awk '{print $2;}' > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran just fine. :-)
INFO: running: kill `ps auxww | grep " ntfsclone " | grep -v "grep" | awk '{print $2;}'` > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran with res=256
INFO: running: umount -d /mnt/cdrom > /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.tmp 2> /tmp/mondo.tmp.lRnnPR/mondo-run-prog-thing.err
INFO: --------------------------------start of output-----------------------------
INFO: --------------------------------end of output------------------------------
INFO: ...ran with res=256
afio: "/tmp/mondo.tmp.lRnnPR/tmpfs/307.afio.bz2" [offset 5m+384k+0]: Fatal error:
afio: "/dev/tty": Input/output error

Mindi Log:

total 89616
drwxr-xr-x 2 root root     4096 Jun  5 15:48 archives
-rwxr-xr-x 1 root root     1717 Jun  5 15:48 autorun
drwxr-xr-x 2 root root     4096 Jun  5 15:48 images
-rw-r--r-- 1 root root 86581257 Jun  5 15:48 initrd.img
drwxr-xr-x 2 root root     4096 Jun  5 15:48 syslinux
drwxr-xr-x 2 root root     4096 Jun  5 15:48 tmp
-rwxr-xr-x 1 root root  5157440 Jun  5 15:48 vmlinuz

/tmp/mondo.tmp.lRnnPR/target/archives:
total 0

/tmp/mondo.tmp.lRnnPR/target/images:
total 29276
-rw-r--r-- 1 root root 29975179 Jun  5 15:48 all.tar.gz

/tmp/mondo.tmp.lRnnPR/target/syslinux:
total 44
-rw-r--r-- 1 root root  1267 Jun  5 15:48 boot1.txt
-rw-r--r-- 1 root root  1570 Jun  5 15:48 boot2.txt
-rw-r--r-- 1 root root 24576 Jun  5 15:48 isolinux.bin
-rw-r--r-- 1 root root   971 Jun  5 15:48 message.txt
-rw-r--r-- 1 root root  1529 Jun  5 15:48 pxe.txt
-rw-r--r-- 1 root root  1083 Jun  5 15:47 syslinux.cfg

/tmp/mondo.tmp.lRnnPR/target/tmp:
total 4
-rw-r--r-- 1 root root 463 Jun  5 15:48 mondorestore.cfg
------------------------------------------
----------- target dir sizes -------------
4       /tmp/mondo.tmp.lRnnPR/target/archives
4       /tmp/mondo.tmp.lRnnPR/target/autorun
29280   /tmp/mondo.tmp.lRnnPR/target/images
84556   /tmp/mondo.tmp.lRnnPR/target/initrd.img
48      /tmp/mondo.tmp.lRnnPR/target/syslinux
8       /tmp/mondo.tmp.lRnnPR/target/tmp
5040    /tmp/mondo.tmp.lRnnPR/target/vmlinuz
------------------------------------------
INFO: Creating a 128944 KB empty file for boot device of the ISO image
INFO: Creating a vfat filesystem on /tmp/mondo.tmp.lRnnPR/mindi-bootroot.img
mkfs.fat 3.0.20 (12 Jun 2013)
INFO: Mounting /tmp/mondo.tmp.lRnnPR/mindi-bootroot.img on /tmp/mondo.tmp.lRnnPR/mpt
INFO: Moving boot info on /tmp/mondo.tmp.lRnnPR/mpt
INFO: Invoking /usr/bin/genisoimage -J -r -v -p Mindi -publisher http://www.mondorescue.org -A Mindi -V Mindi_Image -o /var/cache/mindi/mindi.iso  -b syslinux/isolinux.bin -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
INFO: Created bootable ISO image at /tmp/mondo.scratch.pRUzX9/images/mindi.iso
INFO: Your mondorestore.cfg file is:
--------------------------
media-size 0
files-in-filelist 494092
last-filelist-number 1179
internal-tape-block-size 32768
use-lzo no
use-gzip no
use-star no
use-lzma no
use-comp yes
boot-type BIOS
datestamp Mon Jun  5 15:48:23 HKT 2017
total-slices 2363
iso-dev /dev/mapper/localdiskvg-lvlocaldisk
iso-mnt /localdisk
iso-prefix mondorescue
iso-dir /os_image
bootloader.device /dev/sda
bootloader.name GRUB
bootloader.ver grub2-install (GRUB) 2.02~beta2
backup-media-type iso
differential 0
--------------------------
INFO: Mindi 3.0.2-r3578 is exiting
INFO: End date : Mon Jun  5 15:48:53 HKT 2017

comment:2 Changed 5 months ago by bruno

  • Description modified (diff)

comment:3 Changed 5 months ago by bruno

ith the params you're giving, you should plan for a large scratch dir. Use -S /path/to/scratch and point to a dir on a filesystem having enough space to host your temp files (more than 8GB).

comment:4 Changed 5 months ago by Nelson Wu

It is working, but image is large and it spitted into 3 .iso files. Is it possbile to make it smaller and save as a single file?

[root@hkgsl1100099 os_image]# ls -lrt
total 23489252
-rw-r--r-- 1 root root 8581941248 Jun  6 12:20 mondorescue-1.iso
-rw-r--r-- 1 root root 8585867264 Jun  6 12:53 mondorescue-2.iso
-rw-r--r-- 1 root root 6885169152 Jun  6 13:24 mondorescue-3.iso
[root@hkgsl1100099 os_image]#

comment:5 Changed 5 months ago by bruno

  • Resolution set to worksforme
  • Status changed from new to closed

If you want a smaller image, you have to exclude content with the -E option.

generally people tend to exclude their data as they are backed up with other means anyway, and focus on the system part.

Note: See TracTickets for help on using tickets.