UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Absent Member.
Absent Member.
2494 views

Permanently mounting an NSS Volume to OES Linux

After some research, I was able to map an NSS volume to my OES Linux serve (OES2 SP3) without a problem. Used TID 3797138. Here's the big question ... How do I make that mounting occur automatically at bootup? The two choices I've tried are putting the command into fstab - did not work for me or using automount - which also did not work for me. Any help with specific instructions would be great .. I'm still a newbie at this Linux stuff. Can I do it directly through Yast?
Labels (2)
0 Likes
8 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

So you are trying to mount a REMOTE NSS volume to your OES2 Linux server, right?

If that's the case, then the ncpmount command is correct to use.

I don't believe automount or fstab will work. Since you need to enter credentials/password, I suppose the only way off the top of my head is to maybe put the command into one of the startup files for Linux so that after a server reboot it'll run it.

May I inquire as to why you need this?

(I'll check in the meantime which file you'd have to put the ncpmount command in)
0 Likes
Absent Member.
Absent Member.

Sure. My Groupwise server is presently on Netware and is running the WebAcess agent. My Linux OES server is setup as a web server and is running the web access application. The web access application has to be connected to Domain on my mail server in order to run. The only way I know how to point to the Netware server drive is to mount it. Also you mentioned credentials, etc. are needed. I know ncpmount has switches for that?
0 Likes
Cadet 1st Class Cadet 1st Class
Cadet 1st Class

To be honest, I have never been satisfied with the NCP based solutions for this. CIFS works, is easy to set up, and is easily stuffed into fstab. So perhaps that is an option.

-- Bob
0 Likes
Absent Member.
Absent Member.

* ssurina (Thu, 15 Sep 2011 18:26:02 GMT)
> After some research, I was able to map an NSS volume to my OES Linux
> serve (OES2 SP3) without a problem. Used TID 3797138. Here's the big
> question ... How do I make that mounting occur automatically at
> bootup? The two choices I've tried are putting the command into fstab
> - did not work for me or using automount - which also did not work for
> me.


If you want to permanently mount the remote NCP volume then automount is
naturally not the right choice because its sole purpose is to
automatically (that means not permanently) mount.

Despite of that automount is by far the better solution because you're
likely not accessing the remote volume permanently.

An appropriate map file could look like this:

#mount_point options location
SERVER -fstype=ncpfs,ipserver=SERVER,passwd=PASSWORD SERVER/USER.NOVELL

Thorsten
0 Likes
Absent Member.
Absent Member.

Where do I find this info? Novell documentation under CIFS setup for the server?
0 Likes
Absent Member.
Absent Member.

Check that - I see it's a whole server/share setup. Found the documentation.
0 Likes
Absent Member.
Absent Member.

ssurina;2137822 wrote:
After some research, I was able to map an NSS volume to my OES Linux serve (OES2 SP3) without a problem. Used TID 3797138. Here's the big question ... How do I make that mounting occur automatically at bootup? The two choices I've tried are putting the command into fstab - did not work for me or using automount - which also did not work for me. Any help with specific instructions would be great .. I'm still a newbie at this Linux stuff. Can I do it directly through Yast?


Here is how I did it. YMMV

----------- begin script -----------

#! /bin/sh
# Copyright (c) 2011 cps consulting
#
# Author: William J. Sappington
#
# /etc/init.d/mount_ncp_vols
#
# System startup script to mount the nss volumes as an ftp target
#
mountProgName="/usr/bin/ncpmount"
umountProgName="/usr/bin/ncpumount"
serverName="[your server ncp name here]"
serverLocation="[your server ip address here]"
uid=[ appropriate UID to assign to the mount]
gid=[ your apropriate group id to asign to the mount here]
uname="[appropriate name here]"
upass="[password here]"
mountPoint="[your linux system mount point here]"

#first of all check to make sure the program actually exists and is executable
test -e $mountProgName || exit 1
test -x $mountProgName || exit 2
test -e $umountProgName || exit 3
test -x $umountProgName || exit 4
#Is the NDS deamon loaded

ps -A | grep "ndsd" > /dev/nul
if [ $? -gt 0 ] ; then
echo "The nds deamon does not sppear to be loaded"
exit 5
fi

#now use the standard start stop and reload

case "$1" in
start)
$mountProgName -S$serverName -A$serverLocation -u$uid -g$gid -U$uname -P$upass $mountPoint
if [ $? -ne 0 ] ; then
exit 6
fi
;;

stop)
$umountProgName -S$serverName
if [ $? -ne 0 ] ; then
exit 7
fi
;;

reload)
$umountProgName -s$serverName
# ignore any return code
$mountProgName -S$serverName -A$serverLocation -u$uid -g$gid -U$uname -P$upass $mountPoint
if [ $? -ne 0 ] ; then
exit 8
fi
;;

*)
echo "Usage: $0 {start|stop|reload|}"
exit 1
;;
esac

---------------- end script ---------------
0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

In article <ssurina.504eko@no-mx.forums.novell.com>, Ssurina wrote:
> Sure. My Groupwise server is presently on Netware and is running the
> WebAcess agent. My Linux OES server is setup as a web server and is
> running the web access application.
>

Perhaps you need a secondary GW domain on your Linux server to better
handle this so that you don't have to do this cross OS linking. I'd
recommend bring this up in the GroupWise.Web-Access forum, and/or
possibly get the GroupWise goddess' book on GroupWise onto Linux, even
if just for that bit for setting up WebAccess like you are doing.
http://postie.caledonia.net/store/index.php?route=product/product&path=
35&product_id=53
Certainly start with the forum


Andy Konecny
KonecnyConsulting.ca in Toronto
-----------------------------------------------------------------------
-
Andy's Profile: http://forums.novell.com/member.php?userid=75037


___
“i’ve sworn an oath of solitude til the blight is purged from these lands”
Andy of Konecny Consulting in Toronto
Knowledge Partner Profile
If you find a post helpful, click the Like button below. Thanks!
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.