Hi Dunno,
thanks a lot for your help! Unfortunately I only get this output from lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 5,5T 0 disk
└─md0 9:0 0 5,5T 0 raid1 /srv/dev-disk-by-uuid-6ca5189d-cb82-4a7e-bd8c-cfe09e026c36
sdb 8:16 0 5,5T 0 disk
└─md0 9:0 0 5,5T 0 raid1 /srv/dev-disk-by-uuid-6ca5189d-cb82-4a7e-bd8c-cfe09e026c36
nvme0n1 259:0 0 931,5G 0 disk
├─nvme0n1p1
│ 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2
│ 259:2 0 930,1G 0 part /var/lib/containers/storage/overlay
│ /
└─nvme0n1p3
259:3 0 977M 0 part [SWAP]
When I unmount /srv/dev-disk-by-uuid-6ca5189d-cb82-4a7e-bd8c-cfe09e026c36 I still get the same error message afterwards.
Best regards!
Frederik
Display MoreHello, frederik,
as the message "Perhaps a running process, mounted filesystem or active volume group?" says, you probably just need to unmount all filesystems that are on your array and also stop all (if any) volume groups on it as well. Here's an example from my setup:
With lsblk (list block devices) you can see a hierarchy from the physical disks (sda and sdb) through the array md0 and the volume groups vg0-share and vg0-timemachine down to the mount points of the filesystems (/export/share and whatnot).
CodeDisplay Moreroot@nas:~# lsblk sda 8:0 0 1.8T 0 disk └─md0 9:0 0 1.8T 0 raid1 ├─vg0-share 253:0 0 1.3T 0 lvm /export/share │ /srv/dev-disk-by-uuid-0a26880d-83b3-4696-bf23-e4cbd2cb08ed └─vg0-timemachine 253:1 0 558.9G 0 lvm /export/timemachine /srv/dev-disk-by-uuid-06036ad8-5698-43a7-96d4-516bb9d4a1c9 sdb 8:16 0 1.8T 0 disk └─md0 9:0 0 1.8T 0 raid1 ├─vg0-share 253:0 0 1.3T 0 lvm /export/share │ /srv/dev-disk-by-uuid-0a26880d-83b3-4696-bf23-e4cbd2cb08ed └─vg0-timemachine 253:1 0 558.9G 0 lvm /export/timemachine /srv/dev-disk-by-uuid-06036ad8-5698-43a7-96d4-516bb9d4a1c9So, if I wanted to stop my array md0, I'd simply have to run
Coderoot@nas:~# umount /export/share root@nas:~# umount /export/timemachine root@nas:~# umount /srv/dev-disk-by-uuid-0a26880d-83b3-4696-bf23-e4cbd2cb08ed root@nas:~# umount /srv/dev-disk-by-uuid-06036ad8-5698-43a7-96d4-516bb9d4a1c9 root@nas:~# vgchange -an vg0 0 logical volume(s) in volume group "vg0" now active root@nas:~# mdadm --stop md0 mdadm: stopped md0And now you can see that my disks aren't used in anything anymore
Coderoot@nas:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 1.8T 0 disk sdb 8:16 0 1.8T 0 disk
Hope this help.