[Bug 862403] New: lvmetad should not scan floppy
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c0 Summary: lvmetad should not scan floppy Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: arvidjaar@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 Patch for bnc#854413 switched LVM2 to use lvmetad by default. It appears lvmetad scans all available devices on startup, including CD-ROMs and floppy. It has cosmetic issues (errors are logged) but also attempt to access non-existent floppy is known to hang for very long time. Currently patch is pulled back due to bnc#862076. If switch to lvmetad is considered again, it should restrict range of devices to scan, at least skip floppies. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.novell.com | |/show_bug.cgi?id=854413 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c Arvin Schnell <aschnell@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |dmzhang@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c Lars Müller <lmuelle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |862076 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c dong mao zhang <dmzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|862076 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c1 dong mao zhang <dmzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dmzhang@suse.com |lwang@suse.com --- Comment #1 from dong mao zhang <dmzhang@suse.com> 2014-03-24 13:19:20 HKT --- Liuhua, Can you help to fix this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c2 --- Comment #2 from Liuhua Wang <lwang@suse.com> 2014-04-08 09:00:10 UTC --- (In reply to comment #0) I have modified /etc/lvm/lvm.conf to fix the filter as followed: ----------------------------------------- # By default we accept every block device except udev names, floppy and cdrom: filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|","r|/dev/fd.*|", "r|/dev/cdrom|", "a/.*/" ] ----------------------------------------- Andrey: Would you please modify your filter in lvm.conf as the above and try again? I have also committed to openSUSE:Factory/lvm2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-08 11:00:20 CEST --- This is an autogenerated message for OBS integration: This bug (862403) was mentioned in https://build.opensuse.org/request/show/229351 13.1 / lvm2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-04-09 12:00:11 CEST --- This is an autogenerated message for OBS integration: This bug (862403) was mentioned in https://build.opensuse.org/request/show/229469 Factory / lvm2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c6 Matthias Grießmeier <mgriessmeier@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Matthias Grießmeier <mgriessmeier@suse.com> 2014-04-16 07:19:45 UTC --- Update released for openSUSE 13.1 - resolved fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c7 --- Comment #7 from Swamp Workflow Management <swamp@suse.de> 2014-04-16 08:04:52 UTC --- openSUSE-RU-2014:0533-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 862403 CVE References: Sources used: openSUSE 13.1 (src): lvm2-2.02.98-0.28.18.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c8 Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #8 from Andrey Borzenkov <arvidjaar@gmail.com> 2014-04-19 15:12:05 UTC --- This does not completely fix it. When the very first client connects to lvmetad, full device scan is triggered which still attempts to scan /dev/fd0 and /dev/cdrom. This device scan ignores device/filter setting. It does respect device/global_filter setting though and this was what originally was suggested. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c9 --- Comment #9 from Liuhua Wang <lwang@suse.com> 2014-06-25 09:24:43 UTC --- Andrey, I am sorry there is some error with my bugzilla. it doesnot send mail to me. I just noticed the bug Reopened. Can you tell what the reproduce steps? In my environment, I cannot see the log of scanning floppy disk. Is the os installed on a lvm partition? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c10 --- Comment #10 from Andrey Borzenkov <arvidjaar@gmail.com> 2014-06-25 18:04:41 UTC --- (In reply to comment #9)
Is the os installed on a lvm partition?
No. Here is trivial way to reproduce it - install OS without LVM - create the very first PV this reliably triggers for me [ 143.704478] end_request: I/O error, dev fd0, sector 0 [ 143.732256] end_request: I/O error, dev fd0, sector 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c11 --- Comment #11 from Andrey Borzenkov <arvidjaar@gmail.com> 2014-06-25 18:14:37 UTC --- Or the very first pvscan after reboot linux-dwhw:~ # pvscan /dev/fd0: open failed: No such device or address /dev/cdrom: open failed: No medium found -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c12 --- Comment #12 from Liuhua Wang <lwang@suse.com> 2014-06-26 09:01:39 UTC --- Thanks for your reply. I install newest sle12beta9, could not reproduce. 1. install sle12b9 2. edit /etc/lvm/lvm.conf : user_lvmetad = 1 3. systemctl enable lvm2-lvmetad.socket (if not enbale, lvmetad cannot run) 4. pvcreate /dev/sda3 5. pvscan pvscan return quickly. Lvm2 has same source on sle12:GA and opensuse factory, so I tested with it. Andey, would you please try on the newest os to see if still has this problem? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c13 --- Comment #13 from Andrey Borzenkov <arvidjaar@gmail.com> 2014-06-28 18:31:56 UTC --- (In reply to comment #12)
Lvm2 has same source on sle12:GA and opensuse factory, so I tested with it. Andey, would you please try on the newest os to see if still has this problem?
I installed Factory (network install) and lvmetad was disabled after installation. So of course this problem is not seen. I manually enabled lvmetad and I see the same problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c14 --- Comment #14 from Liuhua Wang <lwang@suse.com> 2014-07-02 10:14:54 UTC --- Hi Andrey, May I please you to give me some tar of lvmdump and output of pvscan -vvv? Thanks very much. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c Liuhua Wang <lwang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |arvidjaar@gmail.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c15 --- Comment #15 from Andrey Borzenkov <arvidjaar@gmail.com> 2014-07-20 13:21:49 UTC --- Created an attachment (id=599214) --> (http://bugzilla.novell.com/attachment.cgi?id=599214) lvmdump -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c16 Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|arvidjaar@gmail.com | --- Comment #16 from Andrey Borzenkov <arvidjaar@gmail.com> 2014-07-20 14:47:16 UTC --- Created an attachment (id=599215) --> (http://bugzilla.novell.com/attachment.cgi?id=599215) pvscan -vvv Files attached. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #599215|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=862403 https://bugzilla.novell.com/show_bug.cgi?id=862403#c17 --- Comment #17 from Liuhua Wang <lwang@suse.com> 2014-07-28 10:41:29 UTC --- the pvscan result here has no prblem. # pvscan -vvv Setting activation/monitoring to 1 Processing: pvscan -vvv O_DIRECT will be used Setting global/locking_type to 3 Setting global/wait_for_locks to 1 Cluster locking selected. connect() failed on local socket: No such file or directory Internal cluster locking initialisation failed. Setting global/fallback_to_local_locking to 1 locking/fallback_to_local_locking not found in config: defaulting to 1 WARNING: Falling back to local file-based locking. Volume Groups with the clustered attribute will be inaccessible. Setting global/locking_dir to /run/lvm/lock Setting global/prioritise_write_locks to 1 Locking /run/lvm/lock/P_global WB _do_flock /run/lvm/lock/P_global:aux WB _do_flock /run/lvm/lock/P_global WB _undo_flock /run/lvm/lock/P_global:aux Wiping cache of LVM-capable devices /dev/vda: Added to device cache /dev/vda1: Added to device cache /dev/disk/by-uuid/ac22fbb1-3206-44c9-9094-effef5836834: Aliased to /dev/vda1 in device cache /dev/vda2: Added to device cache /dev/disk/by-uuid/9aaec23b-2b85-4caa-840e-c0cd36a79ecf: Aliased to /dev/vda2 in device cache /dev/root: Aliased to /dev/vda2 in device cache (preferred name) /dev/vda3: Added to device cache /dev/disk/by-uuid/124a1883-eb38-4df2-b2c2-347dc8ff5ef1: Aliased to /dev/vda3 in device cache /dev/fd0: Added to device cache Wiping internal VG cache lvmcache: initialised VG #orphans_lvm1 lvmcache: initialised VG #orphans_pool lvmcache: initialised VG #orphans_lvm2 Setting response to OK Setting response to OK Walking through all physical volumes Setting response to OK Setting response to OK No matching physical volumes found Unlocking /run/lvm/lock/P_global _undo_flock /run/lvm/lock/P_global ---------------------------------------- Is that your fd0 device is not in good status? Can you open it manually? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com