* migrate to bad block list @ 2014-10-15 17:18 Michael Ryan 2014-10-16 6:54 ` NeilBrown 0 siblings, 1 reply; 3+ messages in thread From: Michael Ryan @ 2014-10-15 17:18 UTC (permalink / raw) To: linux-raid@vger.kernel.org Is there any way to migrate an existing array created with mdadm v3.2.5 and using 1.1 metadata to use a bad block list? I'm assuming not as there wouldn't be space reserved for the list, but I need to ask. Thanks for your response! -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: migrate to bad block list 2014-10-15 17:18 migrate to bad block list Michael Ryan @ 2014-10-16 6:54 ` NeilBrown 2014-10-17 17:06 ` Piergiorgio Sartor 0 siblings, 1 reply; 3+ messages in thread From: NeilBrown @ 2014-10-16 6:54 UTC (permalink / raw) To: Michael Ryan; +Cc: linux-raid@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 1066 bytes --] On Wed, 15 Oct 2014 17:18:19 +0000 Michael Ryan <mryan@lenovoemc.com> wrote: > > Is there any way to migrate an existing array created with mdadm v3.2.5 and using 1.1 metadata to use a bad block list? I'm assuming not as there wouldn't be space reserved for the list, but I need to ask. > > Thanks for your response! mdadm tends to leave a fair bit of unused space on devices so that things like a bad block list can easily be added. If you can stop the array, then do that and re-assemble with --update=bbl and you should get a bbl added to each device. If you cannot stop the array, but it has a bitmap, then you can, for each device: mdadm /dev/mdX --fail /dev/adevice mdadm /dev/mdX --remove /dev/adevice mdadm /dev/mdX --re-add --update=bbl /dev/adevice I think that should work. The "bblk" is a feature of the device, not of the whole array. So you can add it to each device. I haven't actually tested the above I think, so it might be safest to make an array with loop-back devices and experiment. NeilBrown [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: migrate to bad block list 2014-10-16 6:54 ` NeilBrown @ 2014-10-17 17:06 ` Piergiorgio Sartor 0 siblings, 0 replies; 3+ messages in thread From: Piergiorgio Sartor @ 2014-10-17 17:06 UTC (permalink / raw) To: NeilBrown; +Cc: Michael Ryan, linux-raid@vger.kernel.org Hi Neil, On Thu, Oct 16, 2014 at 05:54:14PM +1100, NeilBrown wrote: > On Wed, 15 Oct 2014 17:18:19 +0000 Michael Ryan <mryan@lenovoemc.com> wrote: > > > > > Is there any way to migrate an existing array created with mdadm v3.2.5 and using 1.1 metadata to use a bad block list? I'm assuming not as there wouldn't be space reserved for the list, but I need to ask. > > > > Thanks for your response! > > mdadm tends to leave a fair bit of unused space on devices so that things > like a bad block list can easily be added. > If you can stop the array, then do that and re-assemble with > --update=bbl > > and you should get a bbl added to each device. > > If you cannot stop the array, but it has a bitmap, then > you can, for each device: > > mdadm /dev/mdX --fail /dev/adevice > mdadm /dev/mdX --remove /dev/adevice > mdadm /dev/mdX --re-add --update=bbl /dev/adevice > > I think that should work. The "bblk" is a feature of the device, not of the > whole array. So you can add it to each device. is there any technical reason why it is not possible to enable/disable the bbl like the write intent bitmap? Something like: mdadm --grow /dev/<md> --bbl=[internal|none] Thanks, bye, pg > I haven't actually tested the above I think, so it might be safest to make an > array with loop-back devices and experiment. > > NeilBrown -- piergiorgio -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-17 17:06 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-15 17:18 migrate to bad block list Michael Ryan 2014-10-16 6:54 ` NeilBrown 2014-10-17 17:06 ` Piergiorgio Sartor
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox