hi everyone, first of all i'm a linux newbee, so i've done most things from the GUI, but i am able to connect to terminal with PuTTY
so im trying to remove a drive called Data3Blue, which is empty, but if i uncheck DATA from the snapraid gui then a check command will return:
the same applies if i try to do anything else to take the drive off:
Delete Samba/CIF shares
Delete the Shared folders
Unmount and Delete the file system from file systems tab ( shows "referenced : no' )
and turn S.M.A.R.T monitoring off for the physical disk(s), then turn S.M.A.R.T off completely
Delete the drive from SNAPRAID tab .
so i do know the FAQ says
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:
- When the "sync" command terminates, remove the "disk" option from the configuration file
but as a noob, this raises more questions than it answers too, so the way i understood it,
from terminal, logged as root, i tried mkdir /home/empty/ to crate an empty folder called empty because i'm cheeky
then, assuming the configuration file mentionned is indeed /etc/snapraid.conf, i tried to nano /etc/snapraid.conf
so then my conf says :
the sync goes on, and mentions replacing the drive's UUID, assuming it's normal, i'm supposed to remove the "disk" option from the conf but once this is done, if i try to run a sync, i get the error:
same error, new uuid though...
so i suppose i can remove the drive now but i'm still stuck with that drive's occurence in that empty folder?!
then i have found somewhere that i could put a file in the empty dir, then run a sync, then delete that file, then a sync gives me this:
so again i run snapraid sync -E which worked , so i nano'd back into the conf, added a # before the disk line, and ran a sync again and it went fine....
so, it seems that id did work, but,
isn't it a lot of steps?
did i do the proper thing there or is there a more straightforward method? i feel like i was fumbling around a LOT and it seems that the conf file has to be modified 3 times in total with this method?
how could i have done better?