• Learning Map
  • Unix Quiz Center
  • Unix Professional Network
  • Just-Unix-No-Noise FB Group

unixadminschool.com

  • Home
  • Announcements
    • Feed
    • MISC
  • Beginners zone
    • Beginners Lessons
    • Career Guidance
  • Experts Zone
    • Cloud Computing
    • Configuration Solutions
    • Migrations
    • Network Design
    • Scripting
    • Server Security
    • SUN CLUSTERS
    • SUN LDOMS
    • Tools & Applications
    • Veritas Cluster Services ( VCS ) Learning
  • Intermediate Zone
    • Linux Learning
      • Linux Booting
      • Linux Disk Management
      • Linux LVM
      • Linux Networking
      • Linux Performance
      • Linux Troubleshooting
      • Linux YUM/RPM
      • Performance Analysis
      • Redhat Linux Kernel
      • RHEL 6
        • RHEL LDAP
        • Rhel6 Storage
      • Web Servers
    • Solaris Admin
      • Blog for Unix Admin
        • Storage Administration – SAN
      • Oracle Hardware
      • Reference Docs
      • Solaris 10 Zones & LDOMs
      • Solaris 11
      • Solaris Access Control
      • Solaris Best Practices
      • Solaris Booting
      • Solaris Disk Management
      • Solaris DNS
      • Solaris How-to
      • Solaris Installation
      • Solaris Kernel
      • Solaris Networking
      • Solaris NFS
      • Solaris NIS
      • Solaris Packages & Patching
      • Solaris Performance
      • Solaris Tips
      • Solaris Troubleshooting
      • Solaris User Authentication
      • solaris X86
      • Solaris ZFS and Boot Environment
      • Storage Configurations
      • SUN Hardware
      • Troubleshooting Flow charts
    • Veritas Admin
      • Veritas Netbackup
      • VxVM Learning
      • VxVM Troubleshooting
  • QUIZ Center
  • Vlabs

Subscribe

Solaris 10 : Migration from NFSv3 to NFSv4

This post will make some comparisons between NFSv4 and NFSv3, and introduce how to migrate from NFSv3 to NFSv4.

As we all aware, NFSv4 is not just a simple protocol evolution of NFSv3. It has been fully redesigned to overcome the limitations of its predecessors. 

Comparison Between NFSv3 and NFSv4

1. Transport protocols

For NFSv3, the MOUNT service is normally supported over the TCP and UDP protocols.
For NFSv4, only the TCP protocol is supported.
NFS v4 is designed for internet use. One unique network port is used on NFSv4. This predetermined port is fixed. The default is port 2049. Using NFS v4 through firewalls is easier than with earlier NFS versions.

2. Locking operation

NFS v3 protocol is stateless, so an additional Network Lock Manager (NLM) protocol, an auxiliary protocol for file locking, is required to support locking of NFS-mounted files READ/WRITE. Also NLM is stateful in that the server LOCKED keeps track of locks.

NFSv4 is stateful. Locking operations(open/read/write/lock/locku/close) are part of the protocol proper. NLM is not used by NFSv4.

3. Required Services

NFSv3 relies on Remote Procedure Calls (RPC) to encode and decode requests  between clients and servers. NFSv3 depends on portmapper, rpc.mountd, rpc.lockd, rpc.statd.

NFSv4 has no interaction with portmapper, rpc.mountd, rpc.lockd, and rpc.statd, since protocol support has been incorporated into the v4 protocol. NFSv4 listens on “well-known” TCP port (2049) which eliminates the need for the portmapper interaction. The mounting and locking protocols have been incorpated into the V4 protocol which eliminates the need for interaction with rpc.mountd and rpc.lockd.

4. Security


NFS v3 supports export/mount. Thus the host makes the mount request, not a user of the file system.

With NFSv4, the mandatory security mechanisms are oriented towards authenticating individual users, e.g. by configuring the Kerberos version 5 GSS-API or other security mechanism. Full Story

