Hello Patrick,

First of all, thank you for your very quick reply.

Sorry to break the thread. I saw your reaction in the BTS about 3 hours 
ago, but the mail has not reached me yet, so I can't reply :-(

> Two things to try:
> 
> firstly, enable md_component_autodetection in /etc/lvm/lvm.conf - it
> looks like the system has found BOTH the MD and it's components, that
> explains the duplicate PV entries. If this doesn't work then add filters
> to lvm.conf to exclude the SCSI disks (or just include the MDs).

That _does_ get rid of the listing of physical partitions.
vgscan -vvv now looks like
<snip>
    Finding volume group "sys"
        Opened /dev/md/0
      /dev/md/0: lvm2 label detected
        Opened /dev/md/1
      /dev/md/1: lvm2 label detected
        Read sys metadata (10) from /dev/md/0 at 18432 size 1879
      /dev/md/0: lvm2 label detected
      /dev/md/1: lvm2 label detected
        Read sys metadata (9) from /dev/md/1 at 7168 size 2233
  Inconsistent metadata copies found - updating to use version 10
        Writing sys metadata to /dev/md/0 at 20480 len 1879
  Automatic metadata correction failed
  Volume group "sys" not found
      Unlocking /var/lock/lvm/V_sys
        Closed /dev/md/0
        Closed /dev/md/1
</snip>

Unfortunately it does not help to fix the inconsistency.

> Secondly try using vgcfgrestore to restore the metadata onto the disks,
> you only need to do this if 1) above fails

Hmmm. How would I do that?
As I understand it, the backups are saved in /etc and as I can not access 
my sys-root LV, I can not get to the backups.
Or is there some kind of trick to that?


I've also attached the output for 'lvdisplay >lvdisplay.txt 2>&1'.
Note the 'Device ??? has been left open' lines in that output.

Cheers,
Frans Pop
  Volume group "sys" inconsistent
  Device '/dev/md/0' has been left open.
  Device '/dev/md/1' has been left open.
  --- Logical volume ---
  LV Name                /dev/temp/exports
  VG Name                temp
  LV UUID                m14eUH-nS9s-8LI6-Ed8l-a3Z2-WYcL-5RSgJs
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.88 GB
  Current LE             1250
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:0
   
  --- Logical volume ---
  LV Name                /dev/temp/home
  VG Name                temp
  LV UUID                EHAJYq-SwHG-pjcn-Eq12-KfjU-7hWH-m6IIil
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1000.00 MB
  Current LE             250
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:1
   
  --- Logical volume ---
  LV Name                /dev/work/debmirror
  VG Name                work
  LV UUID                uXwd74-3G1X-KW3l-qtYR-HyWt-5cbB-XDxBOD
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                58.59 GB
  Current LE             15000
  Segments               2
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:2
   
  --- Logical volume ---
  LV Name                /dev/work/installer
  VG Name                work
  LV UUID                dWcrfk-tzjZ-eW0t-LSXN-yp4d-rR7L-NkCGpC
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.95 GB
  Current LE             500
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:3
   
  Inconsistent metadata copies found - updating to use version 10
  --- Logical volume ---
  LV Name                /dev/sys/root
  VG Name                sys
  LV UUID                EL2c4O-69xF-Au2y-LFKc-jve0-ziZJ-NIsaAd
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  --- Logical volume ---
  LV Name                /dev/sys/usr
  VG Name                sys
  LV UUID                6l8Fuq-0tDY-a6Gn-Frw9-ZzF6-y2xh-bWjuFd
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  --- Logical volume ---
  LV Name                /dev/sys/var
  VG Name                sys
  LV UUID                lg03B0-9JhI-EBZD-7rua-FI37-IFbh-DMJ22i
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  --- Logical volume ---
  LV Name                /dev/sys/tmp
  VG Name                sys
  LV UUID                mFRFYi-MuXY-kBTG-IysH-qKXl-lyDB-TuorXt
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   
  --- Logical volume ---
  LV Name                /dev/sys/home
  VG Name                sys
  LV UUID                044TBV-AbNO-nrIV-ouAI-NBk3-StO9-fLtjGv
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                10.00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
   

Reply via email to