Processes performing I/O do not fail on degraded LVM RAID and IO process hangs

Solution Verified - Updated -

Issue

  • Processes performing I/O do not fail on degraded LVM RAID and IO process hangs

Reproducer :

Working setup :

# lvs -a -o +devices |grep lvol0
  lvol0            testvg    rwi-aor--- 20.00g                                    100.00           lvol0_rimage_0(0),lvol0_rimage_1(0),lvol0_rimage_2(0)
  [lvol0_rimage_0] testvg    iwi-aor--- 10.00g                                                     /dev/sdb(1)                                          
  [lvol0_rimage_1] testvg    iwi-aor--- 10.00g                                                     /dev/sdc(1)                                          
  [lvol0_rimage_2] testvg    iwi-aor--- 10.00g                                                     /dev/sdd(1)                                          
  [lvol0_rmeta_0]  testvg    ewi-aor---  4.00m                                                     /dev/sdb(0)                                          
  [lvol0_rmeta_1]  testvg    ewi-aor---  4.00m                                                     /dev/sdc(0)                                          
  [lvol0_rmeta_2]  testvg    ewi-aor---  4.00m                                                     /dev/sdd(0)    


df -h
/dev/mapper/testvg-lvol0     20G   45M   19G   1% /mnt

Broken the LVM here

# echo 1 > /sys/block/sdc/device/delete 
# echo 1 > /sys/block/sdd/device/delete 

Running fio hangs.

# ps aux |grep fio |grep -v color
root       95962  2.9 29.9 1662868 1146184 pts/1 Dl+  18:43   0:00 fio --rw=write --randrepeat=0 --bsrange=4k-8k --name=test1 --filename=/mnt/file1 --ioengine=libaio --numjobs=1 --runtime=600 --direct=0 --iodepth=64 --size=5G

Environment

  • Red Hat Enterprise Linux (RHEL) 8/9
    • LVM type RAID

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content