Ticket #650 (closed defect: fixed)

Opened 23 months ago

Last modified 23 months ago

Exclude list LVM problem

Reported by: vicgat Owned by: bruno
Priority: highest Milestone: 3.0.3
Component: mondo Version: 3.0.2
Severity: critical Keywords:
Cc:

Description

Mondorescue actual process to retrieve the LVM lv name from a pv name listed in the exclude list doesn't work with SLES 11 SP1.

It is because, in libmondo-devices.c, the "pvdisplay -c /dev/mapper/a_PV" is followed by a "grep /dev/mapper/a_PV", and, in SLES 11 SP1 /dev/mapper/a_PV is not displayed in the result of "pvdisplay -c".

So the lv cannot be found and the lv associated to the pv cannot be excluded.

I emailed directly to Bruno the relevant informations.

Change History

comment:1 Changed 23 months ago by vicgat

To solve the problem, I would recommend to replace in libmondo-devices.c, line 1895:

mr_asprintf(&command, "pvdisplay -c %s | grep '%s:' 2> /dev/null", partitions[i], partitions[i]);

by

mr_asprintf(&command, "pvdisplay -c %s 2> /dev/null", partitions[i]);

comment:2 Changed 23 months ago by bruno

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

Adopted in rev [3052].

Note: See TracTickets for help on using tickets.