File Missing on BTRFS Raid5 Directory

  • I build a NAS, it has 4 hard drives, and I created BTRFS with raid5 on it.

    I begin to do some share settings, and then move all my files from an old Synology to the new NAS.

    I got all dirs shared in SMB mode, and 3 of them also shared in NFS mode which are 'Syno' 'Multimedia' and 'Servers' dirs.

    The first problem I met is that after I moved the files to 'Syno' and 'Multimedia' which I confirmed they are there, I remounted the 2 dirs to my MAC, and it shows nothing in these 2 dirs, but it show in SSH access. So I have to do a privilege adjust. Everything goes fine in 'Syno' dir, and it shows everything when I'm done privilege settings. But when I do the same operation to 'Multimedia' dir, and after I hit 'apply', OMV popped an error window, as shown below:

    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': debian: ---------- ID: create_filesystem_mountpoint_bc0eb643-30af-448e-8af1-65ef19feb50e Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_bc0eb643-30af-448e-8af1-65ef19feb50e for file /etc/fstab was charged by text Started: 12:52:32.832626 Duration: 0.566 ms Changes: ---------- ID: mount_filesystem_mountpoint_bc0eb643-30af-448e-8af1-65ef19feb50e Function: mount.mounted Name: /srv/dev-disk-by-label-BTRFS01 Result: None Comment: Unable to unmount Started: 12:52:32.833628 Duration: 33.022 ms Changes: ---------- umount: Forced unmount because devices don't match. Wanted: /dev/disk/by-label/BTRFS01 (/dev/sdc), current: /dev/sde, /dev/sde, 2bce4ad4-b91e-4879-94d7-946981b3db2f, BTRFS01 ---------- ID: create_bind_mountpoint_e3b94d9e-4e55-43f0-bf2e-a89478ff3022 Function: file.accumulated Result: True Comment: Accumulator create_bind_mountpoint_e3b94d9e-4e55-43f0-bf2e-a89478ff3022 for file /etc/fstab was charged by text Started: 12:52:32.866823 Duration: 0.813 ms Changes: ---------- ID: mount_bind_mountpoint_e3b94d9e-4e55-43f0-bf2e-a89478ff3022 Function: mount.mounted Name: /export/Multimedia Result: True Comment: Target was already mounted Started: 12:52:32.867706 Duration: 17.019 ms Changes: ---------- umount: Forced remount because options (subvol=/) changed ---------- ID: create_bind_mountpoint_5d7ce94c-9d69-4d8e-89da-0ab81475d8b0 Function: file.accumulated Result: True Comment: Accumulator create_bind_mountpoint_5d7ce94c-9d69-4d8e-89da-0ab81475d8b0 for file /etc/fstab was charged by text Started: 12:52:32.884965 Duration: 1.279 ms Changes: ---------- ID: mount_bind_mountpoint_5d7ce94c-9d69-4d8e-89da-0ab81475d8b0 Function: mount.mounted Name: /export/Syno Result: True Comment: Target was already mounted Started: 12:52:32.886371 Duration: 17.145 ms Changes: ---------- umount: Forced remount because options (subvol=/) changed ---------- ID: create_bind_mountpoint_2c0d8027-f313-43bb-86d3-4e4c6726ee21 Function: file.accumulated Result: True Comment: Accumulator create_bind_mountpoint_2c0d8027-f313-43bb-86d3-4e4c6726ee21 for file /etc/fstab was charged by text Started: 12:52:32.903666 Duration: 0.861 ms Changes: ---------- ID: mount_bind_mountpoint_2c0d8027-f313-43bb-86d3-4e4c6726ee21 Function: mount.mounted Name: /export/Servers Result: True Comment: Target was already mounted Started: 12:52:32.904603 Duration: 17.128 ms Changes: ---------- umount: Forced remount because options (subvol=/) changed ---------- ID: create_bind_mountpoint_90d21e9d-84ce-4a46-a473-b40511b747f1 Function: file.accumulated Result: True Comment: Accumulator create_bind_mountpoint_90d21e9d-84ce-4a46-a473-b40511b747f1 for file /etc/fstab was charged by text Started: 12:52:32.921976 Duration: 1.322 ms Changes: ---------- ID: mount_bind_mountpoint_90d21e9d-84ce-4a46-a473-b40511b747f1 Function: mount.mounted Name: /export/Multi Result: True Comment: Target was already mounted Started: 12:52:32.923438 Duration: 17.023 ms Changes: ---------- umount: Forced remount because options (subvol=/) changed ---------- ID: unmount_sftp_mountpoint_4ea88e88-8ff2-45fe-b011-906355f21481 Function: mount.unmounted Name: /sftp/soulhacker/Multimedia Result: False Comment: umount: /srv/dev-disk-by-label-BTRFS01/Multimedia/: not mounted.. fstab entry not found Started: 12:52:32.940614 Duration: 17.197 ms Changes: ---------- ID: remove_openmediavault_dir_4ea88e88-8ff2-45fe-b011-906355f21481 Function: file.absent Name: /sftp/soulhacker/Multimedia Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 4045, in remove shutil.rmtree(path) File "/usr/lib/python3.7/shutil.py", line 495, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib/python3.7/shutil.py", line 493, in rmtree os.rmdir(path) OSError: [Errno 16] Device or resource busy: '/sftp/soulhacker/Multimedia' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2154, in call *cdata["args"], **cdata["kwargs"] File "/usr/lib/python3/dist-packages/salt/loader.py", line 2087, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/file.py", line 2046, in absent __salt__["file.remove"](name) File "/usr/lib/python3/dist-packages/salt/modules/file.py", line 4048, in remove raise CommandExecutionError("Could not remove '{0}': {1}".format(path, exc)) salt.exceptions.CommandExecutionError: Could not remove '/sftp/soulhacker/Multimedia': [Errno 16] Device or resource busy: '/sftp/soulhacker/Multimedia' Started: 12:52:32.957957 Duration: 3.544 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: No changes needed to be made Started: 12:52:32.962622 Duration: 2.875 ms Changes: Summary for debian ------------- Succeeded: 11 (unchanged=1, changed=5) Failed: 2 ------------- Total states run: 13 Total run time: 129.794 ms
    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': debian:
    ---------- ID: create_filesystem_mountpoint_bc0eb643-30af-448e-8af1-65ef19feb50e Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_bc0eb643-30af-448e-8af1-65ef19feb50e for file /etc/fstab was charged by text Started: 12:52:32.832626 Duration: 0.566 ms

    and nothing shows when I remount to my MAC.

    and when I access OMV from SSH, nothing in 'Multimedia' dir. It seemed everything in 'Multimedia' has gone.

    But the disk usage shows that the space has been used.

    What should I do?

    Thank you

Participate now!

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