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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
 <nothing>
# lsof +D /raid1/
 <nothing>
# df
 </raid1 does not show up>
# mount
 </raid1 does not show up>
# cryptsetup luksClose luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9
 <nothing>
# cryptsetup luksClose luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9
  <Device luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9 is not active.>
# wipefs -a /dev/md127
 <nothing>
# mdadm -S /dev/md127
 <nothing>
# mdadm --misc --zero-superblock /dev/sdd1
 <nothing>
# mdadm --misc --zero-superblock /dev/sdc1
 <nothing>
# ls /raid1/
 <nothing>
# touch /raid1/foo
 <nothing>
# ls /raid1/
 <foo>
# rm /raid1/foo
# lsof +d /home
 <lots of entries>
# lsof +d /raid1/
 <nothing>
# umount /raid1/
 <nothing>
# umount -f /raid1/
 <nothing>
# /bin/rm -rf /raid1/
 <nothing>
# lsof | grep md127
 <nothing>

Now fdisk, partprobe, mkfs.ext4, fsck, mkdir /mountpoint, mount for each disk that was part of the raid group.

Again, thanks
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux