All of lore.kernel.org
 help / color / mirror / Atom feed
* setting specific lockd port for NFS .....................
@ 2007-04-26 11:19 Terry Spaulding
  2007-04-28 21:35 ` Neil Brown
  2007-04-29 23:34 ` Steve Dickson
  0 siblings, 2 replies; 10+ messages in thread
From: Terry Spaulding @ 2007-04-26 11:19 UTC (permalink / raw)
  To: 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
spauld@us.ibm.com


-------------------------------------------------------------------------
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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-04-26 11:19 setting specific lockd port for NFS Terry Spaulding
@ 2007-04-28 21:35 ` Neil Brown
  2007-04-29 14:47   ` Terry Spaulding
  2007-05-01 20:22   ` Terry Spaulding
  2007-04-29 23:34 ` Steve Dickson
  1 sibling, 2 replies; 10+ messages in thread
From: Neil Brown @ 2007-04-28 21:35 UTC (permalink / raw)
  To: Terry Spaulding; +Cc: nfs

On Thursday April 26, spauld@us.ibm.com 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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-04-28 21:35 ` Neil Brown
@ 2007-04-29 14:47   ` Terry Spaulding
  2007-05-01 20:22   ` Terry Spaulding
  1 sibling, 0 replies; 10+ messages in thread
From: Terry Spaulding @ 2007-04-29 14:47 UTC (permalink / raw)
  To: Neil Brown; +Cc: nfs

On Thursday April 26, spauld@us.ibm.com 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
spauld@us.ibm.com


-------------------------------------------------------------------------
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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-04-26 11:19 setting specific lockd port for NFS Terry Spaulding
  2007-04-28 21:35 ` Neil Brown
@ 2007-04-29 23:34 ` Steve Dickson
  1 sibling, 0 replies; 10+ messages in thread
From: Steve Dickson @ 2007-04-29 23:34 UTC (permalink / raw)
  To: Terry Spaulding; +Cc: 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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-04-28 21:35 ` Neil Brown
  2007-04-29 14:47   ` Terry Spaulding
@ 2007-05-01 20:22   ` Terry Spaulding
  1 sibling, 0 replies; 10+ messages in thread
From: Terry Spaulding @ 2007-05-01 20:22 UTC (permalink / raw)
  To: Neil Brown; +Cc: 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, spauld@us.ibm.com 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
spauld@us.ibm.com

"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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
@ 2007-05-02 12:05 Terry Spaulding
  2007-05-02 12:47 ` Neil Brown
  0 siblings, 1 reply; 10+ messages in thread
From: Terry Spaulding @ 2007-05-02 12:05 UTC (permalink / raw)
  To: Neil Brown; +Cc: 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
spauld@us.ibm.com


-------------------------------------------------------------------------
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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-05-02 12:05 Terry Spaulding
@ 2007-05-02 12:47 ` Neil Brown
  2007-05-02 13:33   ` Terry Spaulding
  0 siblings, 1 reply; 10+ messages in thread
From: Neil Brown @ 2007-05-02 12:47 UTC (permalink / raw)
  To: Terry Spaulding; +Cc: nfs

On Wednesday May 2, spauld@us.ibm.com 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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-05-02 12:47 ` Neil Brown
@ 2007-05-02 13:33   ` Terry Spaulding
  2007-05-02 13:44     ` Terry Spaulding
  0 siblings, 1 reply; 10+ messages in thread
From: Terry Spaulding @ 2007-05-02 13:33 UTC (permalink / raw)
  To: Neil Brown; +Cc: 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
spauld@us.ibm.com


-------------------------------------------------------------------------
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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
  2007-05-02 13:33   ` Terry Spaulding
@ 2007-05-02 13:44     ` Terry Spaulding
  0 siblings, 0 replies; 10+ messages in thread
From: Terry Spaulding @ 2007-05-02 13:44 UTC (permalink / raw)
  To: Neil Brown, 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
spauld@us.ibm.com


-------------------------------------------------------------------------
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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: setting specific lockd port for NFS .....................
@ 2007-05-02 16:15 Terry Spaulding
  0 siblings, 0 replies; 10+ messages in thread
From: Terry Spaulding @ 2007-05-02 16:15 UTC (permalink / raw)
  To: Neil Brown, 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
spauld@us.ibm.com


-------------------------------------------------------------------------
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  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-05-02 16:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 11:19 setting specific lockd port for NFS Terry Spaulding
2007-04-28 21:35 ` Neil Brown
2007-04-29 14:47   ` Terry Spaulding
2007-05-01 20:22   ` Terry Spaulding
2007-04-29 23:34 ` Steve Dickson
  -- strict thread matches above, loose matches on Subject: below --
2007-05-02 12:05 Terry Spaulding
2007-05-02 12:47 ` Neil Brown
2007-05-02 13:33   ` Terry Spaulding
2007-05-02 13:44     ` Terry Spaulding
2007-05-02 16:15 Terry Spaulding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.