LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2009, 05:38 PM   #1
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Rep: Reputation: 15
MondoArchive bug in exclude list? Ubuntu 8.10


Hi,
I am trying to backup only my system, "/boot", "/" and nothing else. I can do my /home and all data drives with a tar -cz command.

My boot drive, /dev/sda has a 2 gb /boot, a 40 gb root ("/"), an 8 gb swap and a 240 GB /home.

I also have a 640 gb /dev/sdb which has windows system and boot partitions. I do not want mondo to touch this in any way.

I tell Mondo to include just sda1 (/boot) and sda2 (/). I tell it to exclude all my large data drives and explicitly "/dev/sdb and /dev/sdb2". The process dwells for many hours backing up "bigfile #1" /dev/sdb2 which I explicitly told it to exclude. Do I need to shut down and unplug the windows drive?

When I let it run to completion, I get a 40 GB ISO from 2 partitions df tells me are less than 10 GB:
root@godzilla2:/mnt/BrianPBarnz# df
/dev/sda1 2.0G 108M 1.8G 6% /boot
/dev/sda2 40G 9.8G 28G 26% /
/dev/sda4 228G 3.7G 213G 2% /home
/dev/sdc2 877G 173G 660G 21% /tera
/dev/sdd1 2.6T 590G 1.9T 24% /r5

From the mondoarchive.log file
381: exclude_paths = '/r5 /tera /mnt /media /home /dev/sdb /dev/sdb2'
384: image_devs = '/dev/sdb2 /dev/sd'
[Main] libmondo-filelist.c->call_filelist_chopper#235: Examining imagedev /dev/sdb2 /dev/sd
[Main] libmondo-filelist.c->call_filelist_chopper#242: Adding '/dev/sdb2' to biggielist

Why is it adding to the "biggielist" the exact partition I told it to exclude?

