-
Bug
-
Resolution: Done
-
Major
-
None
-
rhel-9.4
-
None
-
None
-
None
-
rhel-sst-logical-storage
-
ssg_filesystems_storage_and_HA
-
3
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
Please provide the package NVR for which bug is seen:
kernel-5.14.0-427.el9.x86_64
mdadm-4.2-10.el9.x86_64
How reproducible:
Actually running:
Steps to reproduce
- Create a RAID 5 with 3 2GB loop devices first .
- mdadm -CR /dev/md0 -l 5 -n 3 /dev/loop1 /dev/loop2 /dev/loop3
- mkfs.ext4 mount to the mount point
- mkdir -p /mnt/md_test
- mkfs.ext4 /dev/md0
- mount /dev/md0 /mnt/md_test
- Takeover RAID 5 to RAID 1
- mdadm --grow /dev/md0 --array-size 2094080
- mdadm --grow -n 2 /dev/md0 --backup=internal
- mdadm --grow /dev/md0 -l1
- Trying to umount or stop the /dev/md0 device
- umount /dev/md0
- mdadm --stop /dev/md0
Expected results
umount successfully ,and stop the mdadm device successfully.
Actual results
When umount , it hanging there. I have to close my terminal then re-ssh to the host .checkout the mount status with lsblk , the mount point doesn't mount yet. but when I trying to mdadm --stop /dev/md0 got below error.
"""
mdadm: Cannot get exclusive access to /dev/md0:Perhaps a running process, mounted filesystem or active volume group?
"""
// After first umount command hanging there, re-ssh to the host.
[root@amd-genoa-03 05-raid5]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop1 7:1 0 2G 0 loop
└─md0 9:0 0 2G 0 raid1
loop2 7:2 0 2G 0 loop
└─md0 9:0 0 2G 0 raid1
loop3 7:3 0 2G 0 loop
└─md0 9:0 0 2G 0 raid1
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 600M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
└─nvme0n1p3 259:3 0 464.2G 0 part
├─rhel_amd--genoa--03-root 253:0 0 70G 0 lvm /
├─rhel_amd--genoa--03-swap 253:1 0 4G 0 lvm [SWAP]
└─rhel_amd--genoa--03-home 253:2 0 390.2G 0 lvm /home
[root@amd-genoa-03 05-raid5]# umount /dev/md0
umount: /dev/md0: not mounted.
[root@amd-genoa-03 05-raid5]# mdadm --stop /dev/md0
mdadm: Cannot get exclusive access to /dev/md0:Perhaps a running process, mounted filesystem or active volume group?
[root@amd-genoa-03 05-raid5]#