All of lore.kernel.org
 help / color / mirror / Atom feed
* Snapshot target and DAX-capable devices
@ 2018-08-27 16:07 ` Jan Kara
  0 siblings, 0 replies; 83+ messages in thread
From: Jan Kara @ 2018-08-27 16:07 UTC (permalink / raw)
  To: linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw
  Cc: Mike Snitzer, dm-devel-H+wXaHxf7aLQT0dZR+AlfA,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA

Hi,

I've been analyzing why fstest generic/081 fails when the backing device is
capable of DAX. The problem boils down to the failure of:

lvm vgcreate -f vg0 /dev/pmem0
lvm lvcreate -L 128M -n lv0 vg0
lvm lvcreate -s -L 4M -n snap0 vg0/lv0

The last command fails like:

  device-mapper: reload ioctl on (253:0) failed: Invalid argument
  Failed to lock logical volume vg0/lv0.
  Aborting. Manual intervention required.

And the core of the problem is that volume vg0/lv0 is originally of
DM_TYPE_DAX_BIO_BASED type but when the snapshot gets created, we try to
switch it to DM_TYPE_BIO_BASED because now the device stops supporting DAX.
The problem seems to be introduced by Ross' commit dbc626597 "dm: prevent
DAX mounts if not supported".

The question is whether / how this should be fixed. The current inability
to create snapshots of DAX-capable devices looks weird and the cryptic
failure makes it even worse (it took me quite a while to understand what is
failing and why). OTOH I see the rationale behind Ross' change as well.

								Honza
-- 
Jan Kara <jack-IBi9RG/b67k@public.gmane.org>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 83+ messages in thread

end of thread, other threads:[~2018-12-18 19:49 UTC | newest]

Thread overview: 83+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 16:07 Snapshot target and DAX-capable devices Jan Kara
2018-08-27 16:07 ` Jan Kara
2018-08-27 16:07 ` Jan Kara
     [not found] ` <20180827160744.GE4002-4I4JzKEfoa/jFM9bn6wA6Q@public.gmane.org>
2018-08-27 16:43   ` Kani, Toshi
2018-08-27 16:43     ` Kani, Toshi
2018-08-27 16:43     ` Kani, Toshi
     [not found]     ` <e38303902267d2d8bae8b0c88da84a4ed668e9fb.camel-ZPxbGqLxI0U@public.gmane.org>
2018-08-28  7:50       ` Jan Kara
2018-08-28  7:50         ` Jan Kara
2018-08-28  7:50         ` Jan Kara
     [not found]         ` <20180828075025.GA17756-4I4JzKEfoa/jFM9bn6wA6Q@public.gmane.org>
2018-08-28 17:56           ` Mike Snitzer
2018-08-28 17:56             ` Mike Snitzer
2018-08-28 17:56             ` Mike Snitzer
     [not found]             ` <20180828175630.GA1197-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-08-28 22:38               ` Kani, Toshi
2018-08-28 22:38                 ` Kani, Toshi
2018-08-28 22:38                 ` Kani, Toshi
2018-08-30  9:30               ` Jan Kara
2018-08-30  9:30                 ` Jan Kara
2018-08-30  9:30                 ` Jan Kara
     [not found]                 ` <20180830093028.GC1767-4I4JzKEfoa/jFM9bn6wA6Q@public.gmane.org>
2018-08-30 18:49                   ` Mike Snitzer
2018-08-30 18:49                     ` Mike Snitzer
2018-08-30 18:49                     ` Mike Snitzer
     [not found]                     ` <20180830184907.GA14867-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-08-30 19:32                       ` Jeff Moyer
2018-08-30 19:32                         ` Jeff Moyer
2018-08-30 19:32                         ` Jeff Moyer
     [not found]                         ` <x494lfbabwi.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2018-08-30 19:47                           ` Mikulas Patocka
