[linux-lvm] [BUG?] OOM executing blkdiscardon a thin lv

Qu Wenruo quwenruo at cn.fujitsu.com
Wed Nov 26 07:54:46 UTC 2014


When I try to discard the whole thin lv using blkdiscard, an OOM occurs 
and I lost my ssh connection.
TTY login also fails to start, although kernel and network still looks 
alive but no way to login into the system.
Have to reboot.

Not sure if this is a bug in blkdiscard or lvm.

[lvs output]
   LV       VG           Attr       LSize  Pool     Origin Data% Move 
Log Cpy%Sync Convert
   disk1    test_vg      Vwi-a-tz--  1.00t thinpool 0.77
   thinpool test_vg      twi-a-tz-- 30.00g 26.28

1. Make a thin pool with 30G space.
2. Create 1T thin lv from the thin pool created in 1.
3. Do some operation to occupy some space in thin lv
4. Exec blkdiscard on the thin lv

[Related package version]

[How to discard thin lv]
BTW, what's the proper method to discard all allocated space for a thin lv?
Lvremove and lvcreate?!


More information about the linux-lvm mailing list