Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2044694imm; Thu, 2 Aug 2018 05:28:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpehizH5OuYmD2AKpXUK7nvYJxjNgkY1NEuQAAa0bI6TqbtTCUQm2w21VoUDYOjhueGl/WVU X-Received: by 2002:a63:e516:: with SMTP id r22-v6mr2543135pgh.170.1533212884199; Thu, 02 Aug 2018 05:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533212884; cv=none; d=google.com; s=arc-20160816; b=t2JQzCT6n/oguczV7LrTXVRXBzP2xiZHj7vxj+8GJd7Coikp8zBg+829Blf1i30nMi 4Z1pEiRo+tK3KGFe6o3YZxNXUxNxq1cCiSdkw/qO4zS55I5A9m89mM8RrM373p/VvZ9L KMq/A7fEM8/kBKUvEETNDRKZDkAhG22Lbg/OrQW1hDGe0RbJYklc7HWP6A4W5MtbAsHU aZWglzx853oCHf1x0ZdSrcfDAXaNWht0qoXL6yOqrDJCoEc+nsyLGDySZF5T/rRj+Xpc ZWT9AQNJ/O0mzNCxHE5SHsdRyka4Z2ozPt79NwnaCKAGuOT4EHMzmNhJfHYu2+JAwqT/ 1HYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :openpgp:subject:from:cc:to:arc-authentication-results; bh=7FLBMUDC+EsqQYnJZnFy/iu2MGu8C8bImXziAWoYWgs=; b=klcNjD0vICxmdUUaHxEDNj337Oizg8ODWPDRUiRlDUXtnfEf1dIfVozi9kbHE2y6WE 9ScCKqzJVgDxGNed3SA5wMGqR22ptPxMQY3YCm+5c8dFAcvd4xGJgZQyX+FJFJaKKk0I skuo74V7l8l0BR9TFrPBHWG5r+hMdP3dq8tFBVW2PzpzIatKWJrFMf8OL+3e6+Uanc4X 1fD8Lbce45K1KJryRFZT583j0dzKUyQthV83T0DQdvdaqsrygl6Q+AR2eLSs3BCrueuG XkbxspHCmuBMWmo4L7ZW2KHNLRGXpWwQdWP7X490qpA88gXAyP7b8RDILzj4VoFpCIun e3zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12-v6si1284278plp.371.2018.08.02.05.27.49; Thu, 02 Aug 2018 05:28:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732374AbeHBORN (ORCPT + 99 others); Thu, 2 Aug 2018 10:17:13 -0400 Received: from forward105j.mail.yandex.net ([5.45.198.248]:39105 "EHLO forward105j.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732034AbeHBORN (ORCPT ); Thu, 2 Aug 2018 10:17:13 -0400 Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 4F3A4188E92; Thu, 2 Aug 2018 15:26:14 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id yUlpmXWGm5-QEBi9Ojq; Thu, 02 Aug 2018 15:26:14 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fmlSrLxBTt-QDOCYmsZ; Thu, 02 Aug 2018 15:26:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) To: axboe@kernel.dk, idryomov@gmail.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, sagi@grimberg.me From: WGH Subject: LVM snapshot broke between 4.14 and 4.16 Openpgp: preference=signencrypt Message-ID: <226835ba-2197-b850-6e5b-8ba14f7fd016@torlan.ru> Date: Thu, 2 Aug 2018 15:26:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (I originally reported this problem here: https://bugzilla.kernel.org/show_bug.cgi?id=200439) When I updated from 4.14 to 4.16, my LVM snapshotting script broke for no apparent reason. My script has the following line, and it fails like this: + lvcreate --size 5G --snapshot --name snap0 --permission r /dev/mapper/vg0-lvol_rootfs   device-mapper: create ioctl on vg0-snap0-cowLVM-sDdIeh9cecWdaNyRfZC31mxgfwTa4sOeHMJXVOykGVRtfP6Aii7IHvwS066AOLOM-cow failed: Device or resource busy   Failed to lock logical volume vg0/lvol_rootfs.   Aborting. Manual intervention required. At the same time, some errors appear in dmesg as well: [   26.145279] generic_make_request: Trying to write to read-only block-device dm-3 (partno 0) [   26.145288] device-mapper: persistent snapshot: write_header failed [   26.145847] device-mapper: table: 253:4: snapshot: Failed to read snapshot metadata [   26.145851] device-mapper: ioctl: error adding target to table I bisected the vanilla kernel, and the first bad commit is [721c7fc701c71f693307d274d2b346a1ecd4a534] block: fail op_is_write() requests to read-only partitions