1. 程式人生 > >查看邏輯卷出現 read failed after 0 of 4096 at 0

查看邏輯卷出現 read failed after 0 of 4096 at 0

set oot home led vol -s ORC block ice

1、問題描述

# lvdisplay

/dev/VolGroup1/LVdata1: read failed after 0 of 4096 at 0: Input/output error

/dev/VolGroup1/LVdata1: read failed after 0 of 4096 at 214744104960: Input/output error

/dev/VolGroup1/LVdata1: read failed after 0 of 4096 at 214744162304: Input/output error

/dev/VolGroup1/LVdata1: read failed after 0 of 4096 at 4096: Input/output error


2、查看設備

# ls /dev/VolGroup1 -lh

total 0

lrwxrwxrwx 1 root root 7 Jul 20 09:58 LVdata1 -> ../dm-5


# dmsetup status

VolGroup00-LVtmp: 0 20971520 linear

VolGroup00-LVhome: 0 1024000 linear

VolGroup1-LVdata1: 0 419422208 linear

VolGroup00-LVvar: 0 48685056 linear

VolGroup00-LVswap: 0 8388608 linear

VolGroup00-LVroot: 0 46137344 linea


3、移除設備依賴

# dmsetup remove --force VolGroup1-LVdata1


4、為設備重新進行處理

# pvdisplay

--- Physical volume ---

PV Name /dev/sda2

VG Name VolGroup00

PV Size 59.71 GiB / not usable 3.00 MiB

Allocatable yes (but full)

PE Size 4.00 MiB

Total PE 15284

Free PE 0

Allocated PE 15284

PV UUID AHHcYS-0OQP-YPD3-IFAM-X3C1-l3Tz-pDD6Hz

"/dev/vdb" is a new physical volume of "760.00 GiB"

--- NEW Physical volume ---

PV Name /dev/vdb

VG Name

PV Size 760.00 GiB

Allocatable NO

PE Size 0

Total PE 0

Free PE 0

Allocated PE 0

PV UUID rA2UHB-Pcwq-lWS6-0jD7-JxwL-V3vO-5ghQES


# vgcreate VolGroup1 /dev/vdb


# lvcreate -n LVdata1 -l 100%FREE VolGroup1


# lvscan

ACTIVE '/dev/VolGroup1/LVdata1' [760.00 GiB] inherit

ACTIVE '/dev/VolGroup00/LVroot' [22.00 GiB] inherit

ACTIVE '/dev/VolGroup00/LVvar' [23.21 GiB] inherit

ACTIVE '/dev/VolGroup00/LVtmp' [10.00 GiB] inherit

ACTIVE '/dev/VolGroup00/LVswap' [4.00 GiB] inherit

ACTIVE '/dev/VolGroup00/LVhome' [500.00 MiB] inherit


# lvdisplay

--- Logical volume ---

LV Path /dev/VolGroup1/LVdata1

LV Name LVdata1

VG Name VolGroup1

LV UUID plsneR-yzo2-bGc1-jH5x-ZgQX-S8C1-FdyeVD

LV Write Access read/write

LV Creation host, time SZD-L0107825, 2018-07-20 14:05:40 +0800

LV Status available

# open 0

LV Size 760.00 GiB

Current LE 194559

Segments 1

Allocation inherit

Read ahead sectors auto

- currently set to 256

Block device 253:5


# mkfs.ext4 /dev/VolGroup1/LVdata1

# mkdir /data


# vi /etc/fstab

/dev/mapper/VolGroup1-LVdata1 /data ext4 defaults 0 0


# mount -a


查看邏輯卷出現 read failed after 0 of 4096 at 0