MD devices are not wiped if LVM exists

Andrew Ruthven andrew at etc.gen.nz
Tue Jul 2 12:56:14 CEST 2019


Hey Jerry,

That indicates to me that the MD is still running for some reason. I
have occasionally had that as an intermittent fault, but I can't recall
what I did to resolve it.

Sorry,
Andrew

On Tue, 2019-07-02 at 11:34 +0100, Jerry Steele wrote:
> Hi Andrew,
> 
> Many thanks for that, however, that seems to bring up another issue.
> During the partitioning step, it is able to create all the underlying
> partitions, but fails with:
> 
> Executing: yes | mdadm --create  /dev/md0 --level=raid1 --force --run 
> --raid-devices=2 /dev/sda1 /dev/sdb1
> (STDERR) mdadm: cannot open /dev/sda1: Device or resource busy
> 
> I've checked a couple of things as described here (https://www.thegee
> kdiary.com/mdadm-cannot-open-dev-sda1-device-or-resource-busy/) and
> here (http://dev.bizo.com/2012/07/mdadm-device-or-resource-
> busy.html), but that didn't seem to help.
> 
> Is this something you've come across before whan using this hook?
> 
> Thanks
> 
> Jerry
> 
> 
> 
> 
> 
> 
> -- 
> ---
> 
> Jerry Steele
> Telephone: +44 (0)7492 910225
> GPG: 43A3A8C6
> 
-- 
Andrew Ruthven, Wellington, New Zealand
andrew at etc.gen.nz              | linux.conf.au 2020, Gold Coast, AU
Catalyst Cloud:                |    https://lca2020.linux.org.au/
   https://catalystcloud.nz    |


More information about the linux-fai mailing list