Here are my exact inputs to mondoarchive:
root>: mondoarchive
backup to: hard_disk
storage dir: /r5
Compression: maximum
ISO size: 99999
Prefix: g2.root.20090128
backup paths: /dev/sda1 /dev/sda2 (/boot and /)
NTFS partitions: none (blank, erase all input. Default was "/dev/sdb4 /dev/sdb5 /dev/sdf1 /dev/sdh1 /dev/sdh2"
Exclude paths: /r5 /tera /home /mnt /media /dev/sdb /dev/sdb4
verify backups: yes
sane kernel: yes
proceed: yes



I have a sneaking suspicion that I am missing something basic here. Any ideas?

The mondoarchive.log file (until the point where it is 5% done backing up /sdb2 with 528 minutes left) can be found at http://Fractasia.com/mondoarchive.20090128.afu.log

I have tried translating these parameters into a coherent command line and I always get a 33 MB .ISO no matter what I backup.
mondoarchive -I "/dev/sda1 /dev/sda2" -E "/dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb4 /r5 /tera /home /mnt /media" -9 -N -p g2.root.20090128 -d /tera/mondo -OV -s 9g -i

root@godzilla2:/home/brianp# ll -h /tera/mondo/g2.root.20090128*
-rw-r--r-- 1 root root 33M 2009-01-28 16:50 /tera/mondo/g2.root.20090128-1.iso

The full shell output and log file drivel are at:
http://Fractasia.com/mondoarchive.co...090128.afu.log

Pulling my hair out,

BrianP


/dev/sdc is a 1 TB is a standalone, data drive.
/dev/sdd is a 3 TB RAID 5 data array which is far too large to image.
/dev/sde is an imaginary, 8gb hangover from a windows 7 disaster.
/dev/sdf, g and h are external, usb drives.

The full df and fdisk -l:
root@godzilla2:/mnt/BrianPBarnz# df
/dev/sda1 2.0G 108M 1.8G 6% /boot
/dev/sda2 40G 9.8G 28G 26% /
/dev/sda4 228G 3.7G 213G 2% /home
/dev/sdc2 877G 173G 660G 21% /tera
/dev/sdd1 2.6T 590G 1.9T 24% /r5
/dev/sdf1 912G 407G 506G 45% /media/1T_ext
/dev/sdf1 912G 407G 506G 45% /mnt/extera
/dev/sdf3 16G 172M 15G 2% /media/usb0
/dev/sdg1 1.9G 731M 1.2G 38% /media/2GB_THUMB
/dev/sdh1 357G 212G 146G 60% /media/BrianPBarnz
/dev/sdh1 357G 212G 146G 60% /mnt/BrianPBarnz
root@godzilla2:/mnt/BrianPBarnz# fdisk -l

Disk /dev/sda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001d63d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 262 2104483+ 83 Linux
/dev/sda2 263 5484 41945715 83 Linux
/dev/sda3 5485 6529 8393962+ 82 Linux swap / Solaris
/dev/sda4 6530 36481 240589440 83 Linux

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007175a

Device Boot Start End Blocks Id System
/dev/sdb1 2 2550 20474842+ f W95 Ext'd (LBA)
/dev/sdb2 * 2551 40795 307202962+ 7 HPFS/NTFS
/dev/sdb3 40796 43345 20482048 7 HPFS/NTFS
/dev/sdb4 43346 77825 276960600 7 HPFS/NTFS
/dev/sdb5 2 2550 20474811 7 HPFS/NTFS

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xddbdcbed

Device Boot Start End Blocks Id System
/dev/sdc1 1 121602 976762583+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 2999.9 GB, 2999967547392 bytes
255 heads, 63 sectors/track, 364725 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdd1 1 267350 2147483647+ ee GPT

Disk /dev/sde: 8589 MB, 8589934080 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sde doesn't contain a valid partition table

Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19b7bd51

Device Boot Start End Blocks Id System
/dev/sdf1 1 119051 956277126 7 HPFS/NTFS
/dev/sdf2 119052 119537 3903795 82 Linux swap / Solaris
/dev/sdf3 * 119538 121601 16579080 83 Linux

Disk /dev/sdg: 2032 MB, 2032664576 bytes
64 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Disk identifier: 0xe957e957

Device Boot Start End Blocks Id System
/dev/sdg1 * 1 983 1981696+ 6 FAT16

Disk /dev/sdh: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe6c69652

Device Boot Start End Blocks Id System
/dev/sdh1 1 46531 373760226 7 HPFS/NTFS
/dev/sdh2 46532 48641 16948575 7 HPFS/NTFS
root@godzilla2:/mnt/BrianPBarnz#
 
Old 01-28-2009, 06:14 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by brianpbarnes View Post

I have a sneaking suspicion that I am missing something basic here. Any ideas?
You are trying to backup and exclude partitions. I think that the Mondo control commands work on directories within the file tree, not partitions. So instead of trying to exclude /dev/sdb2 you should exclude the directory that the /dev/sdb2 partition is mounted on.

Similarly, if you tell Mondo to backup / then it will do everything in the / file tree which you have not excluded. So telling Mondo to backup up /boot is redundant if you have already told it to back up / regardless whether /boot is on a separate partition.

-----------------------
Steve Stites
 
Old 01-29-2009, 10:44 AM   #3
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Original Poster
Rep: Reputation: 15
/dev/sdb* is neither mounted nor in fstab

Jailbait,
< instead of trying to exclude /dev/sdb2 you should exclude the directory that the /dev/sdb2 partition is mounted on. >

Mondo crashes with a fatal error unless I comment out all NTFS partitions in my fstab file. Here's what I have to do to get mondo to not crash immediately:
#UUID=CC644E5D644E4A82 /mnt/xpsys ntfs-3g defaults,force 0 0
#UUID=7077647804C17F45 /mnt/xpdat ntfs-3g defaults,force 0 0
#UUID=205873D735479DC3 /mnt/w7sys ntfs-3g defaults,force 0 0
#UUID=532FABC744FCD36B /mnt/w7dat ntfs-3g defaults,force 0 0

If you look at the df output, none of them are mounted. There is no sdb in the df. It's windoze system and data drives for xp and win7.

Furthermore, when I do mount them, they are all located on /mnt which is explicitly excluded:
Exclude paths: /r5 /tera /home /mnt /media /dev/sdb /dev/sdb4

I commented sdb out of the fstab
I unmounted every sdb partition
I have excluded the entire sdb drive
I have excluded the offending sdb2, 300 GB XP data partition.
I excluded the entire /mnt directory where they would have been mounted.

I have done everything except unplug the bleepin' drive!

The documentation installed with Mondo says that you can exclude entire drives:
"You may also specify full disk device to this option as with -E ``/dev/sda /dev/cciss/c0d0'' ". Same with the -I(nclude) path.

Either Mondo or I (or both) are insane! I have emailed their bug list numerous times and never heard a peep.

I think this started when I "upgraded" from Ubuntu 8.04 to 8.10. I suppose I will just reinstall mondo...???

Thank you,

Brian
 
Old 02-04-2009, 10:54 AM   #4
brianpbarnes
Member
 
Registered: Dec 2005
Posts: 143

Original Poster
Rep: Reputation: 15
Mondo fixed by switching from ubuntu to Suse 11.1

Hi,
Mondo was never right on ubuntu. I would usually have to try half a dozen times to get an ISO including stripping every ntfs partition out of my fstab.

In Suse 11.1, I just added URL: ftp://ftp.mondorescue.org/suse/11.1 to my repos, used yast to install it and it works exactly as expected now.

Suse ROCKS!

BrianP
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel i810 on-board graphics card bug, with Ubuntu server 7.04 running Ubuntu-Desktop calebf Linux - Server 2 05-14-2007 11:53 PM
Mondoarchive via cron pietrob71 Linux - Software 4 06-13-2006 03:24 AM
PHP: List files in directory, exclude backups kenneho Programming 2 12-30-2005 04:27 AM
rsync exclude list steelhead79 Linux - Software 3 01-14-2005 12:10 PM
Bug Report & Users-list Xterminator Conectiva 0 02-25-2004 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration