nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to verify the options used when mounting a nfs FS.

This is a discussion on How to verify the options used when mounting a nfs FS. within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; After mounting an exported NFS file system: # mount -F nfs nfs_server:/mnt /mnt_point How do I verify what's the default ...

Go Back   nixCraft Linux Forum > UNIX operating systems > Solaris/OpenSolaris

Linux answers from nixCraft.


Solaris/OpenSolaris Discuss all about the SUN Solairs/OpenSolaris. You are free to talk about any issues related to Solaris administration, networking, services and other stuff, share information or ask doubts.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2006, 10:15 AM
Member
User
 
Join Date: Jun 2005
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
warren
Default How to verify the options used when mounting a nfs FS.

After mounting an exported NFS file system:
# mount -F nfs nfs_server:/mnt /mnt_point

How do I verify what's the default options being used?
In Linux, we can issue the command "mount" or "cat /proc/mounts" then we can see what are the defaults options being used. The size of r/wsize, what's the protocol used, etc..right?
So in Solaris, how can I verify it?

thanks,
warren
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-27-2006, 12:08 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
Posts: 586
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 8
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Use mount -v command:

Code:
mount -v
Output:
/dev/dsk/c0d0s0 on / type ufs read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980000 on Mon Mar 27 12:54:59 2006
/devices on /devices type devfs read/write/setuid/devices/dev=3340000 on Mon Mar 27 12:54:53 2006
/dev/dsk/c0d0p0:boot on /boot type pcfs read/write/setuid/devices/nohidden/nofoldcase/dev=19a3010 on Mon Mar 27 12:54:57 2006
proc on /proc type proc read/write/setuid/devices/dev=3380000 on Mon Mar 27 12:54:58 2006
mnttab on /etc/mnttab type mntfs read/write/setuid/devices/dev=3440001 on Mon Mar 27 12:54:59 2006
fd on /dev/fd type fd read/write/setuid/devices/dev=3480001 on Mon Mar 27 12:54:59 2006
swap on /var/run type tmpfs read/write/setuid/devices/xattr/dev=3500001 on Mon Mar 27 12:54:59 2006
swap on /tmp type tmpfs read/write/setuid/devices/xattr/dev=3500002 on Mon Mar 27 12:54:59 2006

Red colour displays the options. Another way is to see /etc/mnttab file:

Code:
cat /etc/mnttab
Output:

/dev/dsk/c0d0s0 / ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev =1980000 1143444299
/devices /devices devfs dev=3340000 1143444293
/dev/dsk/c0d0p0:boot /boot pcfs nohidden,nofoldcase,dev=19a3010 1143444297
proc /proc proc dev=3380000 1143444298
mnttab /etc/mnttab mntfs dev=3440001 1143444299
fd /dev/fd fd rw,dev=3480001 1143444299
swap /var/run tmpfs xattr,dev=3500001 1143444299
swap /tmp tmpfs xattr,dev=3500002 1143444299
-hosts /net autofs nosuid,indirect,ignore,nobrowse,dev=35c0001 1143444307
auto_home /home autofs indirect,ignore,nobrowse,dev=35c0002 1143444307
solaris:vold(pid326) /vol nfs ignore,noquota,dev=3600001 1143444318
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 03-27-2006, 01:15 PM
Member
User
 
Join Date: Jun 2005
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
warren
Default

Thanks so much for the information.
ok, seems this is the only supported options when mounting a nfs in Solaris...
read/write/setuid/devices/nohidden/nofoldcase/dev=19a3010

Also in the manual I cannot find how to mount it using tcp or udp, hard or soft. Anyone knows what are the default for the ff:
tcp or udp?
hard or soft?
rsize/wsize size?
nfs version?
intr or nointr?
timeo=?
etc....

Some of these options will definitely depends on the client.

thanks,
warren
Reply With Quote
  #4 (permalink)  
Old 03-27-2006, 03:30 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
Posts: 482
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 6
monk will become famous soon enough monk will become famous soon enough
Default

Use syntax:

Code:
mount -F nfs -o OPTIONS HOST:PATH /path/to/local
Where,

OPTIONS can be tcp or udp, hard or soft etc. To see all option read man page mount_nfs.

Code:
man mount_nfs
Reply With Quote
  #5 (permalink)  
Old 03-28-2006, 06:45 AM
Member
User
 
Join Date: Jun 2005
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
warren
Default

ok, I see it all...
man mount_nfs

problem solved...thanks to monk and rockdalinux

warren
Reply With Quote
  #6 (permalink)  
Old 04-30-2009, 05:56 PM
Junior Member
User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
chika.tambun is on a distinguished road
Smile on ubuntu

$ sudo apt-get install nfs-common
$ sudo mount 10.126.12.36:/data /mnt

it works
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
passing options to a shell script bigpaw Shell scripting 2 10-11-2007 02:40 AM
Verify X.org configuration file Yasar Getting started tutorials 1 09-06-2007 02:43 PM
Certification options !!! donovan The Hangout 14 05-30-2007 04:48 AM
Howto verify linux open port nixcraft Getting started tutorials 0 05-18-2007 01:49 AM
Linux : How do I verify which ports are listening? sweta Getting started tutorials 0 07-30-2006 10:02 PM


All times are GMT +5.5. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.3 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36