How to remove LVM Input/output error
Many time after changing the femware of LVM or removing
the disk/LUN’s without clean shutdown/unmount you may get fallowing
error:
/dev/sdf: read failed after 0 of 4096 at 0: Input/output error
/dev/sdf: 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 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 6442442752: Input/output error
/dev/sdk: read failed after 0 of 4096 at 4096: Input/output error
# Check which Volume Group have the issue , run “vgscan” command .
# Find out the Logical Volumes attached with that Volume Group.
# Inactive the logical volumes as :
# Inactive Volume group as :
# Again Scan Volume group using “vgscan” .
# Now activate the Volume Group :
# Run command “lvscan” , the error should be gone now .
# Now activate the Logical Volume Name :
/dev/sdf: read failed after 0 of 4096 at 0: Input/output error
/dev/sdf: 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 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 6442442752: Input/output error
/dev/sdk: read failed after 0 of 4096 at 4096: Input/output error
# Check which Volume Group have the issue , run “vgscan” command .
1.vgscan# Inactive the logical volumes as :
1.lvchange -an lv-name1.vgchange -an vg-name1.vgscan1.vgchange -ay volume-group-name# Now activate the Logical Volume Name :
1.lvchange -ay lv-name
No comments:
Post a Comment