From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45A04C43334 for ; Tue, 14 Jun 2022 09:20:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355020AbiFNJUf (ORCPT ); Tue, 14 Jun 2022 05:20:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240291AbiFNJUf (ORCPT ); Tue, 14 Jun 2022 05:20:35 -0400 X-Greylist: delayed 346 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 14 Jun 2022 02:20:33 PDT Received: from rin.romanrm.net (rin.romanrm.net [IPv6:2001:bc8:2dd2:1000::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A91B143AF7 for ; Tue, 14 Jun 2022 02:20:33 -0700 (PDT) Received: from nvm (nvm2.home.romanrm.net [IPv6:fd39::4a:3cff:fe57:d6b5]) by rin.romanrm.net (Postfix) with SMTP id 820805A5 for ; Tue, 14 Jun 2022 09:14:43 +0000 (UTC) Date: Tue, 14 Jun 2022 14:14:42 +0500 From: Roman Mamedov To: linux-raid@vger.kernel.org Subject: How to enable bitmap on IMSM? Message-ID: <20220614141442.1971c876@nvm> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org Hello, I upgraded mdadm to 4.2 to get the bitmap support in IMSM. I run: "mdadm --update-subarray=0 -U bitmap /dev/md127" However the array details stay the same, with "Consistency Policy : resync". No error is reported, and nothing in dmesg. How to actually use it? Thanks # mdadm --detail /dev/md127 /dev/md127: Version : imsm Raid Level : container Total Devices : 4 Working Devices : 4 UUID : d07837ca:804cf5e3:01c52352:f64b0524 Member Arrays : /dev/md/Volume0 Number Major Minor RaidDevice - 8 32 - /dev/sdc - 8 0 - /dev/sda - 8 48 - /dev/sdd - 8 16 - /dev/sdb # mdadm --detail /dev/md126 /dev/md126: Container : /dev/md/imsm0, member 0 Raid Level : raid10 Array Size : 1953519616 (1863.02 GiB 2000.40 GB) Used Dev Size : 976759808 (931.51 GiB 1000.20 GB) Raid Devices : 4 Total Devices : 4 State : active Active Devices : 4 Working Devices : 4 Failed Devices : 0 Layout : near=2 Chunk Size : 64K Consistency Policy : resync UUID : xxx Number Major Minor RaidDevice State 3 8 0 0 active sync set-A /dev/sda 2 8 16 1 active sync set-B /dev/sdb 1 8 32 2 active sync set-A /dev/sdc 0 8 48 3 active sync set-B /dev/sdd # mdadm --update-subarray=0 -U bitmap /dev/md127 # mdadm --detail /dev/md127 /dev/md127: Version : imsm Raid Level : container Total Devices : 4 Working Devices : 4 UUID : d07837ca:804cf5e3:01c52352:f64b0524 Member Arrays : /dev/md/Volume0 Number Major Minor RaidDevice - 8 32 - /dev/sdc - 8 0 - /dev/sda - 8 48 - /dev/sdd - 8 16 - /dev/sdb # mdadm --detail /dev/md126 /dev/md126: Container : /dev/md/imsm0, member 0 Raid Level : raid10 Array Size : 1953519616 (1863.02 GiB 2000.40 GB) Used Dev Size : 976759808 (931.51 GiB 1000.20 GB) Raid Devices : 4 Total Devices : 4 State : active Active Devices : 4 Working Devices : 4 Failed Devices : 0 Layout : near=2 Chunk Size : 64K Consistency Policy : resync UUID : xxx Number Major Minor RaidDevice State 3 8 0 0 active sync set-A /dev/sda 2 8 16 1 active sync set-B /dev/sdb 1 8 32 2 active sync set-A /dev/sdc 0 8 48 3 active sync set-B /dev/sdd -- With respect, Roman