Re: SOLVED mdadm: Cannot get exclusive access to /dev/md127

2015-02-04 Thread Rich Emberson
Thanks for the help! cryptsetup luksClose luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9 did the trick. Steps Remove entry from /etc/fstab # vi /etc/fstab then following sequence of commands: # lsof +d /raid1/ # lsof +D /raid1/ # df # mount # cryptsetup luksClose luks-ab8911f9-b3a4-4f33

Re: mdadm: Cannot get exclusive access to /dev/md127

2015-02-03 Thread Rick Stevens
On 02/02/2015 06:32 PM, Rich Emberson wrote: Tried: # wipefs -a /dev/md127 which did not word, so I next tried: # wipefs -f -a /dev/md127 /dev/md127: 6 bytes were erased at offset 0x (crypto_LUKS): 4c 55 4b 53 ba be and then # mdadm -S /dev/md127 mdadm: Cannot get exclusive access

Re: mdadm: Cannot get exclusive access to /dev/md127

2015-02-02 Thread Chris Murphy
Also, you probably want to check crypttab to make sure this device entry is removed, and also from fstab to make sure whatever file system was on it isn't going to be automounted anymore. Otherwise good chance you'll get a failed boot while a non-existent fs is being looked for (and it'll take a wh

Re: mdadm: Cannot get exclusive access to /dev/md127

2015-02-02 Thread Chris Murphy
On Mon, Feb 2, 2015 at 5:25 PM, Rich Emberson wrote: > # cryptsetup status luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9 > /dev/mapper/luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9 is active. That's the problem. First use df or mount to see if this device has a mounted filesystem, and if so unmount it. T

Re: mdadm: Cannot get exclusive access to /dev/md127

2015-02-02 Thread Rich Emberson
Tried: # wipefs -a /dev/md127 which did not word, so I next tried: # wipefs -f -a /dev/md127 /dev/md127: 6 bytes were erased at offset 0x (crypto_LUKS): 4c 55 4b 53 ba be and then # mdadm -S /dev/md127 mdadm: Cannot get exclusive access to /dev/md127:Perhaps a running process

Re: mdadm: Cannot get exclusive access to /dev/md127

2015-02-02 Thread Rich Emberson
# wipefs --backup -a /dev/md127 wipefs: error: /dev/md127: probing initialization failed: Device or resource busy # mdadm -S /dev/md127 mdadm: Cannot get exclusive access to /dev/md127:Perhaps a running process, mounted filesystem or active volume group? On 02/01/2015 08:19 PM, Chris Murphy wrote

Re: mdadm: Cannot get exclusive access to /dev/md127

2015-02-01 Thread Chris Murphy
What do you get for: dmsetup ls cryptsetup status I see this: > /dev/mapper/luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9 /raid1 This suggests an encrypted device mapper device created from the raid1 device, and it's active. So that has to be closed, or wipefs before you can stop the raid and then

mdadm: Cannot get exclusive access to /dev/md127

2015-02-01 Thread Rich Emberson
annot get exclusive access to /dev/md127:Perhaps a running process, mounted filesystem or active volume group? Googling about this there are a number of folks hitting this problem over a number of fedora releases. Sadly, I could not find any fix. For some the solution (nuclear solutions) was to