2007-04-26 11:19:48

by Terry Spaulding

[permalink] [raw]
Subject: setting specific lockd port for NFS .....................


List....

Has anyone been successful in setting a specific port for lockd to use with
NFS ?

I am using SLES9 SP3 and have tried setting it in /etc/zipl.conf with no
success. It stills uses a port from portmapper rather then a port I am
specifying.

I have tried these two formats in /etc/zipl.conf:

example:

ramdisk = /boot/initrd
parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb elevator=cfq
nlm_tcpport=52670 nlm_udpport=52670"


example:

ramdisk = /boot/initrd
parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb elevator=cfq
lockd.udpport=52670 lockd.tcpport=52670"

Perhaps I am trying to set it in the wrong place ?

Any recommendations would be appreciated.

TIA .........................

Regards,
Terry L. Spaulding
IBM
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2007-04-28 21:35:50

by NeilBrown

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................

On Thursday April 26, [email protected] wrote:
>
> List....
>
> Has anyone been successful in setting a specific port for lockd to use with
> NFS ?

I've never tried it myself, but...

>
> ramdisk = /boot/initrd
> parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb elevator=cfq
> nlm_tcpport=52670 nlm_udpport=52670"
>
>
> example:
>
> ramdisk = /boot/initrd
> parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb elevator=cfq
> lockd.udpport=52670 lockd.tcpport=52670"

I think you want to combine those two:

lockd.nlm_tcpport=52670 lockd.nlm_udpport=52670

NeilBrown

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-04-29 14:47:03

by Terry Spaulding

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................

On Thursday April 26, [email protected] wrote:
>
> List....
>
> Has anyone been successful in setting a specific port for lockd to use
with
> NFS ?

I've never tried it myself, but...

>
> ramdisk = /boot/initrd
> parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb
elevator=cfq
> nlm_tcpport=52670 nlm_udpport=52670"
>
>
> example:
>
> ramdisk = /boot/initrd
> parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb
elevator=cfq
> lockd.udpport=52670 lockd.tcpport=52670"

Neil Brown responded on 4/28/2007:
>
>I think you want to combine those two:
>
> lockd.nlm_tcpport=52670 lockd.nlm_udpport=52670
>
>NeilBrown

Thanks Neil, I will give it a try and get back to the list.


Regards,
Terry L. Spaulding
IBM
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-04-29 23:34:05

by Steve Dickson

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................



Terry Spaulding wrote:
> List....
>
> Has anyone been successful in setting a specific port for lockd to use with
> NFS ?
The nfslock init script in Fedora Core can do this...

steved.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-05-01 20:22:19

by Terry Spaulding

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................

Neil,

That worked on SLES9. I have the lockd using specific ports.

lockd.nlm_tcpport=52670 lockd.nlm_udpport=52670

I will be testing the same on SLES8.

Thanks................

On Thursday April 26, [email protected] wrote:
>
> List....
>
> Has anyone been successful in setting a specific port for lockd to use
with
> NFS ?

I've never tried it myself, but...

>
> ramdisk = /boot/initrd
> parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb
elevator=cfq
> nlm_tcpport=52670 nlm_udpport=52670"
>
>
> example:
>
> ramdisk = /boot/initrd
> parameters = "root=/dev/mapper/lun01r1 selinux=0 TERM=dumb
elevator=cfq
> lockd.udpport=52670 lockd.tcpport=52670"

>I think you want to combine those two:
>
> lockd.nlm_tcpport=52670 lockd.nlm_udpport=52670

> NeilBrown


Regards,
Terry L. Spaulding
SR IT Specialist
IBM ITS
Tele: 781-323-5192 Tie/L: 364-2090
Fax: 781-895-2659
[email protected]

"The third-rate mind is only happy when it is thinking with the majority.
The second-rate mind is only happy when it is thinking with the minority.
The first-rate mind is only happy when it is thinking." -- A.A. Milne
(1882-1956)


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-05-02 12:05:30

by Terry Spaulding

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................


Neil,

I tried the same settings for lockd on the SLES8 system and the lockd
settings do not work in /etc/zipl.conf

