[Solved] Unable to remove "Missing" device from File Systems

  • Hello,


    I'm having trouble unlocking 2 LUKS encrypted devices after a normal reboot.

    - Device 1: 4TBx2 WD Red HDD (Raid 1, SATA)

    - Device 2: 3TBx2 HDD (JBOD, external USB device)


    After restarting, both devices went "Missing" under File Systems:

    omv-missingdevices.png


    When I tried to unlock with the usual LUKS passphrase, I got this error:

    omv-errorunlock.png


    Code
    Unable to unlock encrypted device: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; echo -n '128characterpassphrase' | cryptsetup luksOpen '/dev/md0' 'md0'-crypt --key-file=- 2>&1' with exit code '2': No key available with this passphrase.
    Error #0:
    OMV\Exception: Unable to unlock encrypted device: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; echo -n '128characterpassphrase' | cryptsetup luksOpen '/dev/md0' 'md0'-crypt --key-file=- 2>&1' with exit code '2': No key available with this passphrase. in /usr/share/openmediavault/engined/rpc/luks.inc:243
    Stack trace:
    #0 [internal function]: OMVRpcServiceLuksMgmt->openContainer(Array, Array)
    #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('openContainer', Array, Array)
    #3 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('LuksMgmt', 'openContainer', Array, Array, 1)
    #4 {main}

    Here is additional info about my setup:

    Code
    root@openmediavault:~# cat /proc/mdstat
    Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
    unused devices: <none>


    Code
    root@openmediavault:~# blkid
    /dev/sdc1: UUID="f73c8eb5-3bfc-49d4-966c-84b3efc8c980" UUID_SUB="a6fa393d-d41c-b0f8-3b06-bf6ef9108f6d" LABEL="tomatonas1:0" TYPE="linux_raid_member" PARTLABEL="Linux RAID" PARTUUID="dd328dae-df66-44d4-803d-b167b6bcd959"
    /dev/sdb1: UUID="f73c8eb5-3bfc-49d4-966c-84b3efc8c980" UUID_SUB="011ff11e-1a2b-fcfb-043a-c414acde479d" LABEL="tomatonas1:0" TYPE="linux_raid_member" PARTLABEL="Linux RAID" PARTUUID="9b36edf1-7c1c-4ae2-8e5e-8af112dd0e55"
    /dev/sda1: UUID="EAE0-223A" TYPE="vfat" PARTUUID="2e5ca618-f17a-4214-9f06-199100177543"
    /dev/sda2: UUID="5e6afd77-93a0-4ad1-a115-e868924fa750" TYPE="ext4" PARTUUID="090f26b9-ace9-4a99-87bc-2693a086cf04"
    /dev/sda3: UUID="9feb9a6b-c9c0-48e6-a010-a9b9848a120f" TYPE="swap" PARTUUID="e28ca370-f90c-4204-b900-c531e0177fb1"



    Code
    root@openmediavault:~# mdadm --detail --scan --verbose
    ARRAY /dev/md/tomatonas1:0 level=raid1 num-devices=2 metadata=1.2 name=tomatonas1:0 UUID=f73c8eb5:3bfc49d4:966c84b3:efc8c980
    devices=/dev/sdb1,/dev/sdc1



    Any advice would be much appreciated. Thank you.

  • q2m2v

    Changed the title of the thread from “error unlocking LUKS encrypted drives” to “LUKS-encrypted RAID missing and unable to unlock after reboot”.
  • I'm an idiot and mistook my desktop LUKS passphrase for the NAS one. Device #1 is back up and running. My apologies.


    That said, Device #2 appears to be in trouble. It doesn't even show up in Encryption menu. The S.M.A.R.T. menu lists its status as gray and the console keeps periodically reporting:


    Code
    Buffer I/O error on dev sdd, logical block 733577872, async page read...


    The size of this JBOD device is also not being reported correctly at 2.73 TB. Both drives in it are well over 5 years old, so I'm kind of assuming the worst here.

  • q2m2v

    Added the Label resolved
  • q2m2v

    Changed the title of the thread from “LUKS-encrypted RAID missing and unable to unlock after reboot” to “Unable to remove "Missing" device from File Systems”.
  • Just a quick follow-up question in case anybody can help me with a slight oddity.


    I disconnected the suspect JBOD USB device, but am unable to remove the entry from the File Systems menu:

    omv-removeerror.png


    The device remains listed even when I select "Delete" and go through the prompts, and even after a reboot.


    Does this mean I need to edit fstab?

  • q2m2v

    Removed the Label resolved
  • q2m2v

    Added the Label resolved
  • q2m2v

    Changed the title of the thread from “Unable to remove "Missing" device from File Systems” to “[Solved] Unable to remove "Missing" device from File Systems”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!