- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Shares disappeared after restarting Frontview manually.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shares disappeared after restarting Frontview manually.
ReadyNAS NV (I know, I know) running latest firmware.
Been a faithful user for years.
Somewhere between restarting frontview and nfs-kernel-server via command line (in an attempt to tighten up nfs share security), it looks like my shares disappeared from Frontview (they are still there under /c)
/etc/frontview/apache/Shares.conf is empty
/etc/frontview/samba/Shares.conf is empty
Strangely, if you look at the screenshots below, the shares now show up as user accounts so something went sideways as well as the exports (over CIFS, NFS, AFP) no longer being accessible.
If I go to a different machine and do a "showmount -e <nas>", I am able to see the NFS exports but am not able to mount (probably due to missing perms)
I am still able to ssh in and have backed up /etc onto a different machine via rsync. I have not tried creating a new share yet as I'm not sure if that might make things worse.
I'm really hoping that I can recover without having to blow everything away.
I did check the output for "df -h" and "df -i" and I'm fine on disk utilization as well as # of inodes consumed.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
What's the output of the following?:
# df -h
# df -i
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
nas01:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdc1 1.9G 343M 1.6G 18% /
tmpfs 16k 0 16k 0% /USB
/dev/c/c 5.4T 4.6T 825G 86% /c
nas01:~# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hdc1 128000 8058 119942 7% /
tmpfs 31583 1 31582 1% /USB
/dev/c/c 182812672 619305 182193367 1% /c
As mentioned, I don't think space is the issue (even though /c is getting a little full)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
Here is the output of ls.
As you can see the Shares.conf are showing as zero. I'm wondering if adding a new share will help populate those files sufficiently that I can manually add the other old shares back in. Obviously, I want to avoid deleting those shares...
nas01:/etc/frontview# ls -l samba/ apache/
apache/:
total 96
lrwxrwxrwx 1 admin admin 7 May 19 14:09 1987cbba.0 -> new.pem
lrwxrwxrwx 1 admin admin 32 Nov 16 2013 a725456d.0 -> /etc/frontview/apache/apache.pem
drwxr-xr-x 2 admin admin 16384 Apr 8 2009 addons
-rw------- 1 admin admin 1555 Nov 16 2013 apache.pem
-rwxr--r-- 1 admin admin 9079 May 19 16:47 httpd.conf
-rw-r--r-- 1 admin admin 3025 May 19 14:07 new.pem
-rw------- 1 admin admin 0 Jun 14 2006 Ports.conf
-rw------- 1 admin admin 0 May 19 16:26 Shares.conf
-rw------- 1 admin admin 0 May 19 16:26 Shares.conf.1
-rw-r--r-- 1 admin admin 301 May 15 2006 ssleay.cnf
-rw------- 1 admin admin 140 May 18 13:01 Virtual.conf
samba/:
total 256
drw-rw---- 2 admin admin 16384 Jan 30 2008 addons
-rw-rw---- 1 admin admin 0 May 19 16:26 Shares.conf
-rw-rw---- 1 admin admin 294 May 19 16:26 Shares.conf.admin
-rw-rw---- 1 admin admin 294 May 19 16:26 Shares.conf.administrator
-rw-rw---- 1 admin admin 0 May 19 16:26 Shares.conf-sav
-rw-rw---- 1 admin admin 75 Apr 24 2012 smb.conf.CIFSFS
-rw-rw---- 1 admin admin 54 Mar 4 2005 smb.conf.OS2
-rw-r----- 1 admin admin 125 Apr 24 2012 smb.conf.OSX
-rw-rw---- 1 admin admin 54 Mar 4 2005 smb.conf.Samba
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.UNKNOWN
-rw-rw---- 1 admin admin 88 Sep 24 2013 smb.conf.Vista
-rw-rw---- 1 admin admin 120 Jun 5 2009 smb.conf.WfWg
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.Win2K
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.Win2K3
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.Win95
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.WinNT
-rw-rw---- 1 admin admin 55 Mar 4 2005 smb.conf.WinXP
-rw-rw---- 1 admin admin 55 Apr 24 2012 smb.conf.WinXP64
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
Digging around, I see that others have complained about possibly the same issue but appears to be no resolution...
https://community.netgear.com/t5/Using-your-ReadyNAS/Shares-disappeared-after-reboot/td-p/895106
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
I am not seeing your shares in your ls output, just your user account folders.
If the shares are there, have you backed them up?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
You might be able to try restoring the original config files from /etc/default/config/etc/frontview
cp -rP /etc/default/config/etc/frontview/* /etc/frontview/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
Please see the link above for similar problems experienced by others. It looks like the shares and users somehow get confused and dumped into /etc/passwd.
The initial ls screenshot shows /c which are just the shares. I have blanked out the user account names (blue stuff). The shares are still there as of now and no, the shares are not backed up right now and therefore I'm hesitant to try to, a) delete the shares showing up as account names and b) try to create a new share to try to manually determine the format necessary to recreate the existing shares.
I've got another NAS coming (hopefully by Monday) so my plan is to back up to that first via rsync.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
Oh cool!
I found a (semi?) intact Shares.conf at
/etc/default/config/etc/default/samba/Shares.conf (it's missing /c/u001 and /c/vmdatastore)
[backup]
comment = "Backup Share"
path = "/c/backup"
public = 1
writeable = 1
oplocks = 1
[media]
comment = "Media Server Share"
path = "/c/media"
public = 1
writeable = 1
oplocks = 1
Similarly, /etc/default/config/etc/netatalk/AppleVolumes.default
After restoring the files and cleaning out /etc/passwd, what do you recommend as the best way to restart things? Reboot or restart services? (AFP, CIFS and NFS are all currently impacted for me).
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
@fooboo wrote:
I found a (semi?) intact Shares.conf at
/etc/default/config/etc/default/samba/Shares.conf (it's missing /c/u001 and /c/vmdatastore)
No, that's actually the default config file; that's the config it would have used if you factory defaulted. You can copy the default config Shares.conf to the /etc/frontview/samba/Shares.conf to match your existing shares and get yourself back up and running. You might also be able to check /var/backups/ to see if there is a config backup there of your original shares.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Shares disappeared after restarting Frontview manually.
Ok thanks. I looked in /var/backups and it appears that there are a number of compressed tars there so I'll copy them off and look around.
- Is it safer/better to either cherry pick the files that I need or just copy it over completely?
- I'm assuming that I should reboot after copying the files over? Or should I just restart frontview from the command line?
Thanks much! I'm excited about the prospect of getting things back to normal.