OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Community Group nfs
:
NFS Test Suites
>
NFSv4 Test Suite
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
NFSv4 Test Suite
Hide Line numbers
1: = NFSv4 Test Suite 2: 3: == Introduction 4: 5: The NFSv4 test suite (**nfsv4**) is one of the test suites used to functionally test the NFSv4.0 protocol during and after the project development in Solaris 10. This test suite is independent from other Solaris test harnesses. Users can easily build and execute the tests (or a subset of the tests), and generate summary results using the suite source tarball from the download center. 6: 7: The [[source tarball>>http://dlc.sun.com/osol/test/downloads/current/]] also includes the nfsv4shell, the TCL tool that can be used to generate different NFSv4.0 compound operations to test against the NFSv4.0 server, which we found it as very useful for the negative testing and to verify that the client has correct behavior for the server’s responses. 8: 9: == The HowTo’s 10: 11: To start, download the nfsv4 [[source tarball>>http://dlc.sun.com/osol/test/downloads/current/]] to a directory in an [[ OpenSolaris>>Main.downloads]] system and unzip it. For example, assuming the downloaded file is at /export: 12: 13: //**cd /export**// 14: //**bzcat stcnv-nfsv4-src-YYYYMMDD.tar.bz2 | tar -xvf - **// 15: 16: Then use the /usr/sfw/bin/gcc compiler to **build the suite**: 17: 18: //**cd usr/src/suites/nfs/nfsv4**// 19: // **make install __GNUC=""**// 20: 21: If there is no errors, the test executables will be installed in a directory under the "proto" tree, e.g. your_WS_ROOT/proto/root_`uname -p`/suites/nfs/nfsv4 directory . This will be the TESTROOT for the execution, in the NFSv4 client, we call this the localhost. This TESTROOT includes executables of test sub directories that group the tests in those areas e.g.: 22: 23: **acl basic_ops named_attrs num_attrs other_tests recovery srv_namespc ** 24: 25: and other tools for setup and execution. 26: 27: This test suite is fully automated, where a few simple commands will setup the suite, run the tests, cleanup the systems, and generate results. Some prerequisites are required, but usually the default values will be used for the standard runs. Check out a file named nfs4test.env under $TESTROOT for the variables and the default values. 28: 29: Although it requires 2 test systems, including the localhost as NFSv4 client, the NFSv4 server. The client should be able to "rsh" to the server for the test setup. 30: 31: For example, the following commands will run the tests in the basic_ops and acl subdirs: 32: 33: // **cd WS_ROOT/proto/root_`uname -p`/suites/nfs/nfsv4**// 34: // **SERVER=my_server_hostname; export SERVER**// 35: // **./runit -bl**// 36: 37: where the “-b” is for the “basic_ops” tests and “-l” is for the “acl” tests. Or you can type “./runit -x” to have it list the available test subdirs. Test results by default will be written to /usr/tmp/results directory. 38: 39: Users may comment out any subdirs they do not want to compile or user by modifying the values of “SUBDIRS=” in the .../nfsv4/tests/Makefile in the source tree when building the suite, or use options from "runit" or "runtests" scripts. 40: 41: Currently the tests are only running well with OpenSolaris systems, e.g. clients and servers. This is due to the limitations on the remote server configuration (where tests use "rsh"s). 42: 43: All tests can also run in the OpenSolaris non-global zones, with a regular server running OpenSolaris 10 and above. 44: 45: == Test Cases Overview 46: 47: This test suite is divided into different functional subdirs to test different areas of the NFSv4 client and server. Tests are written in C, ksh and TCL and automated for easy execution. The subdirs are: 48: 49: * acl 50: This sub-directory consists of the "srv_tests" and "cmd_tests". The test cases under the "srv_tests" use the nfsv4shell toolto send over-the-wire different Setattr/Getattr operations with ACL attributes to verify correct server behavior. The test cases under the "cmd_tests" use user level commands getfacl(1) and setfacl(2) to test ACL over NFSv4 filesystem. 51: Note, since there are tests for acl(2)/facl(2) written in other Solaris test suite (mstc), which can be run over NFS as well, we do not include those tests in this suite. We have planned to develop new tests for "chmod(1)" with ACL operation, for NFSv4 over ZFS filesystems. 52: * basic_ops 53: There are 31 sub-directories included in the directory. Each of these subdirs is related to the NFSv4 operations from RFC3530. All tests are TCL scripts using the nfsv4shell tool to test the NFSv4 server behavior. Many of the tests are negative tests to send over-the-wire with illegal compound operations to ensure server is not surprised and responds with correct errors. 54: * named_attrs 55: This directory consists of tests for testing the NFSv4 named attributes. There are TCL tests with nfsv4shell to test Nfsv4 server directly with OPENATTR op, and ksh tests using runat(1) command in OpenSolaris. 56: * num_attrs 57: This directory consists of tests for testing the NFSv4 mandatory and recommended attributes. These are TCL tests with GETATTR op to verify the attributes returned by server are correct. 58: * srv_namespc 59: This directory consists of tests to test the server name space, and the NFSv4 pseudo filesystem. Some tests specifically verify the pseudo nodes used in building the server filesystem tree, and make sure client and traverse the tree from server’s root filesystem. 60: * other_tests 61: We put the other miscellaneous tests into this directory, which include some I18N tests and "nobody" (NFSv4 uid/gid domain name mapping) tests. The "domain" subdir in this directory consists of tests to verify the generation of the NFSMAPID_DOMAIN from /etc/default/nfs file, NIS and DNS, in OpenSolaris system. 62: * recovery 63: This directory consists tests for testing recovery (such as reboot, restart nfsd in server) of NFSv4 client and server. There are mostly "open" and "lock" tests to verify states recovered correctly. There are also tests for filesystem unshared and "open downgrade" tests. This subdir requires 3 test systems to run, and both the SERVER and CLIENT2 will be rebooted. 64: 65: == Test Results 66: 67: The tests can be run with different configurations, such as: server using UFS or ZFS filesystems, client (localhost) as system (in global zone), or in a non global zone. Test result baselines are different depending on how the tests are configured and run. 68: 69: The following is the baseline results for tests run from a client’s global zone (the system) with the server using LOFI (UFS) and ZFS filesystems. The results with NOTINUSE/UNTESTED/UNSUPPORTED status are due to the test assertions are either not runable in current test environment, or not supported by Solaris, or scenarios cannot be tested at this time. 70: 71: : | 72: Test subdirs / Server test filesystem 73: | 74: LOFI/UFS 75: | 76: ZFS 77: | 78: **acl** 79: | 80: PASS: 241 81: | 82: PASS: 241 83: | 84: **basic_ops** 85: | 86: PASS: 708; UNSUPPORTED: 16 NOTINUSE: 5; UNTESTD: 4 87: | 88: PASS: 707; UNSUPPORTED: 16 NOTINUSE: 5; UNTESTD: 4; FAIL: 1 89: | 90: **named_attrs** 91: | 92: PASS: 22 93: | 94: PASS: 22 95: | 96: **num_attrs** 97: | 98: PASS: 66 99: | 100: PASS: 66 101: | 102: **srv_namespc** 103: | 104: PASS: 43; FAIL: 2 105: | 106: PASS: 43; FAIL: 2 107: | 108: **other_tests** 109: | 110: PASS: 128; UNTESTED: 2 FAIL: 7 UNRESOLVED: 3 111: | 112: PASS: 128; UNTESTED: 2 FAIL: 7 UNRESOLVED: 3 113: | 114: **recovery** 115: | 116: PASS: 13 117: | 118: PASS: 13 119: 120: Note: the above results obtained from client and servers running OpenSolaris 2008.11 release . The details of the knonw failures listed above can be found from the "Test Results and Baselines" section from the [[Download Center>>http://dlc.sun.com/osol/test/downloads/current/]] .
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Community Group nfs Pages
Files
NFS Test Suites
FNFS automounter test suite
NFSv4 Test Suite
NFS sharemnt Test Suite