Hi, I recently installed centos for the first time and I like it! Also, I just started working with lvm. The following warnings are genertated whenever I run one of lvm commands on the external usb disk (MyBook by Western Digital). * What could be the source for those messages? * Should I worry about them (writing into the created LV's seems to work)? * If yes, how to fix them? [root at frodo pilpel10]# uname -a Linux frodo 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 05:28:30 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux Using lvm2 2.02.01-1.3 Thanks in advance, Itay <quote> [root at frodo pilpel10]# vgcreate VGe1 /dev/sdc2 /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error Volume group "VGe1" successfully created [root at frodo pilpel10]# pvscan /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error PV /dev/sdc2 VG VGe1 lvm2 [296.13 GB / 296.13 GB free] PV /dev/sda2 VG VG00 lvm2 [232.78 GB / 1.78 GB free] Total: 2 [528.91 GB] / in use: 2 [528.91 GB] / in no VG: 0 [0 ] [root at frodo pilpel10]# lvcreate -L 202G -n LVbiogateBAK_home VGe1 /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error Logical volume "LVbiogateBAK_home" created </quote>
On Thu, 2006-07-06 at 15:36 +0300, itayf at nospammail.net wrote:> Hi, > > I recently installed centos for the first time and I like it! > > Also, I just started working with lvm. The following warnings > are genertated whenever I run one of lvm commands on the external > usb disk (MyBook by Western Digital). > > * What could be the source for those messages? > * Should I worry about them (writing into the created LV's > seems to work)? > * If yes, how to fix them? > > [root at frodo pilpel10]# uname -a > Linux frodo 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 05:28:30 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux > > Using lvm2 2.02.01-1.3 > > Thanks in advance, > Itay > > <quote> > [root at frodo pilpel10]# vgcreate VGe1 /dev/sdc2Did you do pvcreate?> /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > Volume group "VGe1" successfully created > [root at frodo pilpel10]# pvscan > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > PV /dev/sdc2 VG VGe1 lvm2 [296.13 GB / 296.13 GB free] > PV /dev/sda2 VG VG00 lvm2 [232.78 GB / 1.78 GB free] > Total: 2 [528.91 GB] / in use: 2 [528.91 GB] / in no VG: 0 [0 ] > [root at frodo pilpel10]# lvcreate -L 202G -n LVbiogateBAK_home VGe1 > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > Logical volume "LVbiogateBAK_home" created > </quote> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060706/fbd7a823/attachment-0002.sig>
On Thu, 2006-07-06 at 15:36 +0300, itayf at nospammail.net wrote:> Hi, > > I recently installed centos for the first time and I like it! > > Also, I just started working with lvm. The following warnings > are genertated whenever I run one of lvm commands on the external > usb disk (MyBook by Western Digital). > > * What could be the source for those messages? > * Should I worry about them (writing into the created LV's > seems to work)? > * If yes, how to fix them? > > [root at frodo pilpel10]# uname -a > Linux frodo 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 05:28:30 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux > > Using lvm2 2.02.01-1.3 > > Thanks in advance, > Itay > > <quote> > [root at frodo pilpel10]# vgcreate VGe1 /dev/sdc2I guess I ought to be more thoughtful about this. Is it partitioned? Type 86(IIRC)? Have you reviewed any docs so that you understand the complexity, options and necessities of this system?> /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > Volume group "VGe1" successfully created > [root at frodo pilpel10]# pvscan > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 216895782912: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 61203218432: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > PV /dev/sdc2 VG VGe1 lvm2 [296.13 GB / 296.13 GB free] > PV /dev/sda2 VG VG00 lvm2 [232.78 GB / 1.78 GB free] > Total: 2 [528.91 GB] / in use: 2 [528.91 GB] / in no VG: 0 [0 ] > [root at frodo pilpel10]# lvcreate -L 202G -n LVbiogateBAK_home VGe1 > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > Logical volume "LVbiogateBAK_home" created > </quote> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060706/0071e030/attachment-0002.sig>
From: William L. Maltby <BillsCentOS at triad.rr.com>> From: Itay <itayf at nospammail.net>> > Also, I just started working with lvm. The following warnings > > are genertated whenever I run one of lvm commands on the external > > usb disk (MyBook by Western Digital).[snip]> > [root at frodo pilpel10]# vgcreate VGe1 /dev/sdc2> Did you do pvcreate?As far as I remember -- yes. When I return to my office, at the beginning of next week, I'll look at the terminal session to see the exact command sequence. But my conviction is reinforced by the output of pvscan and pvdisplay (wasn't in the original message) below.> > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > > /dev/dm-12: read failed after 0 of 4096 at 54460416: Input/output error > > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error[snip]> > Volume group "VGe1" successfully created> > [root at frodo pilpel10]# pvscan > > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error[snip]> > PV /dev/sdc2 VG VGe1 lvm2 [296.13 GB / 296.13 GB free] > > PV /dev/sda2 VG VG00 lvm2 [232.78 GB / 1.78 GB free] > > Total: 2 [528.91 GB] / in use: 2 [528.91 GB] / in no VG: 0 [0 ] >[root at frodo ~]# pvdisplay /dev/sdc2 /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error --- Physical volume --- PV Name /dev/sdc2 VG Name VGe1 PV Size 296.13 GB / not usable 0 Allocatable yes PE Size (KByte) 4096 Total PE 75810 Free PE 24098 Allocated PE 51712 PV UUID Ue56s5-nkax-csIU-6iBX-l4eb-hIJ1-nxJLgl Thanks, Itay
On Thu, 6 Jul 2006, itayf at nospammail.net wrote:> Date: Thu, 6 Jul 2006 15:36:06 +0300 (IDT) > From: itayf at nospammail.net> Also, I just started working with lvm. The following warnings are genertated > whenever I run one of lvm commands on the external usb disk (MyBook by > Western Digital).> <quote> > [root at frodo pilpel10]# vgcreate VGe1 /dev/sdc2 > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error[snip]> Volume group "VGe1" successfully created > [root at frodo pilpel10]# pvscan > /dev/dm-11: read failed after 0 of 4096 at 5242814464: Input/output error > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error[snip]> Total: 2 [528.91 GB] / in use: 2 [528.91 GB] / in no VG: 0 [0 ] > [root at frodo pilpel10]# lvcreate -L 202G -n LVbiogateBAK_home VGe1 > /dev/dm-11: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-12: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-13: read failed after 0 of 4096 at 0: Input/output error > /dev/dm-14: read failed after 0 of 4096 at 0: Input/output error > Logical volume "LVbiogateBAK_home" created > </quote>The original sin was creating the physical, group, and logical volumes in a partition whose file system descriptor was Linux (Id=83) and not Linux LVM (Id=8e), the '/dev/sdc2' line below. The (undocumented) behavior of 'parted DEVICE mkpart ...' is to create an ex2 fs if non is specified. The confusing part for me was, that most of lvm operations were executed, and I was able to create on the LVs a seemingly-healthy file system (see above). Anyway, the solution was to change the fs ID, and (to be on the safe side) recreate the physical, group, and logical volumes. Below is a summary of my actions. Huge thanks to Bill Maltby for all the help and education, and to Matt Hyclak for his short and crucial comment. Itay # Hard drive state before fix [root at frodo ~]# sfdisk -l /dev/sdc Disk /dev/sdc: 38913 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdc1 * 0+ 254 255- 2048256 c W95 FAT32 (LBA) /dev/sdc2 255 38912 38658 310520385 83 Linux /dev/sdc3 0 - 0 0 0 Empty /dev/sdc4 0 - 0 0 0 Empty # Is partition size OK? [root at frodo ~]# dd if=/dev/sdc2 of=/dev/null 12747056+0 records in 12747056+0 records out # As an extra safety, anticipate the next command's arguments [root at frodo ~]# sfdisk --print-id /dev/sdc 2 83 # Now change the partition's file-system descriptor to Linux LVM [root at frodo ~]# sfdisk --change-id /dev/sdc 2 8e Done # Reread partitions on the fly [root at frodo ~]# sfdisk -R /dev/sdc BLKRRPART: Device or resource busy This disk is currently in use. ... # Hmmmm... Reboot and relist partitions. # The harddrive is usb so its identifier changed from c to b. # Note the '/dev/sdb2/' line -- its Linux LVM -- and compare to # '/dev/sdc2' above. [root at frodo ~]# sfdisk -l /dev/sdb Disk /dev/sdb: 38913 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdb1 * 0+ 254 255- 2048256 c W95 FAT32 (LBA) /dev/sdb2 255 38912 38658 310520385 8e Linux LVM /dev/sdb3 0 - 0 0 0 Empty /dev/sdb4 0 - 0 0 0 Empty # From here, [pv|gv|lv]create, and other lvm operations went # smoothly, with no warnings.