linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] [BUG?] OOM executing blkdiscardon a thin lv
Date: Wed, 26 Nov 2014 15:54:46 +0800	[thread overview]
Message-ID: <54758746.3000701@cn.fujitsu.com> (raw)

Hi,

[Bug]
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

[Reproducer]
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]
kernel-3.17.3-200.fc20.x86_64
lvm2-2.02.106-1.fc20.x86_64
util-linux-2.24.2-1.fc20.x86_64

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

Thanks,
Qu

             reply	other threads:[~2014-11-26  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-26  7:54 Qu Wenruo [this message]
2014-11-26 15:06 ` [linux-lvm] [BUG?] OOM executing blkdiscard on a thin lv Mike Snitzer
2014-11-27  0:32   ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54758746.3000701@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).