(I'm not here right now, please email a message) ([info]reddragdiva) wrote,
@ 2005-08-25 15:05:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Mounting an SMB share on Solaris.

I'm trying to mount an SMB share on Solaris. (I know it can't be done, I just want to bitch a while.) This is so hard they're only just working on the feature in Solaris 10 (per the candid discussions from the OS developers on the OpenSolaris boards).

The suggested workaround is to export the share over NFS via Services for Unix on the NT box in question. This is what we're doing now, it combines the reliability of Windows with the user-friendliness of Unix — the NFS share just ... disappears from time to time and must be recreated by hand — and we're desperately after another way. Future scripts will use smbclient instead, which works very nicely, but we have lots of old scripts around and a systems programmer reluctant to embark on a major conversion exercise. (Same reason we can't just serve the share from a Unix box via Samba instead. Assume the SMB share can't be moved. We don't have any control over the box in question either.)

There's a proprietary commercial third-party solution called Sharity (which makes the SMB share available internally as if it's been mounted via NFS), which is the consensus real answer to the problem and which we're not going to use because it costs money. There's an ancient GPL version called Sharity Light, which does in fact compile and try to work on Solaris 8, but gives the following error, which Google is no help with any part of:

# ./shlight //debtors/ash/ /mnt -n
Kernel: smb_receive_raw: Invalid packet 0x83
Kernel: smb_receive: receive error: -5
Kernel: smb_proc_connect: Failed to send SESSION REQUEST.
error connecting to server: [5] I/O error
#

Error 5 is (I think) "no such share", but I know damn well the shares I've tested it on exist. Huh?

I'm this > < close to just finding a semi-discarded PC, installing Debian and mounting the share on that for export via NFS, which would actually be cheaper than Sharity. As well as utterly ridiculous.




(Post a new comment)


[info]rbarclay
2005-08-25 02:41 pm UTC (link)
Use Debilian! See the light!

(Reply to this) (Thread)


[info]reddragdiva
2005-08-25 02:43 pm UTC (link)
It looks like an oncoming train. Loaded with gnus.

(Reply to this) (Parent)(Thread)


[info]rbarclay
2005-08-25 02:48 pm UTC (link)
Lee-GNU-cks! eleventy-one!

(Sorry, but I've had way too much exposure to Deadrat today.)

(Reply to this) (Parent)(Thread)


[info]reddragdiva
2005-08-25 02:55 pm UTC (link)
I've just been reading up on DTrace. It sounds good enough for me to bother setting up a box running Solaris 10. Also, there's a FreeBSD port in progress. Which will be ready before L*n*x has anything of the sort. Bwaaahaha.

(Reply to this) (Parent)


[info]alexmc
2005-08-25 02:58 pm UTC (link)
> I know it can't be done,

There is a commercial product which does this. Oh - you've found it already. We used Sharity at our last place.

I vote for the extra PC :-)

(Reply to this)


[info]sweh
2005-08-25 03:24 pm UTC (link)
./shlight //debtors/ash/ /mnt -n

Get rid of the / after "ash" and see if that works.

(Reply to this) (Thread)


[info]reddragdiva
2005-08-26 07:37 am UTC (link)
Nope, exact same error message!

(Reply to this) (Parent)


[info]simonb
2005-08-25 04:16 pm UTC (link)
I played with sharity-light a while ago whilst trying to do exactly the same thing and although I got it to sort of work - as in it mounted SMB mounts with no problems and made the files available - it was highly unstable and prone to failure if a gnat farted within a ten mile radius of the box running the software.

(Reply to this) (Thread)


[info]shamus9999
2005-08-25 04:25 pm UTC (link)
In other words it's every bit as reliable as NT.

(Reply to this) (Parent)(Thread)


[info]simonb
2005-08-25 04:38 pm UTC (link)
Actually, I'd say that it was worse...

(Reply to this) (Parent)(Thread)


[info]shamus9999
2005-08-25 05:30 pm UTC (link)
/me rereads Can Such Things Be by Ambrose Bierce

(Reply to this) (Parent)


[info]xandraius
2005-08-26 12:52 am UTC (link)
Holy smouldering monkey poo... worse than a Wintel flavor?
Fsck.
BTW David, any special tweaks on the Neanderthal Technology box? With changes to the *spontaneous undocumnted product features* of Winblow$ XP from 2K, I think that SMB on NT is now tied to using port 443, even if you skip all of the NetBIOS protcol installs. I could be wrong but remember reading that.

(Reply to this) (Parent)(Thread)


[info]reddragdiva
2005-08-26 07:46 am UTC (link)
I have no idea. The other practical problem is that the box in question is not in our control at all.

(If I can beat sharity-light into working — which, so far, I can't — it would be pathetically easy to, e.g., set up something to restart it in case of a gnat farting within a ten-mile radius of it. Simply because we control the Unix boxes.)

(Reply to this) (Parent)


[info]ozjester
2005-08-26 02:02 am UTC (link)
You've missed all this work stuff haven't you?

(Reply to this) (Thread)


[info]reddragdiva
2005-08-26 07:35 am UTC (link)
I'm suddenly DRASTICALLY time-poor, but it's very nice to know I actually have an income to come in rather than continuing to skim off the house money ...

(Reply to this) (Parent)(Thread)


[info]arkady
2005-08-26 05:02 pm UTC (link)
Just wait until I start as a PFY. We can bitch together about our lusers.

(I have just found out who the clients are for the company in question. Eeep doesn't begin to describe it.)

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…