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

General File System Configurations

File System Features

Volume Management

Support for Paged and Direct I/O

High Capacity

Fast File System Recovery

Metadata Storage

vnode Interface

Shared File System Support

Additional File System Features

Sun QFS File Systems Design Basics

Inode Files and File Characteristics

Specifying Disk Allocation Units

DAU Settings and File System Geometry

ms and ma File Systems

Dual and Single Allocation Schemes

Data Alignment

Stripe Widths on Data Disks

Stripe Widths on ms File Systems

Stripe Widths on ma File Systems Not Using Striped Groups

Stripe Widths on ma File Systems Using Striped Groups

Stripe Widths on Metadata Disks

File Allocation Methods

Metadata Allocation

Round-Robin Allocation

Striped Allocation

Striped Groups

Mismatched Striped Groups

Example of a Mismatched Striped Group

Per-Logical Unit Number (LUN) Allocation Control

2.  About the Master Configuration File

3.  mcf File Examples

4.  Configuring the File System

5.  Configuring a Shared 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

Sun QFS File Systems Design Basics

Sun QFS file systems are multi threaded, advanced storage management systems. To take maximum advantage of the software's capabilities, create multiple file systems whenever possible.

Sun QFS file systems use a linear search method for directory lookups, searching from the beginning of the directory to the end. As the number of files in a directory increases, the search time through the directory also increases. Search times can become excessive when you have directories with thousands of files. These long search times are also evident when you restore a file system. To increase performance and speed up file system dumps and restores, keep the number of files in a directory under 10,000.

The directory name lookup cache (DNLC) feature improves file system performance. This cache stores the directory lookup information for files whose paths are short (30 characters or less), removing the need for directory lookups to be performed on the fly.

Inode Files and File Characteristics

The types of files to be stored in a file system affect file system design. An inode is a 512-byte block of information that describes the characteristics of a file or directory. This information is allocated dynamically within the file system.

Inodes are stored in the .inodes file located under the file system mount point. Like a standard Oracle Solaris OS inode, a Sun QFS file system inode contains the file's POSIX standard inode times: file access, file modification, and inode changed times. A Sun QFS file system inode includes other times as well, as shown in the following table.

Table 1-1 Content of .inode Files

Time
Incident
access
Time the file was last accessed. POSIX standard.
modification
Time the file was last modified. POSIX standard.
changed
Time the inode information was last changed. POSIX standard.
attributes
Time the attributes specific to the file system were last changed.
creation
Time the file was created.
residence
Time the file changed from offline to online or vice versa.

Note - If the WORM-FS (write-once read-many) package is installed, the inode also includes a retention-end date. See Chapter 9, Configuring WORM-FS File Systems for more information.


.

Specifying Disk Allocation Units

Disk space is allocated in basic units of online disk storage called disk allocation units (DAUs). Whereas sectors, tracks, and cylinders describe the physical disk geometry, the DAU describes the file system geometry. Choosing the appropriate DAU size and stripe size can improve performance and optimize magnetic disk usage. The DAU setting is the minimum amount of contiguous space that is used when a file is allocated.

DAU Settings and File System Geometry

Sun QFS file systems use an adjustable DAU. You can configure the DAU to tune the file system to the physical disk storage device. This feature minimizes the system overhead caused by read-modify-write operations and is therefore particularly useful for applications that manipulate very large files. For information about how to control the read-modify-write operation, see Increasing File Transfer Performance for Large Files.

Each file system can have its own unique DAU setting even if it is one of several mounted file systems active on a server. The possible DAU settings differ depending on the type of file system you are using. The DAU setting is determined through sammkfs(1M) in Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual when the file system is created. It cannot be changed dynamically.

DAU settings work in conjunction with the device and file system definitions specified in the master configuration (mcf) file. For details about the mcf file, see Chapter 2, About the Master Configuration File and mcf(4) in Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual.

ms and ma File Systems

Two file allocation schemes are available to you:

For a simple Sun QFS file system, such as one on a single partition, the file system is defined in your mcf file by an Equipment Type value of ms. In the ms file system, the only device type allowed is type md, and both metadata and file data are written to the md devices. By default, the DAU on an md device is 64 kilobytes.

A more complex Sun QFS file system installed on multiple partitions is defined as Equipment Type ma in your mcf file. In an ma file system, metadata is written to mm devices, and data can be written to md, mr, or g XXX devices.

Within an ma file system you can mix devices as follows:

For more information about these device types, see Chapter 2, About the Master Configuration File.

Dual and Single Allocation Schemes

The md and mm devices use a dual allocation scheme, as follows:


Note - When using an ms file system, the stripe width should be set to greater than zero to stripe metadata information across the disk. However, you should read and understand Stripe Widths on Data Disks before setting the stripe width and DAU size.


Depending on the type of file data stored in the file system, a larger DAU size can improve file system performance significantly. For information about tuning file system performance, see Chapter 7, Advanced File System Topics.

Only ma Sun QFS file systems can include devices that use a single allocation scheme. These file systems consist of separate metadata devices and data devices, as follows:

The DAU size for file systems that use mr and g XXX data devices is configurable. The possible DAU sizes that can be used on data devices depend on the Equipment Type value assigned to each data device in the mcf file. The following table shows these DAU sizes.

Table 1-2 Equipment Type Values and DAU Sizes

