I am pulling a data drive from my SnapRAID array but don't see a way to follow the official FAQ steps using the OMV plugin. I have first transferred all data off this drive to other data drives in the array using rsync. Now, the official documentation says to follow these steps:
Code
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
Remove from the configuration file any "content" option pointing to such disk
Run a "sync" command with the "-E, --force-empty" option:
snapraid sync -E
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.
Your array is now without any reference to the removed disk.
I know that I can't manually edit the config file since the plugin will overwrite it, so how do I point the drive ("a1" in my case) to an empty directory? This is my current config:
Code
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
autosave 0
#####################################################################
# OMV-Name: a1 Drive Label: a1
content /srv/dev-disk-by-uuid-8d1467eb-1001-40d6-8ac6-c71a703d8a13/snapraid.content
disk a1 /srv/dev-disk-by-uuid-8d1467eb-1001-40d6-8ac6-c71a703d8a13
#####################################################################
# OMV-Name: a2 Drive Label: a2
content /srv/dev-disk-by-uuid-ff43d04a-fb0d-4bb3-819b-fc316127dcea/snapraid.content
disk a2 /srv/dev-disk-by-uuid-ff43d04a-fb0d-4bb3-819b-fc316127dcea
#####################################################################
# OMV-Name: a3 Drive Label: a3
content /srv/dev-disk-by-uuid-5f738cba-66ea-40d5-9466-e4b92eadbc6a/snapraid.content
disk a3 /srv/dev-disk-by-uuid-5f738cba-66ea-40d5-9466-e4b92eadbc6a
#####################################################################
# OMV-Name: a4 Drive Label: a4
content /srv/dev-disk-by-uuid-9b9f5be5-c08e-4a16-9c3f-fbd5c96512d3/snapraid.content
disk a4 /srv/dev-disk-by-uuid-9b9f5be5-c08e-4a16-9c3f-fbd5c96512d3
#####################################################################
# OMV-Name: b1 Drive Label: b1
content /srv/dev-disk-by-uuid-2de3d287-7125-418e-a72d-0241b394dac9/snapraid.content
disk b1 /srv/dev-disk-by-uuid-2de3d287-7125-418e-a72d-0241b394dac9
#####################################################################
# OMV-Name: b2 Drive Label: b2
content /srv/dev-disk-by-uuid-9b3b2e69-3f8d-4782-8367-3570893ed86b/snapraid.content
disk b2 /srv/dev-disk-by-uuid-9b3b2e69-3f8d-4782-8367-3570893ed86b
#####################################################################
# OMV-Name: b3 Drive Label: b3
content /srv/dev-disk-by-uuid-05fda9c9-1d96-46ed-9525-b8ffd665a8a3/snapraid.content
disk b3 /srv/dev-disk-by-uuid-05fda9c9-1d96-46ed-9525-b8ffd665a8a3
#####################################################################
# OMV-Name: b4 Drive Label: b4
content /srv/dev-disk-by-uuid-193024de-5ffa-42dd-b816-729337701129/snapraid.content
disk b4 /srv/dev-disk-by-uuid-193024de-5ffa-42dd-b816-729337701129
#####################################################################
# OMV-Name: c1 Drive Label: c1
content /srv/dev-disk-by-uuid-90539c0d-4d62-46b5-a8a2-39c3359eb2cb/snapraid.content
disk c1 /srv/dev-disk-by-uuid-90539c0d-4d62-46b5-a8a2-39c3359eb2cb
#####################################################################
# OMV-Name: c2 Drive Label: c2
content /srv/dev-disk-by-uuid-f288cf77-4120-4389-9b83-fa0ac6d69ab8/snapraid.content
disk c2 /srv/dev-disk-by-uuid-f288cf77-4120-4389-9b83-fa0ac6d69ab8
#####################################################################
# OMV-Name: c3 Drive Label: c3
content /srv/dev-disk-by-uuid-cf029430-ee73-4797-877e-3303f83363b2/snapraid.content
disk c3 /srv/dev-disk-by-uuid-cf029430-ee73-4797-877e-3303f83363b2
#####################################################################
# OMV-Name: c4 Drive Label: c4
content /srv/dev-disk-by-uuid-6557b78c-97a7-4be7-98e7-51f582f37ac2/snapraid.content
disk c4 /srv/dev-disk-by-uuid-6557b78c-97a7-4be7-98e7-51f582f37ac2
#####################################################################
# OMV-Name: a0 Drive Label: a0
parity /srv/dev-disk-by-uuid-ae14e7c3-50d8-4740-9530-aeba293f48fb/snapraid.parity
#####################################################################
# OMV-Name: b0 Drive Label: b0
2-parity /srv/dev-disk-by-uuid-13c10b20-6411-4c05-96c4-5379c83159ae/snapraid.2-parity
#####################################################################
# OMV-Name: c0 Drive Label: c0
3-parity /srv/dev-disk-by-uuid-ff9f3e27-a6ae-4723-ac77-a783a4f45630/snapraid.3-parity
#####################################################################
# OMV-Name: d1 Drive Label: d1
content /srv/dev-disk-by-uuid-ea81e6c8-0d4c-4be5-a3a6-9c33525bc491/snapraid.content
disk d1 /srv/dev-disk-by-uuid-ea81e6c8-0d4c-4be5-a3a6-9c33525bc491
#####################################################################
# OMV-Name: d2 Drive Label: d2
content /srv/dev-disk-by-uuid-acbc4170-336c-4e7b-981f-67cc46fb2dc5/snapraid.content
disk d2 /srv/dev-disk-by-uuid-acbc4170-336c-4e7b-981f-67cc46fb2dc5
#####################################################################
# OMV-Name: d3 Drive Label: d3
content /srv/dev-disk-by-uuid-9ea264e0-b0ac-426f-9bb0-e5d215b3b11c/snapraid.content
disk d3 /srv/dev-disk-by-uuid-9ea264e0-b0ac-426f-9bb0-e5d215b3b11c
#####################################################################
# OMV-Name: d4 Drive Label: d4
content /srv/dev-disk-by-uuid-219f3346-3bd3-4444-a1b7-5dcaf35e1b8c/snapraid.content
disk d4 /srv/dev-disk-by-uuid-219f3346-3bd3-4444-a1b7-5dcaf35e1b8c
#####################################################################
# OMV-Name: e1 Drive Label: e1
content /srv/dev-disk-by-uuid-9c4e1a5e-65bc-4bed-ad3b-6a3f6c645795/snapraid.content
disk e1 /srv/dev-disk-by-uuid-9c4e1a5e-65bc-4bed-ad3b-6a3f6c645795
#####################################################################
# OMV-Name: e2 Drive Label: e2
content /srv/dev-disk-by-uuid-a34a0bc3-484a-4f2f-a0a1-d57b889e265f/snapraid.content
disk e2 /srv/dev-disk-by-uuid-a34a0bc3-484a-4f2f-a0a1-d57b889e265f
#####################################################################
# OMV-Name: e3 Drive Label: e3
content /srv/dev-disk-by-uuid-51fad1d1-e53f-4422-a879-a2f119b0f0be/snapraid.content
disk e3 /srv/dev-disk-by-uuid-51fad1d1-e53f-4422-a879-a2f119b0f0be
#####################################################################
# OMV-Name: f1 Drive Label: f1
content /srv/dev-disk-by-uuid-3e079b60-3eef-4c46-971b-976b959a4f60/snapraid.content
disk f1 /srv/dev-disk-by-uuid-3e079b60-3eef-4c46-971b-976b959a4f60
#####################################################################
# OMV-Name: f2 Drive Label: f2
content /srv/dev-disk-by-uuid-1fefcc08-a926-4583-96f7-a4a5c12468c1/snapraid.content
disk f2 /srv/dev-disk-by-uuid-1fefcc08-a926-4583-96f7-a4a5c12468c1
#####################################################################
# OMV-Name: f3 Drive Label: f3
content /srv/dev-disk-by-uuid-a89a04d2-73be-486f-86c0-0ce6b2adf29a/snapraid.content
disk f3 /srv/dev-disk-by-uuid-a89a04d2-73be-486f-86c0-0ce6b2adf29a
exclude *.unrecoverable
exclude lost+found/
exclude aquota.user
exclude aquota.group
exclude /tmp/
exclude .content
exclude *.bak
exclude /snapraid.conf*
exclude /share/.plextemp/
exclude .bash_history
include /share/storage/
include /share/media/games/
include /share/media/unsorted/
exclude *.nfo
Alles anzeigen