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

Document Information

Preface

1.  About Sun QFS and Sun Storage Archive Manager

2.  Planning Your Environment

3.  Preparing for Installation

4.  Release Package Contents, Directories, and Files

5.  Installing Sun QFS and SAM-QFS

6.  Installing and Configuring SAM-QFS Manager

7.  Configuring the File System Environment

8.  Setting Up Mount Parameters and Initializing the File System Environment

9.  Backing Up SAM-QFS Data and Files

10.  Upgrading Sun QFS and SAM-QFS

11.  Uninstalling the SAM-QFS Manager Software

12.  Installing Sun QFS and Sun Storage Archive Manager -- Quick Start

Before You Begin

Installing Packages

How to Install Packages

Enabling SAM-QFS Logging

How to Enable SAM-QFS Logging

Enabling SAM-QFS Daemon Tracing

How to Enable SAM-QFS Daemon Tracing

Setting Up the Root Path Variable

Setting Up a Stand-Alone QFS

How to Set Up Stand-Alone QFS

Setting Up a Shared QFS

How to Set Up Shared QFS

Enabling the Network Time Protocol Daemon (Shared QFS)

How to Enable the Network Time Protocol Daemon (Shared QFS)

Setting Up the Network File System

How to Set Up the Network File System

Installing the SAM-QFS Manager

How to Install the SAM-QFS Manager

Commands to Monitor a Shared File System

Setting Up a Shared QFS

This section describes how to set up a shared QFS.

How to Set Up Shared QFS

  1. Create the mcf file.

    The following example uses sqfs1 and sqfs2 as file system names.

    # Equipment        Eq Eq Family Dev Additional
    # Identifier       Nm Tp Set    St  Parameters
    # ---------------- -- -- ------ --- ----------
    #      
    sqfs1                            10 ma qfs3 - shared
    /dev/dsk/c2t50020F2300000C98d0s2 11 mm qfs3 -
    /dev/dsk/c2t50020F2300004921d0s2 12 mm qfs3 -
    /dev/dsk/c2t50020F2300000C98d0s3 13 mr qfs3 -
    /dev/dsk/c2t50020F2300004921d0s3 14 mr qfs3 -
    #
    sqfs2                                             20 mb qfs4 - shared
    /dev/dsk/c2t50020F2300000C98d0s4                  21 mm qfs4 -
    /dev/osd/osd0100080020E1381F00002A00479F7D98,root 22 o1 qfs4 -
    /dev/osd/osd010000144F94A14C00002A00479F4EB4,root 23 o1 qfs4 -

    Note - For the ms file system type in Shared QFS, set stripe=2 either in /etc/vfstab or samfs.cmd so that metadata is distributed across all devices.


  2. Create the hosts files.
    1. Copy the example hosts file.
      # cp -i /opt/SUNWsamfs/examples/hosts* .
    2. Create the hosts file for each file system.

      A hosts file is required for each file system. You must include a server priority for any server that will be a metadata server.

      The following example is for the hosts.sqfs1 file.

      #
      # Host Name  Network Interface  Server Priority Unused Server
      # -----------------------------------------------------------
      kingkong    kingkong-priv,kingkong   1      -    server
      godzilla    godzilla-priv,godzilla   2      -
      nebula      nebula-priv,nebula       -      -
      cosmic      cosmic-priv,cosmic       -      -

      The following example is for the hosts.sqfs2 file.

      #
      # Host Name  Network Interface   Server Priority Unused    Server
      # ---------------------------------------------------------------
      walleye      walleye-priv0,walleye      1       -          server
      bass         bass-priv0,bass            2       -
      northern     northern-priv0,northern    -       -
      muskie       muskie-priv0,muskie        -       -
      mallard      mallard-priv0,mallard      -       -
      wood         wood-priv0,wood            -       -
      ruddy        ruddy-priv0,ruddy          -       -
      mandarin     mandarin-priv0,mandarin    -       -
  3. Create the vfstab file. The file contents should be similar to the following example.
    #device  devicemountFSfsckmount    mount
    #to mount to fsckpointtypepassat bootoptions
    #
    sqfs1     -/sqfs1samfs-noshared
    sqfs2     -/sqfs2samfs-yesshared,stripe=2,bg
  4. Create the mount points and mount the file systems.
    1. Create the mount points and set file permissions on the mount points.

      Note - You must create the mount points and set appropriate permissions on all hosts that are part of the shared file system.


      The following example commands uses sqfs1 as the file system name.

      # mkdir /sqfs1
      # chmod 755 /sqfs1
      # mkdir /sqfs2
      # chmod 755 /sqfs2
    2. Verify that SAM-QFS is correctly configured in the /etc/inet/services file.

      For example, use the tail command as shown in the following example:

      # tail /etc/inet/services

      The result of the tail command shows the appropriate SAM-QFS service, similar to the following example:

      # sam-qfs   7105/tcp# SAM-QFS
    3. Reconfigure the sam-fsd daemon based on the new mcf file and related configuration changes.
      # samd config
    4. Create the shared file systems using the mount points that you defined above.

      For example:

      # sammkfs -S sqfs1
      # sammkfs -S sqfs2

      Tip - The -S option identifies the file system as a shared file system.


    5. Mount the new file system on the metadata server.

      For example:

      server# mount sqfs1
      server# mount sqfs2
    6. Mount the new file systems on the clients.

      For example:

      client# mount sqfs1
      client# mount sqfs2
    7. Confirm that space has been allocated for the file systems.
      df -1h
    8. Run the following if the configuration changes:
      # samd config