OMV 4 - Removing a disk - I've been loosing files (Not folder it seems, just the contents) off my WD 4TB drive which is part of my snapraid setup.
To try to pin down the cause I decided to remove the drive from snapraid and run it as a single HDD without influence from any plugins.
I'd like to think I used this method, but it hasn't really worked as I 'd imagined :o(
"How can I remove a data disk from an existing array?
To remove a data disk from the array do:
- Change in the configuration file the related "disk" option to point to an empty directory - (Created /empty)
- Remove from the configuration file any "content" option pointing to such disk - (Deleted the line)
- Run a "sync" command with the "-E, --force-empty" option:
The "-E" option tells at SnapRAID to proceed even when detecting an empty disk.
- When the "sync" command terminates, remove the "disk" option from the configuration file. - (Duly Deleted)
Your array is now without any reference to the removed disk. "
I deleted the drive in the GUI and rebooted for good measure.
Tested - snapraid check, and I got;
Disk
'4tbdata01' with uuid '2f54d155-695d-48e5-a50b-d13f39f6d0e8' 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
Diff and sync give the same response.
The configuration file looks like this after the procedure, which is what I might expect.
# this
file was automatically generated from
# openmediavault Arrakis 4.1.35-1
# and 'openmediavault-snapraid' 3.7.7
block_size 256
autosave 0
#####################################################################
# OMV-Name: 4tbparity01 Drive Label: 40tbsdb
parity /srv/dev-disk-by-label-40tbsdb/snapraid.parity
#####################################################################
# OMV-Name: 2tbdata01 Drive Label: 2tbsdc
content /srv/dev-disk-by-label-2tbsdc/snapraid.content
disk 2tbdata01 /srv/dev-disk-by-label-2tbsdc
#####################################################################
# OMV-Name: 2tbdata02 Drive Label: 2tbsde
content /srv/dev-disk-by-label-2tbsde/snapraid.content
disk 2tbdata02 /srv/dev-disk-by-label-2tbsde
#####################################################################
# OMV-Name: 1tbdata01 Drive Label: 1tbsdd
content /srv/dev-disk-by-label-1tbsdd/snapraid.content
disk 1tbdata01 /srv/dev-disk-by-label-1tbsdd
exclude /snapraid.conf*
exclude *.unrecoverable
exclude lost+found/
exclude aquota.user
exclude aquota.group
exclude /tmp/
exclude .content
exclude *.bak
1 x Parity and 3 x data drives minus the previous data drive.
Where did I go wrong?