Skip to content

nmdctl: Unable to stop array when using Luks encryption #97

@sumitc96

Description

@sumitc96

Hello,

I am not able to stop nonraid array using nmdctl stop command.

I am getting this message:

root@pve:~# nmdctl stop
Warning: Some filesystems are mounted. Unmount them before stopping the array.
Do you want to unmount all filesystems? (y/N): y
=== Unmounting NonRAID Array Disks ===

Slot 1 (nmd1p1): Unmounting XFS from /mnt/disk1... SUCCESS
Slot 1 (nmd1p1): Closing LUKS device... FAILED

Unmount summary:
1 disks unmounted successfully
0 disks skipped (already unmounted or no filesystem)
1 disks failed to unmount

Error: Failed to unmount some filesystems
Please unmount them manually before stopping the array
root@pve:~#

I have 1 disk array, the data disk is encrypted with LUKS and here's the encryption details:

root@pve:~# cryptsetup status /dev/mapper/nmd1p1
/dev/mapper/nmd1p1 is active and is in use.
type: LUKS2
cipher: aes-xts-plain64
keysize: 512 bits
key location: keyring
device: /dev/nmd1p1
sector size: 512
offset: 32768 sectors
size: 27344732056 sectors
mode: read/write

Any ideas why nmdctl stop is failing? Any precautions/actions i need to take to safely stop the array?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions