Impossible to mount file system : Structure needs cleaning

    • OMV 4.x
    • Resolved
    • Impossible to mount file system : Structure needs cleaning

      Hello,

      I put all my disks on a other place.

      And when I start now, the raid 5 is ok, but I have this error message.

      [Blocked Image: https://spoonconcept.com/dossiers/2018-11-15_14h37_29.jpg]

      Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v --source '/dev/disk/by-id/md-name-openmediavault:raid9disks' 2>&1' with exit code '32': mount: mount /dev/md0 on /srv/dev-disk-by-id-md-name-openmediavault-raid9disks failed: Structure needs cleaning


      And the details are:

      Erreur #0:OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v --source '/dev/disk/by-id/md-name-openmediavault:raid9disks' 2>&1' with exit code '32': mount: mount /dev/md0 on /srv/dev-disk-by-id-md-name-openmediavault-raid9disks failed: Structure needs cleaning in /usr/share/php/openmediavault/system/process.inc:182Stack trace:

      #0 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(720): OMV\System\Process->execute()

      #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(912): OMV\System\Filesystem\Filesystem->mount()

      #2 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array)

      #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

      #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('mount', Array, Array)

      #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('FileSystemMgmt', 'mount', Array, Array, 1)

      #6 {main}


      So I read a lot of doc, and apparently I must do



      Source Code

      1. sudo fsck /dev/<unmounted_partition>


      But on which partition...?


      Source Code

      1. root@openmediavault:~# fsck /dev/
      2. /dev/block/8:0 /dev/disk/by-id/wwn-0x50014ee2b2690c95
      3. /dev/block/8:101 /dev/disk/by-id/wwn-0x50014ee2b2690cef
      4. /dev/block/8:112 /dev/disk/by-id/wwn-0x50014ee2b5ad5e27
      5. /dev/block/8:128 /dev/disk/by-id/wwn-0x50014ee6006df4db
      6. /dev/block/8:144 /dev/disk/by-id/wwn-0x50014ee655c3768c
      7. /dev/block/8:16 /dev/disk/by-partuuid/b68f9f24-01
      8. /dev/block/8:32 /dev/disk/by-partuuid/b68f9f24-02
      9. /dev/block/8:48 /dev/disk/by-partuuid/b68f9f24-05
      10. /dev/block/8:64 /dev/disk/by-path/pci-0000:00:11.0-ata-1
      11. /dev/block/8:80 /dev/disk/by-path/pci-0000:00:11.0-ata-2
      12. /dev/block/8:96 /dev/disk/by-path/pci-0000:00:11.0-ata-3
      13. /dev/block/8:97 /dev/disk/by-path/pci-0000:00:11.0-ata-4
      14. /dev/block/8:98 /dev/disk/by-path/pci-0000:00:14.1-ata-1
      15. /dev/block/9:0 /dev/disk/by-path/pci-0000:0a:00.0-ata-1
      16. /dev/disk/by-id/ata-ST2000DM006-2DM164_Z4Z7ZGB6 /dev/disk/by-path/pci-0000:0a:00.0-ata-1-part1
      17. /dev/disk/by-id/ata-ST980411AS_5TF0HFTS /dev/disk/by-path/pci-0000:0a:00.0-ata-1-part2
      18. /dev/disk/by-id/ata-ST980411AS_5TF0HFTS-part1 /dev/disk/by-path/pci-0000:0a:00.0-ata-1-part5
      19. /dev/disk/by-id/ata-ST980411AS_5TF0HFTS-part2 /dev/disk/by-path/pci-0000:0b:00.0-ata-1
      20. /dev/disk/by-id/ata-ST980411AS_5TF0HFTS-part5 /dev/disk/by-path/pci-0000:0d:00.0-ata-1
      21. /dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WCAZA5542539 /dev/disk/by-path/pci-0000:0d:00.0-ata-2
      22. /dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WMAZA0805724 /dev/disk/by-uuid/4361d6a3-05ff-4bc3-9ee0-fca020298137
      23. /dev/disk/by-id/ata-WDC_WD20EARS-00MVWB0_WD-WMAZA0835642 /dev/disk/by-uuid/58f9e2e6-a909-40ec-a320-080be4dd0138
      24. /dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WCAZAK277142 /dev/disk/by-uuid/89135486-e31a-4f49-a60a-4d9979f3ea19
      25. /dev/disk/by-id/ata-WDC_WD20EARX-00PASB0_WD-WCAZAK277202 /dev/md0
      26. /dev/disk/by-id/ata-WDC_WD20EZRX-00D8PB0_WD-WCC4N2SU9NPJ /dev/sda
      27. /dev/disk/by-id/ata-WDC_WD20EZRX-00DC0B0_WD-WCC300895039 /dev/sdb
      28. /dev/disk/by-id/ata-WDC_WD20EZRX-00DC0B0_WD-WMC302144774 /dev/sdc
      29. /dev/disk/by-id/md-name-openmediavault:raid9disks /dev/sdd
      30. /dev/disk/by-id/md-uuid-f3552796:3f9915d7:a70bb8b9:366f74d5 /dev/sde
      31. /dev/disk/by-id/wwn-0x5000c5001653d0d5 /dev/sdf
      32. /dev/disk/by-id/wwn-0x5000c5001653d0d5-part1 /dev/sdg
      33. /dev/disk/by-id/wwn-0x5000c5001653d0d5-part2 /dev/sdg1
      34. /dev/disk/by-id/wwn-0x5000c5001653d0d5-part5 /dev/sdg2
      35. /dev/disk/by-id/wwn-0x5000c500a2af9407 /dev/sdg5
      36. /dev/disk/by-id/wwn-0x50014ee20912b952 /dev/sdh
      37. /dev/disk/by-id/wwn-0x50014ee25afea3e4 /dev/sdi
      38. /dev/disk/by-id/wwn-0x50014ee25e5cc9b2
      Display All



      If someone have a idea to fix this problem and to remount the file system...it'll be great.

      Thank you.

      Regard.

      The post was edited 1 time, last by piet ().

    • Looks like:

      fsck.ext4 -f /dev/disk/by-id/md-name-openmediavault:raid9disks
      mount -a
      omv 4.1.19 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • This post is solved.

      More precisely:
      Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v --source '/dev/disk/by-id/md-name-openmediavault:raid9disks' 2>&1' with exit code '32': mount: mount /dev/md0 on /srv/dev-disk-by-id-md-name-openmediavault-raid9disks failed: Structure needs cleaning


      You must do this:
      # fsck /dev/md0

      And, if needed, fix all errors. After that you can mount the file system. :thumbsup:


      If not try this:
      # fsck.ext4 -f /dev/disk/by-id/md-name-openmediavault:raid9disks
      # mount -a


      This solution is tested and working for us. :thumbup: No data were corrupted.

      The post was edited 1 time, last by piet ().

    • Users Online 2

      2 Guests