mdadm: Cannot get exclusive access to /dev/md127
by Rich Emberson
I've got a two disk raid and I want to it and convert the
disks to some non-raid usage. The raid was never used and has no data.
Also, the raid disks are encrypted along with the rest of the disk
in the machine.
When I try to stop raid I get the following:
# mdadm --stop /dev/md127
mdadm: Cannot 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 use a different linux
distro or reinstall. I've got a lot of data on other disks on this system
and
really don't want to use a nuclear solution.
Background information:
$ uname -a
Linux medusa 3.17.7-200.fc20.x86_64 #1 SMP Wed Dec 17 03:35:33 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
MDADM
# mdadm --misc --detail /dev/md127
Version : 1.2
Creation Time : Fri Apr 25 17:19:52 2014
Raid Level : raid1
Array Size : 3906885632 (3725.90 GiB 4000.65 GB)
Used Dev Size : 3906885632 (3725.90 GiB 4000.65 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Feb 1 09:37:32 2015
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : localhost.localdomain:raid1
UUID : be78cb55:f26bbf2b:7ad9b344:a2427875
Events : 8527
Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 8 49 1 active sync /dev/sdd1
MDADM.CONF
# cat /etc/mdadm.conf
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
ARRAY /dev/md/raid1 level=raid1 num-devices=2
UUID=be78cb55:f26bbf2b:7ad9b344:a2427875
LSOF
# lsof | grep md127
md127_rai 1044 root cwd DIR 253,1
4096 2 /
md127_rai 1044 root rtd DIR 253,1
4096 2 /
md127_rai 1044 root txt
unknown /proc/1044/exe
udisksd 2120 root 13r REG 0,15
4096 30332 /sys/devices/virtual/block/md127/md/sync_action
udisksd 2120 root 14r REG 0,15
4096 30345 /sys/devices/virtual/block/md127/md/degraded
gmain 2120 2121 root 13r REG 0,15
4096 30332 /sys/devices/virtual/block/md127/md/sync_action
gmain 2120 2121 root 14r REG 0,15
4096 30345 /sys/devices/virtual/block/md127/md/degraded
gdbus 2120 2123 root 13r REG 0,15
4096 30332 /sys/devices/virtual/block/md127/md/sync_action
gdbus 2120 2123 root 14r REG 0,15
4096 30345 /sys/devices/virtual/block/md127/md/degraded
probing-t 2120 2124 root 13r REG 0,15
4096 30332 /sys/devices/virtual/block/md127/md/sync_action
probing-t 2120 2124 root 14r REG 0,15
4096 30345 /sys/devices/virtual/block/md127/md/degraded
cleanup 2120 2125 root 13r REG 0,15
4096 30332 /sys/devices/virtual/block/md127/md/sync_action
cleanup 2120 2125 root 14r REG 0,15
4096 30345 /sys/devices/virtual/block/md127/md/degraded
FSTAB ENTRY
/dev/mapper/luks-ab8911f9-b3a4-4f33-8b10-7e52c7217ae9
/raid1 ext4 defaults,x-systemd.device-timeout=0 1 2
BY-UUID
# ls -l /dev/disk/by-uuid/ | grep md127
lrwxrwxrwx. 1 root root 11 Jan 10 19:32
ab8911f9-b3a4-4f33-8b10-7e52c7217ae9 -> ../../md127
Thanks
Richard
9 years, 2 months
Mediacast to TV
by Patrick O'Callaghan
I have a smart TV (Sony Bravia) and can use Android Cast Screen from my
phone or tablet to see content. Apparently it also works with the Apple
equivalent. Is there a way to do this from my F21 desktop?
poc
9 years, 2 months
Old Kernel Modules Directories not Cleaned up
by Stephen Morris
Hi,
DNF is currently configured to keep 3 kernel versions, consequently
when I exceed that number of kernels it automatically uninstalls the
oldest kernel, which I don't have any issues with, but what I do have an
issue with is when these uninstalls are done it does not clean up the
/lib/modules directories, they are left lying around. I had to delete a
dozen of these directories this morning manually, why are these not
removed when the associated kernels are removed? I didn't check what was
in these directories, but I do have the nvidia and virtualbox kernel
drivers installed as well, is it possible the removal of these when the
associated kernel is removed is not cleaning up properly?
regards,
Steve
9 years, 2 months
Re: fedora 21 booting error with 3.17 & 3.18 kernels-SOLVED- still need info
by Paul Cartwright
I finally let the boot sequence error out, took about 5 minutes. I got
this line:
Dracut-initqueue[283] Warning: Cancelling resume operation. device not
found.
then the next line showed the UUID, ending in c063. That was the OLD
swap partition. I rebuilt the swap partition, did the swapon, and added
that UUID to /etc/fstab. Still errored out with same error. I removed
the 3.18.3-201 kernel & headers & module, reinstalled them, and now it
works. where is that old swap info kept, if not in /etc/fstab?? I
grepped for c063 in /boot and found entries in System.map-3.18.3-201...
but I am not sure it was the actual swap partition.
> running fedora 21 x86_64
> I was redoing my drive partitions, reran grub2-install, and now I get
> stuck, and the boot won't complete when I select any 3.17 or 3.18
> kernel. I have the latest 3.18.3-201 installed. 3.16 kernel booted..
> I see what looks like dracut errors. Not sure what to do, google wasn't
> much help.
> /var/log/messages shows:
> Jan 29 03:00:05 pauls-server systemd: Started dracut pre-mount hook.
> Jan 29 03:00:05 pauls-server systemd: Started dracut mount hook.
> Jan 29 03:00:05 pauls-server systemd: Starting dracut pre-pivot and
> cleanup hook...
> Jan 29 03:00:05 pauls-server systemd: Started dracut pre-pivot and
> cleanup hook.
> Jan 29 03:00:05 pauls-server systemd: Stopping dracut pre-pivot and
> cleanup hook...
>
>
> not very descriptive.. suggestions on where to look or what is wrong?
> right now I am booted into fedora 20, using the same /home.. it's just
> that not everything works..
> uname -a
> Linux pauls-server 3.16.7-200.fc20.x86_64 #1 SMP Thu Oct 30 18:12:41 UTC
> 2014 x86_64 x86_64 x86_64 GNU/Linux
>
>
--
Paul Cartwright
Registered Linux User #367800 and new counter #561587
9 years, 2 months
Annoyances with mate DT
by JD
For a while (like a few weeks), mate was saving the apps running on the
DT when I shutdown the system, and they would be auto started on reboot.
Slowly, some apps no longer get started.
This behavior first manifested 2 or 3 months ago when the mate-terminals
would no longer be started on reboot.
Then it was ktorrent.
Now, added to that is smplayer.
I had raised a bug with mate, but the bug report was rejected.
I am on the verge of dumping Mate altogether. Cinnamon is just
not mature enough, and I literally detest gnome3. It does nothing
that I want or like.
Hope that future fedora users who want to switch to mate might
see this and decide if they still want to run mate.
9 years, 2 months
gnome shell extension
by Patrick Dupre
Hello,
With fedora 21, I get
We cannot detect a running copy of GNOME on this system, so some parts of the interface may be disabled. See our troubleshooting entry for more information.
when I try to install some gnome extensions (https://extensions.gnome.org/)
What is missing?
I installed gnome-tweak-tool
Thank for your help.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
9 years, 2 months
kernel-debug-devel?
by Tom Horsley
Random curiosity here: Why (on fedora 21) does the
kernel-debug-devel rpm want to be installed?
If I do a yum erase of it, it goes away without
removing any dependencies at all, yet if I do
a yum update after that, it wants to reinstall
it again despite the fact that nothing depends
on it :-).
9 years, 2 months
No graphics
by Patrick Dupre
Hello,
I cannot run in graphic mode in fedora 21!!!!!
It is an intel Q965 card
What would I do?
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire de Physico-Chimie de l'Atmosphère | |
Université du Littoral-Côte d'Opale | |
Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===========================================================================
9 years, 2 months
DRM MM Objects?
by Andy Blanchard
Just upgraded a box at home to new hardware with embedded Intel
graphics (i5 Haswell), did a clean install of Fedora 21, and while
poking around trying to fix a few issues while rebuilding my config
spotted something I've not noticed before. With KDE running "lsof"
lists over a thousand entries like this:
Xorg.bin 659 662 root DEL REG 0,4
16016 /drm mm object
Xorg.bin 659 662 root DEL REG 0,4
16011 /drm mm object
kwin 964 zocalo DEL REG 0,4
38725 /drm mm object
kwin 964 zocalo DEL REG 0,4
19275 /drm mm object
QProcessM 964 986 zocalo DEL REG 0,4
19277 /drm mm object
QProcessM 964 986 zocalo DEL REG 0,4
47240 /drm mm object
These are the only three processes that appear to own these files, and
the number of entries appears to fluctuate as windows are
opened/closed, and other GUI events happen.
A Google search comes up with a bunch of stuff about memory leaks from
a few years ago, plus some documention on Kernel memory management,
but I couldn't find anything that explains what these "/drm mm object"
entries are, whether this is normal behaviour, or if there is
potentially a problem.
Any ideas?
--
Andy
The only person to have all his work done by Friday was Robinson Crusoe
9 years, 2 months