Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 586396

Summary: sys-fs/lvm2-2.02.145-r2 - pvscan Input/output error with not existing logical volume
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: agk, cardoe, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Juergen Rose 2016-06-19 16:25:34 UTC
'pvscan' complains about:

root@cheetahnew:/root(14)# pvscan 
  /dev/vg0/usr: read failed after 0 of 4096 at 0: Input/output error
  /dev/vg0/usr: read failed after 0 of 4096 at 51539542016: Input/output error
  /dev/vg0/usr: read failed after 0 of 4096 at 51539599360: Input/output error
  /dev/vg0/usr: read failed after 0 of 4096 at 4096: Input/output error
  PV /dev/md127   VG vg0             lvm2 [1.67 TiB / 0    free]
  Total: 1 [1.67 TiB] / in use: 1 [1.67 TiB] / in no VG: 0 [0   ]
root@cheetahnew:/root(15)# vgscan 
  Reading all physical volumes.  This may take a while...
  Found volume group "vg0" using metadata type lvm2
root@cheetahnew:/root(16)# lvscan 
  ACTIVE            '/dev/vg0/var' [8.00 GiB] inherit
  ACTIVE            '/dev/vg0/vtmp' [32.00 GiB] inherit
  ACTIVE            '/dev/vg0/distfiles' [64.00 GiB] inherit
  ACTIVE            '/dev/vg0/opt' [12.00 GiB] inherit
  ACTIVE            '/dev/vg0/home' [898.74 GiB] inherit
  ACTIVE            '/dev/vg0/tmp' [16.00 GiB] inherit
  ACTIVE            '/dev/vg0/ftp' [128.00 GiB] inherit
  ACTIVE            '/dev/vg0/src' [32.00 GiB] inherit
  ACTIVE            '/dev/vg0/portage' [4.00 GiB] inherit
  ACTIVE            '/dev/vg0/data' [512.00 GiB] inherit

root@cheetahnew:/root(21)# ll /dev/vg0/
total 0
lrwxrwxrwx 1 root root 7 May 29 23:41 data -> ../dm-9
lrwxrwxrwx 1 root root 7 May 29 23:41 distfiles -> ../dm-2
lrwxrwxrwx 1 root root 7 May 29 23:41 ftp -> ../dm-6
lrwxrwxrwx 1 root root 7 May 29 23:41 home -> ../dm-4
lrwxrwxrwx 1 root root 7 May 29 23:41 opt -> ../dm-3
lrwxrwxrwx 1 root root 7 May 29 23:41 portage -> ../dm-8
lrwxrwxrwx 1 root root 7 May 29 23:41 src -> ../dm-7
lrwxrwxrwx 1 root root 7 May 29 23:41 tmp -> ../dm-5
lrwxrwxrwx 1 root root 8 Jun 10 11:27 usr -> ../dm-10
lrwxrwxrwx 1 root root 7 May 29 23:41 var -> ../dm-0
lrwxrwxrwx 1 root root 7 May 29 23:41 vtmp -> ../dm-1

root@cheetahnew:/usr/src/linux(62)# ll /dev/dm*
brw-rw---- 1 root disk 253,  0 May 29 23:41 /dev/dm-0
brw-rw---- 1 root disk 253,  1 May 29 23:41 /dev/dm-1
brw-rw---- 1 root disk 253, 10 Jun 10 11:27 /dev/dm-10
brw-rw---- 1 root disk 253,  2 May 29 23:41 /dev/dm-2
brw-rw---- 1 root disk 253,  3 May 29 23:41 /dev/dm-3
brw-rw---- 1 root disk 253,  4 May 29 23:41 /dev/dm-4
brw-rw---- 1 root disk 253,  5 May 29 23:41 /dev/dm-5
brw-rw---- 1 root disk 253,  6 May 29 23:41 /dev/dm-6
brw-rw---- 1 root disk 253,  7 May 29 23:41 /dev/dm-7
brw-rw---- 1 root disk 253,  8 May 29 23:41 /dev/dm-8
brw-rw---- 1 root disk 253,  9 May 29 23:41 /dev/dm-9
root@cheetahnew:/usr/src/linux(63)# ll /dev/mapper/
total 0
crw------- 1 root root 10, 236 May 29 23:41 control
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-data -> ../dm-9
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-distfiles -> ../dm-2
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-ftp -> ../dm-6
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-home -> ../dm-4
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-opt -> ../dm-3
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-portage -> ../dm-8
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-src -> ../dm-7
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-tmp -> ../dm-5
lrwxrwxrwx 1 root root       8 Jun 10 11:27 vg0-usr -> ../dm-10
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-var -> ../dm-0
lrwxrwxrwx 1 root root       7 May 29 23:41 vg0-vtmp -> ../dm-1

I do not have any idea, why there is a /dev/vg0/usr link or /dev/dm-10 device file, if I do not have logical volume /dev/vg0/usr.

Maybe there was a logical volume /dev/vg0/usr in the volume group vg0 some years ago in pre systemd times. 'genlop -t systemd' shows that systemd was installed at least with systemd-206 in Jul 2013.

What is the best way to handle this, should I remove /dev/mapper/vg0-usr, /dev/dm-10 and /dev/vg0/usr?
Comment 1 Alex Xu (Hello71) 2016-06-24 22:55:45 UTC
five bucks says your hard drive is failing.