Raki72 Posted February 2, 2021 Share Posted February 2, 2021 (edited) Hi, something is very fishy on my server. After replacing a defect HDD with a spare one, I rebooted. After the reboot, all shares were gone. I found that the /etc/samba/smb-shares.conf has become a zero bytes file. And the backup file in the same directory is gone. - When trying to enter the share information in the GUI, nothing happens. The list of share stays empty. - I tried to enter one share manually in the file from the command line using vi, and it works. I can see the share content now again in the Windows file explorer. However, this manually created share does not show up in the Unraid GUI, both in the Shares and the User section. And after some time the new smb-shares.conf will become zero bytes again. Any idea how I can reset the SMB and the Users configuration? Diagnostics file attached. Thanks for your support! Edited February 7, 2021 by Raki72 Quote Link to comment
JorgeB Posted February 3, 2021 Share Posted February 3, 2021 Try booting in safe mode. Quote Link to comment
Raki72 Posted February 4, 2021 Author Share Posted February 4, 2021 Thanks for the advise. Unfortunately, it didn't change anything. There are weird effects like when I am adding a new share called "C", I get an error message, that "Share C has been deleted" without any changes at all. Any idea what to do? Is there a good guide somewhere, how to reset Unraid, without losing all the data in the shares (/mnt/user)? Quote Link to comment
JorgeB Posted February 4, 2021 Share Posted February 4, 2021 You can always backup and recreate the flash drive, then restore only super.dat and the key, both from the config folder, all users shares will be recreated at first array start, user shares are just top level folders, but they will use default settings. Quote Link to comment
Raki72 Posted February 4, 2021 Author Share Posted February 4, 2021 Okay. I will give this a try. Thanks JorgeB! 😀 Quote Link to comment
Raki72 Posted February 4, 2021 Author Share Posted February 4, 2021 Hi! I reinstalled Unraid on my USB stick and copied my license on there. Booting up, I reassigned all drives in the right order. Started the array up and... it's still exactly the same. Although all content / directories is still visible under /mnt/user, nothing shows up in the share GUI. Even worse, when I add a share "AAAA", it will show up under /mnt/user but not in the Shares menu. As said, the USB stick was completely empty and I installed a new Unraid from scratch. Yet the problem persists. Is there a problem on the filesystem under /mnt/user maybe? HELP! Quote Link to comment
itimpi Posted February 4, 2021 Share Posted February 4, 2021 When you say the “Shares Menu” do you mean the Shares tab in the GUI or something else? /mnt/user is just a combined view of all the top level golfers on all the disks. It might be worth running a file system chevk on each of your drives in case some corruption has occurred and is upsetting things. Quote Link to comment
Raki72 Posted February 5, 2021 Author Share Posted February 5, 2021 9 hours ago, itimpi said: When you say the “Shares Menu” do you mean the Shares tab in the GUI or something else? /mnt/user is just a combined view of all the top level golfers on all the disks. It might be worth running a file system chevk on each of your drives in case some corruption has occurred and is upsetting things. Yes, I mean the Shares tab in the GUI which is out of sync. The directories that are created under /mnt/user when adding a Share via the GUI will show up in the shell (ls), but not in the network (trying to access it from another PC). I'll give a file system check a try and will report back. Quote Link to comment
Raki72 Posted February 7, 2021 Author Share Posted February 7, 2021 (edited) Okay, provlem solved. For whatever reason my Cache SSD drive showed an error message like "unsupported partition layout". This apparently lead to the symptoms mentioned earlier. After deleting all partitions manually using Windows 10 from the SSD, then re-inserting and formating it, everything was working again. Of course, the VMs and configs on the Cache drive were lost, but that wasn't dramatic. Thanks for your support! Edited February 7, 2021 by Raki72 Quote Link to comment
JorgeB Posted February 7, 2021 Share Posted February 7, 2021 Seems odd that unmountable cache would cause that, but happy that it's solved. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.