2018-08-30 19:47                             ` Mikulas Patocka
2018-08-30 19:47                             ` Mikulas Patocka
     [not found]                             ` <alpine.LRH.2.02.1808301545200.30950-Hpncn10jQN4oNljnaZt3ZvA+iT7yCHsGwRM8/txMwJMAicBL8TP8PQ@public.gmane.org>
2018-08-30 19:53                               ` Jeff Moyer
2018-08-30 19:53                                 ` Jeff Moyer
2018-08-30 19:53                                 ` Jeff Moyer
2018-08-30 23:38                               ` Dave Chinner
2018-08-30 23:38                                 ` Dave Chinner
2018-08-30 23:38                                 ` Dave Chinner
2018-08-31  9:42                                 ` Jan Kara
2018-08-31  9:42                                   ` Jan Kara
2018-08-31  9:42                                   ` Jan Kara
2018-09-05  1:25                                   ` Dave Chinner
2018-09-05  1:25                                     ` Dave Chinner
2018-09-05  1:25                                     ` Dave Chinner
     [not found]                                   ` <20180831094255.GB11622-4I4JzKEfoa/jFM9bn6wA6Q@public.gmane.org>
2018-12-12 16:11                                     ` Huaisheng Ye
2018-12-12 16:11                                       ` Huaisheng Ye
2018-12-12 16:11                                       ` Huaisheng Ye
     [not found]                                       ` <167a3303a01.11a848ab768799.5161498967766415143-ytc+IHgoah0@public.gmane.org>
2018-12-12 16:12                                         ` Christoph Hellwig
2018-12-12 16:12                                           ` Christoph Hellwig
2018-12-12 16:12                                           ` Christoph Hellwig
     [not found]                                           ` <20181212161254.GA20790-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2018-12-12 17:50                                             ` Mike Snitzer
2018-12-12 17:50                                               ` Mike Snitzer
2018-12-12 17:50                                               ` Mike Snitzer
     [not found]                                               ` <20181212175047.GA24962-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-12-12 19:49                                                 ` Kani, Toshi
2018-12-12 19:49                                                   ` Kani, Toshi
2018-12-12 19:49                                                   ` Kani, Toshi
2018-12-12 21:15                                               ` Theodore Y. Ts'o
2018-12-12 21:15                                                 ` Theodore Y. Ts'o
     [not found]                                                 ` <20181212211547.GA24926-AKGzg7BKzIDYtjvyW6yDsg@public.gmane.org>
2018-12-12 22:43                                                   ` Mike Snitzer
2018-12-12 22:43                                                     ` Mike Snitzer
2018-12-12 22:43                                                     ` Mike Snitzer
     [not found]                                                     ` <20181212224321.GA2902-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-12-14  4:11                                                       ` [dm-devel] " Theodore Y. Ts'o
2018-12-14  4:11                                                         ` Theodore Y. Ts'o
2018-12-14  4:11                                                         ` Theodore Y. Ts'o
2018-12-14  8:24                                                       ` [External] " Huaisheng HS1 Ye
2018-12-14  8:24                                                         ` Huaisheng HS1 Ye
2018-12-14  8:24                                                         ` Huaisheng HS1 Ye
     [not found]                                                         ` <HK2PR03MB441871946735DE9EE714D10B92A10-LG58XzHXFHCi7fCZ8j4jr682SN/2zMuYvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-12-18 19:49                                                           ` Mike Snitzer
2018-12-18 19:49                                                             ` Mike Snitzer
2018-12-18 19:49                                                             ` Mike Snitzer
2018-08-30 19:44                       ` Mikulas Patocka
2018-08-30 19:44                         ` Mikulas Patocka
2018-08-30 19:44                         ` Mikulas Patocka
     [not found]                         ` <alpine.LRH.2.02.1808301537420.30950-Hpncn10jQN4oNljnaZt3ZvA+iT7yCHsGwRM8/txMwJMAicBL8TP8PQ@public.gmane.org>
2018-08-31 10:01                           ` Jan Kara
2018-08-31 10:01                             ` Jan Kara
2018-08-31 10:01                             ` Jan Kara
2018-08-30 22:55                       ` Dave Chinner
2018-08-30 22:55                         ` Dave Chinner
2018-08-30 22:55                         ` Dave Chinner
2018-08-31  9:54                       ` Jan Kara
2018-08-31  9:54                         ` Jan Kara
2018-08-31  9:54                         ` Jan Kara
2018-08-30 19:17                   ` [dm-devel] " Jeff Moyer
2018-08-30 19:17                     ` Jeff Moyer
2018-08-30 19:17                     ` Jeff Moyer
     [not found]                     ` <x498t4naclf.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2018-08-31  9:14                       ` Jan Kara
2018-08-31  9:14                         ` Jan Kara
2018-08-31  9:14                         ` Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.