Buffer I/o Error On Device Dm-5 Logical Block
Contents |
Bad disk? Date: Wed, 10 Nov 2010 09:39:00 -0500 Yesterday I added a hard drive (to put extra stuff on it) to my ubuntu 10.10 box and created a LVM in it. Then copied some files to it and restarted the machine to buffer i o error on device sdb logical block see if it would mount into the right mountpoint. It didn't. So I decided to see
Buffer I O Error On Device Sr0 Logical Block
if it was there (vg in question is export): raub strangepork:~$ sudo vgscan Reading all physical volumes. This may take a while... /dev/dm-0:
Buffer I O Error On Device Sdb Logical Block 0
read failed after 0 of 4096 at 429496664064: Input/output error /dev/dm-0: read failed after 0 of 4096 at 429496721408: Input/output error /dev/dm-0: read failed after 0 of 4096 at 0: Input/output error /dev/dm-0: read failed after 0 of
Buffer I O Error On Device Sdc Logical Block 0
4096 at 4096: Input/output error /dev/dm-0: read failed after 0 of 4096 at 0: Input/output error Found volume group "export" using metadata type lvm2 Found volume group "root" using metadata type lvm2 raub strangepork:~$ Those dm-0 messages do not make me happy. dmesg and vgchange make me think the problem is on the new drive: [ 268.024593] scsi 0:0:0:0: Direct-Access ATA ST3500320NS SN04 PQ: 0 ANSI: 5 [ 268.024900] sd 0:0:0:0: [sdc] 976773168 512-byte logical blocks: buffer i/o error on device sdb logical block 0 linux (500 GB/465 GiB) [ 268.024918] sd 0:0:0:0: Attached scsi generic sg2 type 0 [ 268.024996] sd 0:0:0:0: [sdc] Write Protect is off [ 268.025003] sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00 [ 268.025046] sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 268.025377] sdc: sdc1 [ 268.049853] sd 0:0:0:0: [sdc] Attached SCSI disk [ 335.467482] quiet_error: 3 callbacks suppressed [ 335.467492] Buffer I/O error on device dm-0, logical block 104857584 [ 335.467540] Buffer I/O error on device dm-0, logical block 104857584 [ 335.467589] Buffer I/O error on device dm-0, logical block 104857598 [ 335.467615] Buffer I/O error on device dm-0, logical block 104857598 [ 335.467647] Buffer I/O error on device dm-0, logical block 0 [ 335.467671] Buffer I/O error on device dm-0, logical block 0 [ 335.467703] Buffer I/O error on device dm-0, logical block 1 [ 335.467734] Buffer I/O error on device dm-0, logical block 104857599 [ 335.467762] Buffer I/O error on device dm-0, logical block 104857599 [ 335.467788] Buffer I/O error on device dm-0, logical block 104857599 raub strangepork:~$ sudo vgchange -a y /dev/dm-0: read failed after 0 of 4096 at 0: Input/output error 1 logical volume(s) in volume group "export" now active 4 logical volume(s) in volume group "root" now active raub strangepork:~$ Glancing through http://readlist.com/lists/centos.org/centos/1/5704.html I wondered if I had the wrong file system descriptor:
Customer Profit Analyzer Internet Gateway Application ICE Workstations Backups Faxing Printers Thin Clients Virtualization Scanners Outbound Email Services Linux Technical Support Advisories buffer i/o error on device sda1 logical block ECLA-20110330-1 Search Search for: Recent Posts Best practices for securing the buffer io error on device logical block Eclipse database server Badlock Security Alert How to set the destination of the backup report email? buffer i o error on device fd0 DROWN SSL Security Alert March 2016 Configure Postfix Relay with Google Apps Popular Posts How do I reboot my AIX server? How do I access Dell OpenManage? https://www.redhat.com/archives/linux-lvm/2010-November/msg00011.html How do I find my AIX server’s IP address? How do I manage Linux print queues? How do I increase the size of my AIX dump device? Links Eclipse Support Site Admin Can I safely ignore I/O errors on dm devices? The root user of a system using may occasionally receive a message similar to the following http://kb.eclipseinc.com/kb/can-i-safely-ignore-io-errors-on-dm-devices/ in the daily logwatch email: --------------------- Kernel Begin ------------------------ WARNING: Kernel Errors Present Buffer I/O error on device dm-7, ...: 11 Time(s) EXT3-fs error (device dm-7): e ...: 90 Time(s) lost page write due to I/O error on dm-7 ...: 11 Time(s) Likewise, you may notice similar error messages in the /var/log/messages file: May 16 04:04:52 eclipse kernel: lost page write due to I/O error on dm-20 May 16 04:04:52 eclipse kernel: Buffer I/O error on device dm-20, logical block 0 May 16 04:04:52 eclipse kernel: lost page write due to I/O error on dm-20 May 16 04:04:52 eclipse kernel: Buffer I/O error on device dm-20, logical block 0 May 16 04:04:52 eclipse kernel: lost page write due to I/O error on dm-20 May 16 04:04:52 eclipse kernel: Buffer I/O error on device dm-20, logical block 0 May 16 04:04:52 eclipse kernel: lost page write due to I/O error on dm-20 If the device mapper (dm-n) device(s) mentioned in the messages refer t
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora Build System (Koji) Official Spins FedoraForum.org > Fedora 23/24 > Hardware & Laptops Buffer I/O error on device dm-0 FedoraForum http://forums.fedoraforum.org/showthread.php?t=309039 Search User Name Remember Me? Password Forgot Password? Join Us! Register All Albums FAQ Today's Posts Search Hardware & Laptops Help with your hardware, including laptop issues Google™ Search FedoraForum Search Red Hat Bugzilla Search http://askubuntu.com/questions/520358/logical-block-number-in-the-buffer-i-o-error Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Search this Thread Display Modes #1 1st March 2016, 06:03 PM pmeni Offline Registered User Join Date: error on Mar 2016 Location: AR Posts: 2 Buffer I/O error on device dm-0 Hi, I have problems with Fedora 23, (Fedora 22 works fine, doesn't have this kind of errors), with no reason the disk fail an run into read-only. I changed the disk to a new one and the same issue. Anyone have this errors?, May be I can try to install Fedora whit no LVM and see if this solve the problem. Tested with error on device this kernel versions: kernel.x86_64 4.3.5-300.fc23 kernel.x86_64 4.4.2-301.fc23 Full log: http://ur1.ca/ol96o Mar 01 12:51:48 NORC kernel: ata6.00: exception Emask 0x0 SAct 0x400 SErr 0x0 action 0x6 frozen Mar 01 12:52:48 NORC kernel: ata6.00: failed command: WRITE FPDMA QUEUED Mar 01 12:52:48 NORC kernel: ata6.00: cmd 61/50:50:08:6c:1b/00:00:06:00:00/40 tag 10 ncq 40960 out res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout) Mar 01 12:52:48 NORC kernel: ata6.00: status: { DRDY } Mar 01 12:52:48 NORC kernel: ata6: hard resetting link Mar 01 12:52:48 NORC kernel: ata6: link is slow to respond, please be patient (ready=0) Mar 01 12:52:48 NORC kernel: ata6: COMRESET failed (errno=-16) Mar 01 12:52:48 NORC kernel: EXT4-fs warning (device dm-0): ext4_end_bio:329: I/O error -5 writing to inode 2368435 (offset 0 size 0 starting block 4954560) Mar 01 12:52:48 NORC kernel: Buffer I/O error on device dm-0, logical block 4954560 Mar 01 12:52:48 NORC kernel: EXT4-fs warning (device dm-0): ext4_end_bio:329: I/O error -5 writing to inode 2368435 (offset 0 size 0 starting block 4954561) Mar 01 12:52:48 NORC kernel: Buffer I/O error on device dm-0, logical block 4954561 Mar 01 12:52:48 NORC kernel: Buffer I/O error on device dm-0, logical block 4954562 Mar 01 12:52:48 NORC kernel: Buffer I/O error on device dm-0, logical block 4954563 Mar 01 12:52:48 NORC kernel: Buffer I/O error on device dm-0, logical block 4954564 Mar 01 12:52:48 NORC kernel: Buff
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Logical Block number in the “Buffer I/O error” up vote 2 down vote favorite I was trying to determine a bad PV which was causing the LV to report Buffer I/O error and found this interesting behaviour in the "Buffer I/O error" message. On a Large LV that is mapped to different PVs, I tried to use the "logical block" reported in the error, to match with the dmsetup table to find out which target device it was on. However this method doesn't seem to be reliable. I used dmsetup to create a device mapper device, with one or a number of holes in it. And the error messages are very interesting and I can't make sense of the pattern. It seems the "Logical Block" number in the error message depends on the size of the hole and also it's position. Is there a definitive way to locate the actual bad block? Here are the tests that I did +++ TEST 1 error block at 8, buffer i/o error at LB 8 root@ubuntu:~# dmsetup create test x.tab root@ubuntu:~# dmsetup table test 0 8 linear 8:16 0 8 1 error 9 1000 linear 8:16 8 root@ubuntu:~# dd if=/dev/mapper/test of=/dev/null bs=512 count=1000 dd: error reading ‘/dev/mapper/test’: Input/output error 8+0 records in 8+0 records out 4096 bytes (4.1 kB) copied, 0.000977434 s, 4.2 MB/s root@ubuntu:~# Sep 5 17:21:07 ubuntu kernel: [ 1358.811671] bio: create slab