Ticket #652 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

output from fdisk -l stderr when starting mondoarchive on an ubuntu 12.04 system with lvm

Reported by: lejoko Owned by: bruno
Priority: normal Milestone: 3.0.3
Component: mondo Version: 3.0.2
Severity: normal Keywords:



Patch attached.

System: Ubuntu 12.04.

Server using LVM.

Versions used are the most recent prepackaged provided for Ubuntu 12.04 i386 :

  • mondo 3.0.2-1
  • mindi 2.1.2-1
  • mindi-busybox 1.18.5-2

When I start mondoarchive by hand and immediately exit thereafter I get this output:

See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Disk /dev/mapper/vg0-home doesn't contain a valid partition table
Disk /dev/mapper/vg0-tmp doesn't contain a valid partition table
Disk /dev/mapper/vg0-var doesn't contain a valid partition table
Execution run ended; result=1
Type 'less /var/log/mondoarchive.log' to see the output log

The lines ending with "doesn't contain a vlid partition table" shouldn't (obviously) be there. They come from stderr of "fdisk -l".

I corrected the problem by redirecting stderr of fdisk -l to /dev/null in line 1018 of src/common/libmondo-tools.c (see attached patch)

For a bit more of discussion: actually I get the same output from cron nightly backups, but this way to demonstrate it seemed simpler. Also, it seems that older versions of fdisk used to skip lvm volumes when doing an fdisk -l, but not the version in ubuntu 12.04.

And by the way: thanks for mondoarchive!


mondoarchive-fdisk-l-stderr-patch.diff Download (600 bytes) - added by lejoko 4 years ago.
Patch correcting the bug

Change History

Changed 4 years ago by lejoko

Patch correcting the bug

comment:1 Changed 4 years ago by bruno

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

Thanks for your patch. Applied in rev [3054]

Note: See TracTickets for help on using tickets.