Operating System - HP-UX
1819819 Members
3357 Online
109607 Solutions
New Discussion юеВ

Re: How to set nolock option with mount?

 
SOLVED
Go to solution
Deepu Chakravarty
Regular Advisor

How to set nolock option with mount?

I am running HPUX 11.11 rp2470 server. I need to mount one file system with 'nolock' option. How can I do that? Is it available in 11.11, if no what is the other workaround?

Thanks.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: How to set nolock option with mount?

Shalom,

I don't think so, but here are two previous threads that will contain answers. Hopefully I didn't post to either one.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985769

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=798415&admit=-682735245+1156422329673+28353475

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Marek Mahut
Advisor

Re: How to set nolock option with mount?

Hello,
I think that nolock option is only avalaible for nfs.
Just use mount command with nolock option like this:
mount -o nolock server:/my/exported/dir /pub

or add this line in your /etc/fstab
server:/usr/local/pub /pub nfs nolock

and mount -a

Marek.
"If I ever find out about someone sacrificing quality in order to meet a shipment schedule, I will personally have him fired." -- Dave Packard
Deepu Chakravarty
Regular Advisor

Re: How to set nolock option with mount?

Yes , I need nfs mount.
But it is giving following error:
# mount -o nolock 80.0.0.172:/working /working
nfs mount: illegal file system specific option: nolock

usage: mount [-l][-v|-p]
mount [-F FStype][-eQ] -a
mount [-F FStype][-eQrV][-o specific_options]
{ special | directory }
mount [-F FStype][-eQrV][-o specific_options]
special directory
Dave Olker
Neighborhood Moderator
Solution

Re: How to set nolock option with mount?

Hi Deepu,

If you're talking about an NFS file system and you want to stop any lock requests from going over the wire to the server, the correct mount option is "llock", which stands for "local lock".

This option is only available on HP-UX 11.11 (11i v1) and 11.23 (11i v2) and you need to install patches to get this feature. On 11.11 systems the patch is PHNE_34293 or later. On 11.23 systems the patch is PHNE_33099 or later.

Once those patches, or patches that supercede them are installed, you can use the "-o llock" option to enable local locking on a per-filesystem basis.

Let me know if you have any other questions about local locking with NFS.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Deepu Chakravarty
Regular Advisor

Re: How to set nolock option with mount?

Very good suggestion. Patches told were applied and mounted file systems accordingly with 'llock' option. Now database is created and opened.
Thanks all.