When a storage unit is longer available to the Linux Server, You would see the following error message:
[root@node1 /]# pvs
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
/dev/sdb: read failed after 0 of 4096 at 2147418112: Input/output error
/dev/sdb: read failed after 0 of 4096 at 2147475456: Input/output error
/dev/sdb: read failed after 0 of 4096 at 4096: Input/output error
PV VG Fmt Attr PSize PFree
/dev/mapper/disk1 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk2 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk3 lvm2 a-- 1.00g 1.00g
/dev/sda2 vg_node1 lvm2 a-- 19.51g 0
[root@node1 /]#
To fix the issue, We need to delete the corresponding /dev/sdb file from OS Level.
[root@node1 /]# echo 1 > /sys/block/sdb/device/delete
[root@node1 /]# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/disk1 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk2 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk3 lvm2 a-- 1.00g 1.00g
/dev/sda2 vg_node1 lvm2 a-- 19.51g 0
[root@node1 /]#
[root@node1 /]# pvs
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
/dev/sdb: read failed after 0 of 4096 at 2147418112: Input/output error
/dev/sdb: read failed after 0 of 4096 at 2147475456: Input/output error
/dev/sdb: read failed after 0 of 4096 at 4096: Input/output error
PV VG Fmt Attr PSize PFree
/dev/mapper/disk1 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk2 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk3 lvm2 a-- 1.00g 1.00g
/dev/sda2 vg_node1 lvm2 a-- 19.51g 0
[root@node1 /]#
To fix the issue, We need to delete the corresponding /dev/sdb file from OS Level.
[root@node1 /]# echo 1 > /sys/block/sdb/device/delete
[root@node1 /]# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/disk1 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk2 lvm2 a-- 1.00g 1.00g
/dev/mapper/disk3 lvm2 a-- 1.00g 1.00g
/dev/sda2 vg_node1 lvm2 a-- 19.51g 0
[root@node1 /]#
No comments:
Post a Comment