I recently changed the disk and restored all files from parity drive. But in the process I made a mistake and deleted the snapraid file. Now I can't run anymore snapraid tools to finish the recovery process.
Now I copied the snapraid.content file from another HDD to the new disk(Error lIne 14). The old HDD I changed is still present in the file system and referenced. Probably due to the shares still pointing to the old HDD. I don't want to make to many changes before knowing what exactly to do.
According the the OMV Guide i should do a sync after the files are recovered with fix command. Not possible because of error.
Changing the shares is the step after the sync. This is like a loop. The sync not running because of the missing disk. And can't unmount the disk because it is referenced.
Maybe I should just proceed and point the shares to the new HDD? But the guide says after recovering the files sync is immediate.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='root' -- /var/lib/openmediavault/cron.d/userdefined-2fde8657-1f22-4083-98c8-18ba574addd5 2>&1' with exit code '1': SnapRAID Script Job started [Sun Feb 5 15:34:39 CET 2023]
Running SnapRAID version 12.2
SnapRAID AIO Script version 3.1.DEV9
----------------------------------------
## Preprocessing
Configuration file found.
Checking if all parity and content files are present.
All parity files found.
All content files found.
----------------------------------------
## Processing
### SnapRAID TOUCH [Sun Feb 5 15:34:39 CET 2023]
Checking for zero sub-second files.
Decoding error in '/srv/dev-disk-by-uuid-6f23af86-6180-4562-b5b5-6a4e5a0f00c0/snapraid.content' at offset 93
The file CRC is correct!
Disk 'd2022.1' with uuid '808448e8-e9a2-4ee6-85f5-9b634abca0b8' not present in the configuration file!
If you have removed it from the configuration file, please restore it
If you have renamed it, run 'sync' to update the new name
No zero sub-second timestamp files found.
TOUCH finished [Sun Feb 5 15:34:39 CET 2023]
### SnapRAID DIFF [Sun Feb 5 15:34:39 CET 2023]
```
Loading state from /srv/dev-disk-by-uuid-6f23af86-6180-4562-b5b5-6a4e5a0f00c0/snapraid.content...
Decoding error in '/srv/dev-disk-by-uuid-6f23af86-6180-4562-b5b5-6a4e5a0f00c0/snapraid.content' at offset 93
The file CRC is correct!
Disk 'd2022.1' with uuid '808448e8-e9a2-4ee6-85f5-9b634abca0b8' not present in the configuration file!
If you have removed it from the configuration file, please restore it
```
DIFF finished [Sun Feb 5 15:34:40 CET 2023]
**ERROR** - Failed to get one or more count values. Unable to continue.
Exiting script. [Sun Feb 5 15:34:40 CET 2023]
Email address is set. Sending email report to **youremailgoeshere** [Sun Feb 5 15:34:40 CET 2023]
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; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='root' -- /var/lib/openmediavault/cron.d/userdefined-2fde8657-1f22-4083-98c8-18ba574addd5 2>&1' with exit code '1': SnapRAID Script Job started [Sun Feb 5 15:34:39 CET 2023]
Running SnapRAID version 12.2
SnapRAID AIO Script version 3.1.DEV9
----------------------------------------
## Preprocessing
Configuration file found.
Checking if all parity and content files are present.
All parity files found.
All content files found.
----------------------------------------
## Processing
### SnapRAID TOUCH [Sun Feb 5 15:34:39 CET 2023]
Checking for zero sub-second files.
Decoding error in '/srv/dev-disk-by-uuid-6f23af86-6180-4562-b5b5-6a4e5a0f00c0/snapraid.content' at offset 93
The file CRC is correct!
Disk 'd2022.1' with uuid '808448e8-e9a2-4ee6-85f5-9b634abca0b8' not present in the configuration file!
If you have removed it from the configuration file, please restore it
If you have renamed it, run 'sync' to update the new name
No zero sub-second timestamp files found.
TOUCH finished [Sun Feb 5 15:34:39 CET 2023]
### SnapRAID DIFF [Sun Feb 5 15:34:39 CET 2023]
```
Loading state from /srv/dev-disk-by-uuid-6f23af86-6180-4562-b5b5-6a4e5a0f00c0/snapraid.content...
Decoding error in '/srv/dev-disk-by-uuid-6f23af86-6180-4562-b5b5-6a4e5a0f00c0/snapraid.content' at offset 93
The file CRC is correct!
Disk 'd2022.1' with uuid '808448e8-e9a2-4ee6-85f5-9b634abca0b8' not present in the configuration file!
If you have removed it from the configuration file, please restore it
```
DIFF finished [Sun Feb 5 15:34:40 CET 2023]
**ERROR** - Failed to get one or more count values. Unable to continue.
Exiting script. [Sun Feb 5 15:34:40 CET 2023]
Email address is set. Sending email report to **youremailgoeshere** [Sun Feb 5 15:34:40 CET 2023] in /usr/share/openmediavault/engined/rpc/cron.inc:198
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(619): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatusyl...', '/tmp/bgoutputKQ...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(202): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\Cron->execute(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('execute', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Cron', 'execute', Array, Array, 1)
#6 {main}
Display More