Welcome, Guest. Please login or register.

Author Topic: How to stop SMBFS from crashing  (Read 9603 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
How to stop SMBFS from crashing
« on: January 01, 2008, 08:44:54 PM »
I'm trying to create an LHA backup of my machine. I've got an SMB share mounted and working fine, but when I start creating the archive the whole machine crashes a few megs in to creating it. I've got StackAttack running in startup-sequence, and the shell script (launched from the dock) which runs SMBFS has a command at the beginning to increase the stack by 20,000. Is there anything else I can do to improve the stability of SMBFS? Alternatively, is there a more stable way to mount a volume on a remote machine?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #1 on: January 02, 2008, 09:25:42 AM »
@Thomas
Thanks for your suggestions. I will bear them in mind when making my backup.

@Fab12
Low stack is a well known cause of instabilities in SMBFS which is why I stated that I had increased the stack.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #2 on: January 02, 2008, 09:53:52 AM »
Quote
Thomas wrote:
I'd rather create the archives on the Amiga and then use FTP to transfer them to a storage server. SMB is not a good choice when working with big files.

The problem is that I'm having issues with my SFS partitions which is why I'm backing up and re-formatting. Because of the issues with the partitions I don't want to create the archive on that partition, but rather I want to create them somewhere else to avoid them becoming corrupt on the SFS partition. That is why I wanted to use SMB. Any alternative suggestions would be welcome. E.g. is FTPMount a good choice for doing this?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #3 on: January 02, 2008, 10:05:29 AM »
Thanks Piru. Will try increasing the stack. BTW do you just put a stack command before the SMBFS command?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #4 on: January 02, 2008, 10:42:46 AM »
Quote
Piru wrote:
Quote
BTW do you just put a stack command before the SMBFS command?
No, I use STACK option of the MorphOS run command (which is basically based on my earlier run44 work).

Would putting "stack 200000" before the SMBFS command work just as well?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #5 on: January 02, 2008, 01:58:36 PM »
Getting back to the original topic briefly, increasing the stack to 200,000 allowed the archiving to get further, but it still hung about 5 megs in. I tried FTPMount as an alternative way of mounting a remote server as a volume, but LHA couldn't add to the archive even though it created it :-?



--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #6 on: January 02, 2008, 04:41:33 PM »
Yes I am using StackAttack2. I have the line C:StackAttack just after Setpatch, but I don't have the "C:StackAttack AUTO" just before LoadWB. Is that important?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #7 on: January 02, 2008, 04:47:33 PM »
Ok, I'll add it, try again, and report back.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #8 on: January 02, 2008, 04:57:52 PM »
BTW should I remove the Stack command from my SMBFS script and allow StackAttack to do its job, or leave the Stack command there?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #9 on: January 02, 2008, 05:37:44 PM »
@Framiga
Does AExplorer allow you to mount a remote device as a volume? I need to do this so I can create the file there on the fly (not create it on a local volume and then copy it).

@quenthal
Thanks for the tip, though my Locale setting is already set to English. Also, I don't have any problems actually connecting to the SMB share.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #10 on: January 02, 2008, 05:42:05 PM »
I see. I'm starting to think it would be much easier to get another hard drive, format it as FAT, connect it to the Amiga, create the backup, then connect it to my Mac and copy the archives off :roll:

Surely there's an easier way!

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #11 on: January 02, 2008, 06:02:54 PM »
Email sent :-)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #12 on: January 02, 2008, 07:43:18 PM »
Framiga kindly sent me SMBFS versions 1.40, 1.59 and 1.63. I was currently using 1.66. Unfortunately every version did the same thing.

I did notice that at least twice it froze on the same file. The entire archive was created successfully in RAM so it's not the file itself. I think maybe it's more to do with the size of the file, or the amount of data written to the SMB share.

StackAttack is installed properly, with both lines in S-S.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #13 on: January 02, 2008, 07:54:36 PM »
I think you're right! Though I would love to hear from anyone who has been able to create large archives over SMBFS (under AmigaOS, not MOS).

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: How to stop SMBFS from crashing
« Reply #14 on: January 03, 2008, 03:24:50 PM »
Does anyone know how reliable USB drives are on the Amiga when creating large files on the fly? I'm thinking of getting a Subway and using a USB hard disk for my backup.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10