Equipment Type
DAU Sizes
mr or gXXX
You can specify different DAU sizes by adjusting the default size in 8-kilobyte increments. The DAU size can be from 8 kilobytes to 65,528 kilobytes (64 megabytes). The default DAU size is 64 kilobytes for mr or 256 kilobytes for gXXX.
md
This type of device uses a dual allocation scheme. The DAU can be configured to be 16, 32, or 64 kilobytes in length. The default DAU size is 64 kilobytes. An md device in an ma file system is used to store data only, not metadata. An md device in an ms file system is used to store both file data and metadata.

Note - If you created your file system using version 3.5 of the software, or built it using the sammkfs compatibility mode flag in version 4 of the software, you might be using a version 1 superblock. In the version 1 superblock, mm devices do not use the dual allocation scheme, and the allocation for mm devices is 16 kilobytes. Only a version 2 superblock enables you to define md devices in a Sun QFS file system. To find out whether you are using a version 1 superblock, use the samfsinfo command.


Data Alignment

Data alignment refers to matching the allocation unit of the RAID controller with the allocation unit of the file system. The optimal file system alignment formula is as follows:

allocation-unit = RAID-stripe-width x number-of-data-disks

For example, suppose a RAID-5 unit has nine disks, with one of the nine being the parity disk, making the number of data disks eight. If the RAID stripe width is 64 kilobytes, then the optimal allocation unit is 64 multiplied by 8, which is 512 kilobytes.

Data files are allocated as striped or round-robin through each striped group (gXXX) or data disk (mr or md) within the same file system.

A mismatched alignment hurts performance because it can cause a read-modify-write operation.

Stripe Widths on Data Disks

Stripe width defaults differ between ms and ma file systems. The stripe width is specified by the -o stripe= n option in the mount command. If the stripe width is set to 0, round-robin allocation is used.

Stripe Widths on ms File Systems

On ms file systems, the stripe width is set at mount time. The following table shows default stripe widths.

Table 1-3 ms File System Default Stripe Widths

DAU
Default Stripe Width
Amount of Data Written to Disk
16 kilobytes
8 DAUs
128 kilobytes
32 kilobytes
4 DAUs
128 kilobytes
64 kilobytes (default)
2 DAUs
128 kilobytes

For example, if you run sammkfs command with default settings, the default large DAU is 64 kilobytes. If no stripe width is specified when the mount command is issued, the default is used, and the stripe width set at mount time is 2.


Note -


Stripe Widths on ma File Systems Not Using Striped Groups

On ma file systems, the stripe width that is set at mount time depends on whether striped groups are configured. A striped group is a collection of devices that are striped as a group. For more information about striped groups, see File Allocation Methods. This section describes stripe widths for Sun QFS file systems that are configured without stripe groups.

If striped groups are not configured, the DAU and stripe width relationships on ma file systems are similar to those for ms file systems. The difference is that DAUs larger than 64 kilobytes are possible and that the DAU is configurable in 8-kilobyte blocks. The maximum DAU size is 65,528 kilobytes.

By default, if no stripe width is specified, the amount of data written to disk is at or near 128 kilobytes. Sun QFS file systems are most efficient if write operations write at least one whole stripe per I/O request. The following table shows the default stripe widths.

Table 1-4 Default Stripe Widths for ma File Systems Not Using Striped Groups

DAU
Default Stripe Width
Amount of Data Written to Disk
16 kilobytes
8 DAUs
128 kilobytes
24 kilobytes
5 DAUs
120 kilobytes
32 kilobytes
4 DAUs
128 kilobytes
40 kilobytes
3 DAUs
120 kilobytes
48 kilobytes
2 DAUs
96 kilobytes
56 kilobytes
2 DAUs
112 kilobytes
64 kilobytes
2 DAUs
128 kilobytes
72 kilobytes
1 DAU
72 kilobytes
128 kilobytes
1 DAU
128 kilobytes
> 128 kilobytes
1 DAU
DAU size
Stripe Widths on ma File Systems Using Striped Groups

If striped groups are configured for your file system, the minimum amount of space allocated is the DAU multiplied by the number of devices in the striped group. The amount of the allocation can be very large with striped groups.

When striped groups are used, data is written to several disk devices at once, as if they were one device. Allocations on striped groups are equal to the DAU size multiplied by the number of elements in the striped group.

The -o stripe= n mount option determines the number of allocations that occur on each stripe group before the allocation moves to a different striped group. If a file system is mounted with -o stripe=0, the allocation is always to one striped group.

By default, the setting is -o stripe=0, which specifies the round-robin allocation method. The setting can be as low as -o stripe=0 (which disables striping) or as high as -o stripe=255. The system sets -o stripe=0 if mismatched striped groups are present, in which case a file can reside on only one striped group.

For more information, see File Allocation Methods.

Stripe Widths on Metadata Disks

You can use the -o mm_stripe= n option to the mount_samfs command to stripe metadata information on the metadata disk. The default stripe width is -o mm_stripe=1, which specifies that the file system write one 16-kilobyte DAU to a metadata disk before switching to the next metadata disk. The small 4-kilobyte DAU is used for metadata disks.

By default, if you have multiple metadata devices, metadata is allocated as specified in the - o mm_stripe= n option to the mount command. The setting can be as low as -o mm_stripe=0, which disables striping, or as high as -o mm_stripe=255.