Lvm Input Output Error
Contents |
Most of us faced errors mentioned below during our system admin activities , this is mainly related to the removable storage media that we use on unix servers' Reason of this could be because removing the disk/LUN's without clean shutdown/unmount or de-attaching /dev/sdb read failed after 0 of 4096 at 0 input/output error disks from LV's . /dev/sdf: read failed after 0 of 4096 at 0: Input/output error /dev/sdf:
Pvscan Read Failed After 0 Of 4096
read failed after 0 of 4096 at 3298534817792: Input/output error /dev/sdf: read failed after 0 of 4096 at 3298534875136: Input/output error /dev/sdf: read
Read Failed After 0 Of 2048 At 0 Input/output Error
failed after 0 of 4096 at 4096: Input/output error /dev/sdk: read failed after 0 of 4096 at 0: Input/output error /dev/sdk: read failed after 0 of 4096 at 6442385408: Input/output error /dev/sdk: read failed after 0 of 4096 at
Lvm Couldn't Find Device With Uuid
6442442752: Input/output error /dev/sdk: read failed after 0 of 4096 at 4096: Input/output error Solution : 1) Check which Volume Group have the issue , run "vgscan" command . 2) Find out the Logical Volumes attached with that Volume Group . 3) Inactive the logical volumes as : # lvchange -an
related to hardware problems Post Reply Print view Search Advanced search 14 posts 1 2 Next marcos86 Posts: 7 Joined: 2015/05/22 19:57:38 LVM error Quote Postby marcos86 » 2015/05/22 20:18:18 Good evening,I'm writing to share my problem and try to find a solution.I have a Dell pvdisplay input/output error R200 server with two HDD, one of 500GB and one of 1TB, since today everything went fine, couldn't find device with uuid remove I did a yum update and as there was a new kernel update I rebooted the server, then the problem occur, it cannot boot lvs input output error anymore since of LVM error.I share with you some details to let you better understandCode: Select allfdisk -l
Disk /dev/sda: 500.1GB
Disk identifier 0x00077f18
Device Boot Start End Blocks Id http://www.linuxtechi.com/fixing-lvm-io-errors/ System
/dev/sda1 * 1 13 102400 83 Linux
Partition 1 does not end on cylinder boundary
/dev/sda2 13 536 4194304 83 Linux Swap
Partition 1 does not end on cylinder boundary
/dev/sda3 536 797 2097152 83 Linux
Partition 1 does not end http://www.centos.org/forums/viewtopic.php?t=52679 on cylinder boundary
/dev/sda4 797 60802 481991704 Extended
/dev/sda5 797 60802 481990656 Linux
Disk: /dev/sdb: 1000.2GB
Disk identifier: 0x000634aa
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 121490 975868393+ 8e Linux LVM
/dev/sdb2 121491 121601 891607+ 8e Linux LVMCode: Select alllvm vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while....
Finding all volume groups
/dev/sdb: read failed after 0 of 4096 at 0: Input/Output error
/dev/sdb: read failed after 0 of 4096 at 1000204795904: Input/Output error
/dev/sdb: read failed after 0 of 4096 at 1000204795904: Input/Output error
/dev/sdb: read failed after 0 of 4096 at 0: Input/Output error
/dev/sdb: read failed after 0 of 4096 at 4096: Input/Output error
/dev/sdb: read failed after 0 of 4096 at 0: Input/Output error
/dev/sdb: read failed after 0 of 512 at 999289126912: Input/Output error
/dev/sdb: read failed after 0 of 512 at 999289225216: Input/Output error
/dev/sdb: read failed after 0 of 512 at 0: Input/Output error
/dev/sdb: read failed after 0 of 512 at 4096: Input/
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 http://serverfault.com/questions/421776/removing-vg-and-lv-after-physical-drive-has-been-removed more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. 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 output error the top Removing vg and lv after physical drive has been removed up vote 23 down vote favorite 12 We had a disk fail in a server and replaced it before removing the drive from LVM. The server has 4 physical drives (PV's), each with it's own volume group (VG). Each VG has 2 or more logical volumes (LV's.) Now LVM is complaining about the missing drive. So we read failed after have a VG (vg04) with two LV's that have become orphans than we need to clear out of the system. The problem is every time we run any LVM command we get these 'read failed' errors: # lvscan /dev/vg04/swap: read failed after 0 of 4096 at 4294901760: Input/output error /dev/vg04/swap: read failed after 0 of 4096 at 4294959104: Input/output error /dev/vg04/swap: read failed after 0 of 4096 at 0: Input/output error /dev/vg04/swap: read failed after 0 of 4096 at 4096: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 995903864832: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 995903922176: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 0: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 4096: Input/output error # vgreduce vg04 --removemissing --force /dev/vg04/swap: read failed after 0 of 4096 at 4294901760: Input/output error /dev/vg04/swap: read failed after 0 of 4096 at 4294959104: Input/output error /dev/vg04/swap: read failed after 0 of 4096 at 0: Input/output error /dev/vg04/swap: read failed after 0 of 4096 at 4096: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 995903864832: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 995903922176: Input/output error /dev/vg04/vz: read failed after 0 of 4096 at 0: In