Ramdev
Comment
Tagged with: [ nfsv3, nfsv4, solaris learning, solaris migration, solaris networking, Solaris NFS, solaris traiing, Solaris Troubleshooting ]

Solaris Troubleshooting NFS: “stale NFS file handle” errors

Stale file handles occur when a file or directory was held open by an NFS client, and then was either removed, renamed, or replaced.

 

For example a file gets removed and a new file is created using the same inode, or if the file was renamed and the inode changed.

The only way to get the ESTALE to go away is to force the client process to negotiate new handles.  Either open the files again, or restart the processes. You can try to umount and remount the filesystem on top of itself, or kill/restart any processes that have open file handles. If you prefer not to reboot the machine, you may create a new mount point on the client for the mount point with the Stale NFS file handle.

Ramdev
% Comments
Tagged with: [ nfs troublesooting, solaris learning, Solaris NFS, Solaris Troubleshooting, stale nfs ]

Solaris Troubleshooting : NFS – Hard vs Soft mounts

NFS-filesystems that are mounted read-write or that contain executable files should always be mounted with the “hard” option.

Normally an application is not aware of where the data (files) it is accessing is located – it only knows the pathname.  The data could be located locally in an UFS or VxFS or <whatever> filesystem, or it could be located on an NFS filesystem.  The application doesn’t care where the data is located (that’s the kernel’s job) and accesses the data by standard C-function calls such as open(), read(), write(), close(), etc.
Generally, the “normal” application usually only handles those return-codes of the file-accessing function calls it expects to receive.If an NFS client has problems in communicating to a NFS server (e.g. if the server’s responses are dropped on the network), we’ll see a different behaviour between the mount options “hard” and “soft”. Full Story

Ramdev
Comment
Tagged with: [ hard vs soft, nfs mount, solaris learning, Solaris Troubleshooting ]

Solaris Troubleshooting NFs : ls -la hangs on root (/)

Running “ls -la /” hangs, yet running “ls -la” to other root directories  (i.e. ls -la /usr) does NOT hang. And the system logs ( i.e. /var/adm/messages) shows NFS related errors, even though this is NOT a true NFS client.

 

Here are the some sample errors that may appear in the /var/adm/messages file when the “ls -la /” hangs:

Mar 28 09:23:19 moe nfs: [ID 333984 kern.notice] NFS server for volume management (/vol) not responding still trying
Mar 28 09:31:13 moe nfs: [ID 664466 kern.notice] NFS getattr failed for server for volume management (/vol): error 23 (RPC: Unitdata error)

In this particular situation, this client was mounting a CD remotely from another system, which was shutdown before unsharing the CD, and before the client could unmount the remote CD mount. The tail end of a truss shows that it was hanging on /vol as well (line numbers set and it was hanging on line 256-257):

# cd /
# truss -fall -vall -wall -rall ls -la

Full Story

Ramdev
8 Comments
Tagged with: [ ls hang, nfs troubleshooting, Solaris Troubleshooting ]

Solaris Troubleshooting : error “RPC: program not registered” Errors

When we trying to use a particular RPC  program, below may indicate that rpcbind is not running or the program is not registered with rpcbind.

Error “RPC: Program not registered”

Full Story

Ramdev
Comment
Tagged with: [ rpc error, solaris learning, Solaris Troubleshooting, troubleshooting ]

NFS (Network File System) for Beginners

NFS (Network File System) for Beginners: In this post I am trying to build a base for the beginners. This post will help to proceed further with NFS complex tasks.

What is NFS?

NFS —> Network File System —> The Network File System (NFS) is a client-server service that enables users to view, store, and update files on a remote server as though they were on the their own local server. In Simple layman language NFS provides a “Centralized File Access”.

