JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun QFS File System 5.3 Configuration and Administration Guide     Sun QFS and Sun Storage Archive Manager 5.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  File System Overview

2.  About the Master Configuration File

3.  mcf File Examples

4.  Configuring the File System

5.  Configuring a Shared File System

Using Shared QFS With NFS

How to Configure Shared Sun QFS With NFS

Mounting and Unmounting Shared File Systems

How to Mount a Shared File System

How to Unmount a Shared File System

Adding or Removing a Client Host

How to Add a Client Host to a Shared File System

How to Remove a Client Host From a Shared File System

Updating the mcf file in a Shared File System Environment

Creating the Local Hosts Configuration File

Changing the Metadata Server

Changing the Metadata Server in a Shared File System Environment

How to Change the Metadata Server When the Metadata Server Is Available

How to Change the Metadata Server When the Metadata Server Is Not Available

Changing the Metadata Server in an Archiving Environment

How to Change the Metadata Server in an Archiving Environment

Converting an Unshared File System to a Shared File System

How to Convert an Unshared Metadata Server to a Shared Metadata Server

How to Add a Client to the Metadata Server

Converting a Shared File System to an Unshared File System

How to Remove a Client From a Shared File System

How to Convert a Shared Metadata Server to an Unshared System

Client-Server Communications in a Shared File System

Adding Disk Cache to a File System

How to Add Disk Cache to a File System

Recreating a File System

How to Back Up and Re-Create a File System

6.  Administering File System Quotas

7.  Advanced File System Topics

8.  SMB Service in SAM-QFS

9.  Configuring WORM-FS File Systems

10.  Tunable Parameters

11.  Using QFS File Systems with SANergy (SAN-QFS)

12.  Mount Options in a Shared File System

13.  Using the samu Operator Utility

Mounting and Unmounting Shared File Systems

When you mount or unmount a shared file system, the order in which you mount or unmount the metadata server and the clients is important.

For failover purposes, the mount options should be the same on the metadata server and all potential metadata servers. For example, you can create a samfs.cmd file that contains the mount options and copy that file to all of the hosts.

For more information about mounting shared file systems, see Chapter 12, Mount Options in a Shared File System and the mount_samfs(1M) man page.

How to Mount a Shared File System

  1. Become superuser on the metadata server and on all the client hosts.
  2. Mount the metadata server.

    Mount the file system on the metadata server before you mount the file system on any client hosts. For example:

    # mount -F samfs qfs1 /qfs -o shared

    Tip - If the mount information has been placed in /etc/vfstab, you can use the simpler command:

    # mount qfs1

    For information about the /etc/vfstab file and other mount options, see Chapter 8, Setting Up Mount Parameters and Initializing the File System Environment, in Sun QFS and Sun Storage Archive Manager 5.3 Installation Guide.


  3. Mount the client hosts.

    You can mount the file system on the client hosts in any order. For more information, see the mount(1M) man page.

How to Unmount a Shared File System


Note - If the file system is shared through NFS or SAMBA, unshare the file system before you unmount it.


  1. Unmount the file system on every participating client host.

    For example:

    client# umount /samqfs

    If necessary, use the -f option to the umount command to force a file system to unmount.


    Note - Forced unmount of a shared client might not complete if the file system is not mounted on the metadata server.


    For more information on unmounting procedures, see Unmounting File Systems in Sun QFS and Sun Storage Archive Manager 5.3 Installation Guide and the umount(1M) man page.

    You can also use the -o await_clients# flag with the umount command to cause the unmount process to wait a specified number of seconds (#) for clients to unmount. At the end of the waiting period, or as soon as all clients have unmounted, the unmount proceeds. If this argument is specified for a non-shared file system, or if the host is not the metadata server for the shared file system, the option will be ignored.

    This flag can also be used in conjunction with the -f option. In this case, the software will wait for the specified time period before forcing the unmount.

  2. Unmount the file system on the metadata server.
    metaserver# umount /samqfs

    At unmounting time, several conditions can be present in a file system that might require you to issue the umount command a second time.


    Note - If the file system still does not unmount, use unshare, fuser, or another command in conjunction with the umount command.


See Also

For more information on unmounting procedures, see Unmounting File Systems in Sun QFS and Sun Storage Archive Manager 5.3 Installation Guide and the umount(1M) man page.