[ale] Automatic and Persistent share mount on Windows 2008 R2?

Jim Kinney jim.kinney at gmail.com
Mon Aug 25 13:34:08 EDT 2014


Clearly, as you pointed out in your earlier post, the CIFS mounts being
done are not working properly. Maybe doing them properly would solve our
issues. A domain admin can have mounts always appear and be available to
whoever is allowed access to the system (i.e. the client).

There are boxes in the initial mount setup that asks things like
"automount" or similar. From a CLI, there are flags to be set that will
automatically remount on power up. Don't recall the exact commands as I
tend to write that crap as scripts so I can forget it as soon as possible.
So this is a service account that needs these mounts.

Clearly, I have pissed off someone with a short "use the stupid cifs for
windows as it works best" answer when I guess I should have spent 3-4 hours
of my time at work googleing up info about to manage windows system for a
Linux users group. Maybe a windows admin group will have someone who has
the answer needed at their mental fingertips. I don't as I avoid windows
systems as I have found them to be pathologically unmanageable to the
degree I will accept as managed.

snark does not engender assistance.

At any rate, see these:

http://serverfault.com/questions/426288/permanently-mount-network-share-without-the-need-for-log-on-windows
http://stackoverflow.com/questions/182750/map-a-network-drive-to-be-used-by-a-service/4763324#4763324

The second one sounds a bit familiar to me.


On Mon, Aug 25, 2014 at 1:05 PM, Lightner, Jeff <JLightner at dsservices.com>
wrote:

> Really?   Why didn't I think of that?
>
> The original post clearly states we ARE doing CIFS shares.
>
> It does mention NFS as an alternate idea because that is my other choice.
>
> The question is not "HOW DO I SHARE?" but rather "HOW DO I MOUNT
> PERSITENTLY AND AUTOMATICALLY to the client Windows server?".
>
> Subsequent replies were elicited further details from me to make the above
> clear.
>
> One of the things that truly gripes me is that if one puts a lot of detail
> in a post everyone ignores it but if one excludes it then folks complain
> they didn't get enough information to help.
>
> There are surely tons of clueless newbies that don't think to look at
> documentation or web searches before posting questions but I thought it was
> clear from my original post that I had in fact looked at numerous links
> before posting.
>
> No one is required to help but one really ought to see if they're adding
> to the conversation before replying with simple one liners implying the OP
> is a moron.
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Jim
> Kinney
> Sent: Monday, August 25, 2014 12:12 PM
> To: Atlanta Linux Enthusiasts - Yes! We run Linux!
> Subject: Re: [ale] Automatic and Persistent share mount on Windows 2008 R2?
>
> Ah. So use cifs.
> On Aug 25, 2014 10:51 AM, "Lightner, Jeff" <JLightner at dsservices.com>
> wrote:
>
> > Just to re-iterate:
> > The shares are being done by NAS dedupe appliances and I'm trying to
> > mount the shares on the Windows 2008 R2 system.  (i.e. the Windows
> > system is the client mounting the shares not the server exporting them).
> >
> > There is no control over the NAS appliances other than to create
> > shares as either NFS or CIFS so iSCSI is not an option.
> >
> >
> > -----Original Message-----
> > From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
> > Justin Goldberg
> > Sent: Monday, August 25, 2014 9:51 AM
> > To: Atlanta Linux Enthusiasts
> > Subject: Re: [ale] Automatic and Persistent share mount on Windows 2008
> R2?
> >
> > Another option is installing the Windows builtin iSCSI target and
> > mounting it from Linux, then have the Linux machine, acting as the
> > frontend, share out the box on the network. iSCSI is a one-to-one
> > protocol and is block-level, one machine to another, mounting the
> > drive on a lower level than SMB. It would obviate the need to mess
> > around with Windows authentication, or at least that's my hope.
> > Perhaps it would work better if the Windows server is in workgroup mode.
> >
> > - Justin
> >
> > On Fri, Aug 22, 2014 at 5:29 PM, Lightner, Jeff
> > <JLightner at dsservices.com>
> > wrote:
> >
> > > I have two data deduplication devices that do NAS style shares.   They
> > can
> > > do NFS or CIFS (or both at same time using different shares).     The
> NFS
> > > shares have been there for quite some time and I successfully mount
> > > those to various HP-UX and Linux servers with no issue.
> > >
> > > We need to try to mount to a Windows 2008 R2 server.   Today I got as
> far
> > > as being able to login to the Windows server and map the share to a
> > > drive letter then verify I could read and write from it.
> > >
> > > The issue is that CIFS mount:
> > >
> > > a)      Is only available to the user I logged in as when I did the map
> > on
> > > the Windows side.   (This was also true when I had the Windows Admin do
> > it
> > > using the domain administrative account.)
> > >
> > > b)      Is not available to the services that were already started
> > > automatically at boot.   It is these services that will be writing to
> and
> > > reading from the drive.
> > >
> > > So my question is how can I setup an automatic mount of a share in
> > > Windows at boot AND insure that services started will have access to
> > > read and write to it?
> > >
> > > We did in fact try to enable NFS Services on the Windows server
> > > today but for whatever reason it puked on doing that each time and
> > > forced a
> > reboot.
> > >   If someone knows how to enable that on Windows 2008 R2 as well as
> > > how to make a mount there persistent (similar to the way it would be
> > > if in fstab on UNIX/Linux) I'd be happy to go that route instead.
> > >
> > > Please don't point me at links that "might address" this if you
> > > haven't already tried them and know they work.  After working most
> > > of the week on this I've not found anything that really solves it in
> > > many
> > web searches.
> > >
> > >
> > >
> > >
> > > Athena(R), Created for the Cause(tm)
> > >
> > > Making a Difference in the Fight Against Breast Cancer
> > >
> > > _________________________________________________________
> > >
> > > CONFIDENTIALITY NOTICE: This e-mail may contain privileged
> > >
> > > or confidential information and is for the sole use of the intended
> > >
> > > recipient(s). If you are not the intended recipient, any disclosure,
> > >
> > > copying, distribution, or use of the contents of this information
> > >
> > > is prohibited and may be unlawful. If you have received this
> > > electronic
> > >
> > > transmission in error, please reply immediately to the sender that
> > >
> > > you have received the message in error, and delete it. Thank you.
> > > -------------- next part -------------- An HTML attachment was
> > > scrubbed...
> > > URL: <
> > > http://mail.ale.org/pipermail/ale/attachments/20140822/a6fab4d2/atta
> > > ch
> > > ment.html
> > > >
> > > _______________________________________________
> > > Ale mailing list
> > > Ale at ale.org
> > > http://mail.ale.org/mailman/listinfo/ale
> > > See JOBS, ANNOUNCE and SCHOOLS lists at
> > > http://mail.ale.org/mailman/listinfo
> > >
> > -------------- next part -------------- An HTML attachment was
> > scrubbed...
> > URL: <
> > http://mail.ale.org/pipermail/ale/attachments/20140825/d1ec8ad4/attach
> > ment.html
> > >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.ale.org/pipermail/ale/attachments/20140825/93de0543/attachment.html
> >
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
-- 
James P. Kinney III

Every time you stop a school, you will have to build a jail. What you gain
at one end you lose at the other. It's like feeding a dog on his own tail.
It won't fatten the dog.
- Speech 11/23/1900 Mark Twain


*http://heretothereideas.blogspot.com/
<http://heretothereideas.blogspot.com/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20140825/40130d9e/attachment.html>


More information about the Ale mailing list