Re: Ubuntu 11.04 mondoarchive FAIL - leaves /dev/loop0 mounted? Runs out of space?
Steffen Hulegaard <shulegaa <at> yahoo.com>
2011-10-03 15:35:48 GMT
Victor Gattegno rocks! Thanks again for your amazingly quick response.
In a determined effort to get mondoarchive working on Ubuntu 11.04, I'm now
working with a relatively new, scratch install of Ubuntu 11.04. I do have those
'proper' EXTRA_SPACE and BOOT_SIZE values in my /usr/sbin/mindi script.
I'll attach my /usr/bin/mindi - and I'll reattach the mondo/mini log files again ...
just for ease of reference.
I really appreciate all the time and attention paid to my trials and tribulations.
Should I try bumping up my EXTRA_SPACE and BOOT_SIZE parameters
(in /usr/bin/mindi) even more? If so, how much?
I saw FAQ Q#17 as well. Great point! Not surprisingly, my df output *does*
show tons of *both* inodes and free space:
#df -iah
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 58M 360K 58M 1% /
proc 0 0
0 - /proc
none 0 0
0 - /sys
fusectl 0 0 0
- /sys/fs/fuse/connections
none 0 0
0 - /sys/kernel/debug
none 0 0
0 - /sys/kernel/security
none 999K 1003 998K 1% /dev
none 0 0
0 - /dev/pts
none 1001K 28 1001K 1% /dev/shm
none 1001K 70 1001K 1% /var/run
none 1001K 2 1001K 1% /var/lock
binfmt_misc 0 0 0
- /proc/sys/fs/binfmt_misc
gvfs-fuse-daemon 0 0 0 - /root/.gvfs
gvfs-fuse-daemon 0 0 0 - /home/schulegaard/.gvfs
/dev/sdc1 117M 43 117M 1% /mnt/usb1_1
/dev/sdc2 59M 1.5M 57M 3% /mnt/usb1_2
/dev/sdb1 59M 11 59M 1% /mnt/work
# df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 910G 11G 853G 2% /
proc 0 0 0 -
/proc
none 0 0 0 - /sys
fusectl 0 0 0 - /sys/fs/fuse/connections
none 0 0 0 - /sys/kernel/debug
none 0 0 0 - /sys/kernel/security
none 4.0G 740K 3.9G 1% /dev
none 0 0 0 - /dev/pts
none 4.0G 1.3M 4.0G 1% /dev/shm
none 4.0G 248K 4.0G 1% /var/run
none 4.0G 0 4.0G 0% /var/lock
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
gvfs-fuse-daemon 0 0 0 - /root/.gvfs
gvfs-fuse-daemon 0.0K 0.0K 0.0K - /home/schulegaard/.gvfs
/dev/sdc1 1.8T 8.8G 1.8T 1% /mnt/usb1_1
/dev/sdc2 917G 295G 623G 33% /mnt/usb1_2
/dev/sdb1 917G 200M 917G 1% /mnt/work
While I no zilch (or less) about the inner-workings of mondoarchive, if I had to hazard
a very ignorant guess (... contrary to my better judgement), I'd wonder about the
/dev/loop0 device that mondoarchive left mounted (on /tmp/≤something>). From the
email thread below:
/dev/loop0 118995 1538 116188
2% /tmp/mondo.tmp.15Er7D/mnt1
That is a pretty small filesystem! By process of elimination, I've been guessing
that this might be the device triggering the "write error: No space left on device" error.
Either that, or perhaps there are time outs afflicting by 'sync' mounted, external USB
drive partitions (e.g. /dev/sdc1 and /dev/sdc2). Of course, I'm just wildly grasping at
straws. I already tried to -E exclude these anyway - just in case.
From my clueless perspective, it is just as likely that this particular
error message is somehow misleading (... about the true nature/cause of the error). Are
you able to run mondoarchive on an Ubuntu 11.04 box?
I'm really at a loss. The help on mond-devel <at> lists.sourceforge.net is *awesome* -
but I feel more and more like a noob.
Worried, Steffen
________________________________
From: "Gattegno, Victor (GCC - Software)" <victor_gattegno <at> hp.com>
To: Steffen Hulegaard <shulegaa <at> yahoo.com>; Mondo mailing list <mondo-devel <at> lists.sourceforge.net>
Sent: Monday, October 3, 2011 7:18 AM
Subject: RE: [Mondo-devel] Ubuntu 11.04 mondoarchive FAIL - leaves /dev/loop0 mounted? Runs out of space?
Hi Steffen,
In your log I see a lot of "write error: No space left on device".
EXTRA_SPACE value was already increased in /usr/sbin/mindi (and tested) in order to avoid that problem
with Ubuntu.
Normally you see, in your /usr/sbin/mindi:
EXTRA_SPACE=80152
BOOT_SIZE=32768
So, if you already have these values in your /usr/sbin/mindi, it could be an inode problem, check Mondo
Rescue FAQ #Q17.
Regards,
Victor
-----Original Message-----
From: Steffen Hulegaard [mailto:shulegaa <at> yahoo.com]
Sent: vendredi 30 septembre 2011 22:01
To: mondo-devel <at> lists.sourceforge.net
Subject: [Mondo-devel] Ubuntu 11.04 mondoarchive FAIL - leaves /dev/loop0 mounted? Runs out of space?
Despite Victor Gattegno's prompt, detailed and *most* helpful reply, Somehow, I still do not
have the knack for running mondoarchive on Ubuntu 11.04. I did follow the Mondo Rescue FAQ Q#11 (see
http://trac.mondorescue.org/wiki/FAQ#Q11DoesmondoworkwithDebianUbuntudistributions). I
did fix up the mindi script to use syslinux --stupid. I do have the right versions of mondo, mindi and
mindi-busybox both installed (and 'pinned' via /etc/apt/preferences).
apt-show-versions -a mondo mindi mindi-busybox mindi 2.0.7.8-1 install ok installed mindi
2.0.7.8-1 unknown ftp.mondorescue.org mindi 1:2.0.4-1.1ubuntu1 natty
us.archive.ubuntu.com No stable version mindi/unknown uptodate 2.0.7.8-1 mindi-busybox 1.18.3-3
install ok installed mindi-busybox 1.2.1-4 natty us.archive.ubuntu.com mindi-busybox
1.18.3-3 unknown ftp.mondorescue.org No stable version mindi-busybox/unknown uptodate 1.18.3-3
mondo 2.2.9.7-1 install ok installed mondo 2.2.9.7-1 unknown ftp.mondorescue.org mondo
1:2.2.7-2.1 natty us.archive.ubuntu.com No stable version mondo/unknown uptodate 2.2.9.7-1
I even ssh root <at> localhost to ensure both real and effective user id's are *root* for:
mondoarchive -Oi -G -p `hostname`-`date +%Y%m%d` -9 -d \ /home/schulegaard/tmp/mondo -s 4480m -S /tmp -T
/tmp \ -E "/mnt/usb1_1|/mnt/usb1_2|/mnt/work|/tmp|/home/schulegaard/tmp/mondo"
Which results in the usual stuff - ending like this:
...
...
Calling MINDI to create boot+data disks
Your boot loader is GRUB and it boots from /dev/sda Waiting for 'echo hi >
/tmp/mondo.tmp.15Er7D/mojo-jojo.bla.bla ; mindi --custo Mindi failed to create your boot+data disks.
Fatal error... Failed to generate boot+data disks
---FATALERROR--- Failed to generate boot+data disks 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
rm: cannot remove `/tmp/mondo.tmp.15Er7D/mnt1': Device or resource busy
root <at> gandalf:/home/schulegaard/tmp/mondo# df Filesystem
1K-blocks Used Available Use% Mounted on
/dev/sda1 953178004 11277044 893482248 2% /
none 4089988 740 4089248 1%
/dev none 4097716 1248 4096468 1%
/dev/shm none 4097716 244 4097472 1%
/var/run none 4097716 0 4097716 0% /var/lock
/dev/sdc1 1922787892 3419064 1919368828 1% /mnt/usb1_1
/dev/sdc2 961465672 221931348 739534324 24% /mnt/usb1_2
/dev/sdb1 961432904 204436 961228468 1% /mnt/work
/dev/loop0 118995 1538 116188
2% /tmp/mondo.tmp.15Er7D/mnt1
Hmm. I've attached my latest log files. Poking around in log files makes me think that the mondoarchive
mounted /dev/loop0 device is, somehow, just too small. Is that possible? At any rate, I manually
umount /dev/loop0 after the aborted mondoarchive. Honestly, i have no idea what role that plays for
mondoarchive.
If there's a guru out there as kind as Victor Gattegno, perhaps I'll get mondoarchive working on Ubuntu
11.04. I must be missing something. If I might impose for just a bit more help, I sure would appreciate it.
Cheers, Steffen
===========================
==== Victor's Response
==== Not to shulegaa <at> yahoo.com but from mondo-devel archive cut-n-paste ===========================
Re: [Mondo-devel] Ubuntu 11.04 mondoarchive fails & mindi .deb shows conflicts ...From:
Gattegno, Victor (GCC - Software) <victor_gattegno <at> hp...> - 2011-09-26 08:22
Hi Steffen, It is recommended to run mondoarchive as root, not through sudo. Don't use mondoarchive "-k
FAILSAFE" option, failsafe kernel used to be provided in a separate package and is not maintained
anymore. > mindi-busybox ... Version: 2.2.9.7-1 ???
Latest versions on ftp://ftp.mondorescue.org/ubuntu/11.04:
mondo-2.2.9.7-1
mindi-2.0.7.8-1
mindi-busybox-1.18.3-3 About mindi versions confusion, uninstall your mindi versions, and install
only mindi-2.0.7.8. About mondoarchive -E option, since mondo 2.2.9.5. there is a new syntax for -E and -I
options, pipe character ('|') is used to separate the paths, instead of space character.
So you should use:
-E "/media/bf9ada79-31c0-49da-bfad-6c71f397718d|/home/schulegaard/tmp/mondo /tmp/mondo" >
FATAL ERROR. Cannot unzip lib.tar.bz2 Try with mondoarchive -G option (it uses gzip instead) About ide_cd:
ide_cd is already included in IDE_MODS line, in /usr/sbin/mindi shell-script, no need to add it to
FORCE_MODS. I get also "FATAL: Module ide_cd not found." with my Ubuntu 11.04, but the backup is
successfull. Rgds, Victor
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Mondo-devel mailing list
Mondo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mondo-devel