I did some research on SLES8 and setting the lockd ports and found some
info that shows the zipl.conf noted
below works for SLES8 but there maybe some additional settings required to
support lockd port setting as a kernel parameter.

I found some references to using sysctl and another to use one of the /etc
conf files but no details on what was entered in these files.

We are planning on replacing all of the SLES8's but later in the year. Can
anyone shed some light on setting the nlm.lockd port on SLES8 ?

Terry Spaulding wrote:
>Neil,
>
>That worked on SLES9. I have the lockd using specific ports.
>
>lockd.nlm_tcpport=52670 lockd.nlm_udpport=52670
>
>I will be testing the same on SLES8.
>

Thanks................

Regards,
Terry L. Spaulding
IBM
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-05-02 12:47:47

by NeilBrown

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................

On Wednesday May 2, [email protected] wrote:
>
> Neil,
>
> I tried the same settings for lockd on the SLES8 system and the lockd
> settings do not work in /etc/zipl.conf
>
> I did some research on SLES8 and setting the lockd ports and found some
> info that shows the zipl.conf noted
> below works for SLES8 but there maybe some additional settings required to
> support lockd port setting as a kernel parameter.
>
> I found some references to using sysctl and another to use one of the /etc
> conf files but no details on what was entered in these files.
>
> We are planning on replacing all of the SLES8's but later in the year. Can
> anyone shed some light on setting the nlm.lockd port on SLES8 ?

SLES8 is 2.4 based which does this a bit differently to 2.6.

Kernel parameters are lockd.udpport and lockd.tcpport
module parameters are nlm_udpport and nlm_tcpport.

I suspect the former is what you want to put in zipl.conf

NeilBrown

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-05-02 13:33:14

by Terry Spaulding

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................

Neil,

I changed the zipl.conf. The lockd is still setting the port randomly.

parameters="dasd=200-209 root=/dev/dasda1 lockd_tcpport=52670
lockd_udpport=52670"

ran zipl and rebooted.

Started nfs server on this Linux and issued rpcinfo -p:

100021 1 udp 1024 nlockmgr
100021 3 udp 1024 nlockmgr
100021 4 udp 1024 nlockmgr
100021 1 tcp 1078 nlockmgr
100021 3 tcp 1078 nlockmgr
100021 4 tcp 1078 nlockmgr

rpm -qa | grep nfs:

nfs-utils-1.0.1-79
yast2-nfs-client-2.6.11-51
yast2-nfs-server-2.6.13-41

kernel: Linux linux01 2.4.21-251-default #1 SMP Sun Sep 26 14:07:15 UTC
2004 s390 unknown

Any suggestions would be appreciated.

Thanks .............

>Terry wrote:
> We are planning on replacing all of the SLES8's but later in the year.
Can
> anyone shed some light on setting the nlm.lockd port on SLES8 ?
>Neil wrote:
>SLES8 is 2.4 based which does this a bit differently to 2.6.
>
>Kernel parameters are lockd.udpport and lockd.tcpport
>module parameters are nlm_udpport and nlm_tcpport.
>
?I suspect the former is what you want to put in zipl.conf

Regards,
Terry L. Spaulding
IBM
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-05-02 13:44:16

by Terry Spaulding

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................

Neil,

I found typo on the lockd statement.

I should have set the kernel parms as: parameters="dasd=200-209
root=/dev/dasda1 lockd.tcpport=52670 lockd.udpport=52670"

Lockd is now set correctly.

On to testing.

Thanks for your assistance.


Regards,
Terry L. Spaulding
IBM
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-05-02 16:15:19

by Terry Spaulding

[permalink] [raw]
Subject: Re: setting specific lockd port for NFS .....................


Neil,

The NFS servers/Clients are working great on SLES8 and SLES9 with static
ports defined
for lockd.

Thanks for the help .....

>Neil,
>
>I found typo on the lockd statement.
>
>I should have set the kernel parms as: parameters="dasd=200-209
>root=/dev/dasda1 lockd.tcpport=52670 lockd.udpport=52670"
>
>Lockd is now set correctly.
>
>On to testing.



Regards,
Terry L. Spaulding
IBM
[email protected]


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs