Opened 12 years ago

Closed 12 years ago

#650 closed defect (fixed)

Exclude list LVM problem

Reported by: victor gattegno Owned by: Bruno Cornec
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 (2)

comment:1 by victor gattegno, 12 years ago

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 by Bruno Cornec, 12 years ago

Resolution: fixed
Status: newclosed

Adopted in rev [3052].

Note: See TracTickets for help on using tickets.