Example: Suppose you have a 100 users in a company. Out of which 50 require complete access to 10 files/softwares etc. for there daily day to day work and other 50 require access to other commonly used 15 files/softwares etc. for there work. Now instead of placing individual files/softwares on each users server (computer) you should keep the files/softwares in a common shared place which users would have access to. Now each user can access (read/write/modify –> depending upon access provided) those commonly used files/softwares remotely without having them on his/her local server/computer. This will help to save the diskspace as well on all users server. Full Story

Yogesh.Raheja
10 Comments
Pages1 2 3

  • About Author : My name is Ramkumar Ramadevu ( Ramdev ). I have started writing about enterprise unix system administration since 2009 just for my own knowledge reference, and then later I have made this site available for everyone, for better purpose. ... read more

  • Advertise Here Your Video Ad Here
  • Recent Comments

    • Ramdev commented :: Hi Prajwala, I am glad that you like it :)...
    • Ramdev commented :: Pavan, the below command mentioned in this doc to show how much pemlen...
    • Ramdev commented :: pleae try      --             share -F nfs -o rw=oracle:root /filesyst...
    • Ramdev commented :: Hi Jack, the cfgadm you have to do it anyway to  make sure the disk i...
    • Maniswara Pavan commented :: Nice Post .........
    • Maniswara Pavan commented :: Hi Ram, I have a doubt here .. Lets think we have disk and its pr...
    • jack commented :: Do we need to initialize and configure the replaced disk in this proce...
    • Laxxi commented :: Hi Ram, Please guide me how can I provide Read write access to a Fs...
    • Rahul commented :: Hi All, I just want to know . is there any way to implement the sam...
    • Prajwala commented :: Thanks Ramdev...
  • Latest Posts

    • Virtual Lab : Get Your hands dirty with grep & RegEx
    • Quiz – Redhat Linux Intermediate Skills
    • Solaris Quiz – Managing Filesystems and Disk Devices
    • Test Your Understanding about Linux Fundamentals
    • Solaris Quiz – System Startup and Shutdown
    • Solaris Quiz – Software Management
    • RHEL 6 – ISCSI Administration Series – ISCSI Lun resize
    • RHEL 6 – ISCSI Administration Series – Configuring ISCSI Server and Client
    • SAN Storage Migration – Solaris with VxVM
    • RHEL 6.3 – LDAP Series – Part 4 : Troubleshooting
    • RHEL 6.3 – LDAP Series – Part 3 : LDAP Configuration With Encrypted Communication using TLS/SSL
    • RHEL 6.3 – LDAP Series – Part 2 : Configuration of Certification Authority for LDAP encryption.
    • RHEL 6.3 – LDAP Series – Part 1 : Implementation of LDAP Authentication
    • [ Updated with Analysis ] – Finding the Linux Performance Bottleneck !!!
    • VxVM Troubleshooting – Increasing the Size of Veritas Disk Private Region
    • Virtualization for Unix Administrators
    • VCS Learning – I/O Fencing In action [ Video ]
    • VCS Learning : Learn about Cluster Hearbeats
    • Happy New Year 2013, Thank You. >
    • Storage Operations – VxVM vs RHEL LVM2
    • Veritas Netbackup : Unable to detect Robot from master server after Veritas Netbackup upgrade to 7.1.0.4.
    • A tool that changes the way of system administration – PUPPET ( from puppetlabs)
    • Redhat Enterprise Linux : Yum Quick Reference
    • Redhat Enterprise Linux – Network Bonding – Quick Reference ( RHEL5 / RHEL6)
    • Redhat Enterprise Linux Networking Troubleshooting – Quick Reference
    • RedHat Linux Grub Loader – FAQ and Quick Reference
    • Redhat Linux LVM – FAQ & Quick Reference
    • RedHat Linux Kernel – FAQ and Quick Reference
    • Solaris host level SAN migration from Clariion to VMAX – Hands on Lab
    • Linux Samba Server integration with Windows Active Directory – Part 2
  • Site Members

    • Log in
Copyright © 2009 unixadminschool.com. All rights reserved.