Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of error reporting in Linux LVM iDUBO

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will give you a detailed explanation on how to solve the problem of error reporting in Linux LVM I picture. the editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

1. Preface

How to solve the problem of Linux LVM read failed after O reporting error, / dev/sdf: read failed after 0 of 4096 at 0: Input/output error

Logical volume management logical Volume Management (LVM) is a kind of storage virtualization, which provides system administrators with a more flexible disk storage space management method than traditional partitioning. This type of virtualization tool is located in the device driver stack on the operating system. It works by dividing the physical volume (pv) into physical segments (PEs). PEs is mapped to logical segments (LEs), which are then merged into volume groups (vg). These groups are linked to logical volumes (lv), which act as virtual disk partitions and can be managed using LVM.

Most of us encounter the errors mentioned below when doing system administration activities, which is mainly related to the removable storage media we use on the unix/Linux server.

This may be due to the removal of the disk / LUN without cleaning up shutting down / unmounting or unmounting the disk from LV.

/ 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

two。 Solution

1) check which logical volume group has a problem and run the "vgscan" command.

Vgscan

2) find the logical volumes associated with the volume group.

3) logical volume lv is set to inactive:

Remember the name of the corresponding lv logical volume

Lvchange-an

4) the volume group is set to inactive:

Vgchange-an

5) use the vgscan command to scan the volume group again

Vgscan

6) now activate the volume group

Vgchange-ay

7) run the lvscan command again and the error should disappear.

Lvscan

8) you can now activate a specific LV name Logical Volume name

Lvchange-ay

Note: in some cases, if we want to use the same storage device again, it is not clean, but it still has an error after connecting, then we need to manually remove the removable device for a period of time and then reconnect. Then follow the steps above.

This is the end of the article on "how to solve the problem of error reporting in Linux LVM Iphamo". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report