Jump to content


Photo

Losing NAS on linux


  • Please log in to reply
28 replies to this topic

Re: Losing NAS on linux #21 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 3 September 2017 - 04:09

My Windows 7, with Synology drivers installed when one installs Synology Assistant, sometimes sees the NAS and sometimes it doesn't (Windows Explorer in Network).

Installed 3 more proggies to see Linux files - the same thing occasionally occurs...

 

My E2 machines sometimes fail to kick-start Synology NAS from hibernation.

 

I guess this may be the issue, at least sometimes...


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Losing NAS on linux #22 doglover

  • Rytec EPG Team
  • 17,013 posts

+639
Excellent

Posted 3 September 2017 - 08:04

My Windows 7, with Synology drivers installed when one installs Synology Assistant, sometimes sees the NAS and sometimes it doesn't (Windows Explorer in Network).

 

 

Everybody has that on Windows.  Did not find a good solution yet.  Except I run now a batch file on Windows start-up (1 minute delay).via task Scheduler

net use R: /Delete
net use T: /Delete
net use V: /Delete
net use W: /Delete
net use Y: /Delete
net use Z: /Delete

net use R: \\WDW\Backup /user:username password
net use V: \\WDW\EPG /user:username password
net use W: \\ET6X00\Root
net use Y: \\ET9X00\Root
net use Z: \\WDW\Movie /user:username password

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Losing NAS on linux #23 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,794 posts

+187
Excellent

Posted 3 September 2017 - 09:53

In my experience many problems that I have encountered with connectivity are due to WIFI or cheap NIC's. So I prefer Intel NIC's and steer clear from any Realtek. With the Synology (DS215+) I have never been able to determine the vendor, the only thing I found was the driver: al_eth with version: 0.2, but that didn't help me :(


Edited by 40H3X, 3 September 2017 - 09:54.

Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: Losing NAS on linux #24 WanWizard

  • PLi® Core member
  • 68,621 posts

+1,739
Excellent

Posted 3 September 2017 - 13:05

With SMB/CIFS, most of the misery comes from the fact that a lot still relies on the old NetBIOS broadcasts and workgroup browser mechanisms (from Windows for Workgroups 3.11 days!), while Microsoft has abandoned that in favour of Dynamic DNS services (where all others have moved to mDNS), and recent Windows versions have it disabled by default.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Losing NAS on linux #25 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 1 October 2017 - 14:57

If your network relies on NetBIOS, it's misconfigured.

 

I do even have neither NetBIOS nor CIFS, only SMB:

disable netbios = Yes
smb ports = 445
 

root@quadbox ~ # ps | grep mbd | grep -v grep
root       642     1  0 14:06 ?        00:00:00 /usr/sbin/smbd
root       645   642  0 14:06 ?        00:00:00 /usr/sbin/smbd
root       646   642  0 14:06 ?        00:00:00 /usr/sbin/smbd
root     11838   642  0 15:12 ?        00:00:00 /usr/sbin/smbd
... no nmbd running ...
 

Edited by SpaceRat, 1 October 2017 - 14:58.

1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: Losing NAS on linux #26 WanWizard

  • PLi® Core member
  • 68,621 posts

+1,739
Excellent

Posted 1 October 2017 - 16:16

Agreed, NetBIOS is ancient.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Losing NAS on linux #27 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 1 October 2017 - 16:33

One of the reasons why I do not understand what the PLi recipe for Samba is that much crippled for.
Samba 4.4.x has about 20 MB ... was it really necessary to save 48 kiloBytes by ripping out testparm and smbstatus?

If you look at the Debian startup scripts for Samba, you will notice that testparm is required to know before-hand if NetBIOS is really wanted ... if not, nmbd doesn't get started.
"disable netbios = Yes" alone inside smb.conf does nothing, you actually have to parse smb.conf before and skip starting nmbd if netbios should be disabled.

Stolen right-away from Debian (Only slightly modified for different logging):
start-stop-daemon --start --quiet --exec $smbd
    NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
    if [ "$NMBD_DISABLED" != "Yes" ]; then
      echo -n " nmbd"
      start-stop-daemon --start --quiet --exec $nmbd
    fi
wsdd also needs testparm, else it would have to make wild guesses about hostname and workgroup (or include a 50 kB parser for smb.conf and its includes ;) ) ...
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: Losing NAS on linux #28 ims

  • PLi® Core member
  • 13,625 posts

+212
Excellent

Posted 1 October 2017 - 18:52

I do not know, how it is in new samba version, but I am using "disable netbios = yes" in "global". Without it disks in all my mounted synology (using cif + autofs) after sleep begin wakeup. Did not try with new version...


Kdo nic nedělá, nic nezkazí!

Re: Losing NAS on linux #29 WanWizard

  • PLi® Core member
  • 68,621 posts

+1,739
Excellent

Posted 2 October 2017 - 14:56

I'm not sure there was a concious effort to strip those, I think it was more a matter of "they weren't in 3, lets not add them in 4". So this needs to be looked at too.

 

@ims,

 

Your problem is on the Syno side, the Synology OS has the very annoying habbit of placing it's data directories in volume1 instead of in flash, causing this behaviour (it writes netbios updates and log entries). I have hacked it to use a USB SSD disk as storage for all these directories, and for everything I've installed manually (webservers, proxy, DNS, etc).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users