C H A P T E R  3

Sun StorEdge QFS Initial Installation Procedure

This chapter describes the procedure for installing and configuring Sun StorEdge QFS standalone software for the first time. Use this procedure if this is the initial installation of the Sun StorEdge QFS standalone software package at your site. If you are upgrading Sun StorEdge QFS software on an existing server, see the Sun StorEdge QFS Upgrade Procedure.

The procedure in this chapter describes obtaining the packages, installing the software packages on your server or node, and configuring the software to match the hardware at your site.

You can install and configure your Sun StorEdge QFS file system entirely using Solaris operating system (OS) commands, or you can use a combination of commands and the SAM-QFS Manager, which is a graphical user interface (GUI) configuration tool, to complete the procedure. Enabling the SAM-QFS Manager (Optional) describes enabling the tool and shows the configuration steps you can perform by using the tool.

You must be logged in as superuser to complete most of the procedures in this chapter.


Ensuring that the Installation Prerequisites Are Met

The chapter called System Requirements and Preinstallation Tasks describes the items you need to verify before you install and configure the Sun StorEdge QFS software. If you have not yet completed the system verification steps, complete them now before you proceed. The steps described in that chapter for verifying the system requirements and performing preinstallation tasks are as follows:


Adding the Packages on the Sun StorEdge QFS Server

The Sun StorEdge QFS software uses the Sun Solaris packaging utilities for adding and deleting software. The pkgadd(1M) utility prompts you to confirm various actions necessary to install the packages.

1. Become superuser.

2. Use the cd(1) command to change to the directory where the software package release files reside.

When you completed your preinstallation tasks, you obtained the release files as described in Obtaining the Release Files. Use the cd(1) command to change to the directory that contains the release files. Changing to the appropriate directory differs, depending on your release media, as follows:

3. Use the pkgadd(1M) command to add the SUNWqfsr and SUNWqfsu packages.

For example:

# pkgadd -d . SUNWqfsr SUNWqfsu

4. Enter yes or y as the answer to each of the questions.


Enabling the Sun StorEdge QFS Software License

You need a license key to run the Sun StorEdge QFS software. For information on obtaining license keys, see Obtaining a Software License Key.

The Sun StorEdge QFS file system uses an encrypted license key. The license key consists of an encoded alphanumeric string.


procedure icon  To Enable the Sun StorEdge QFS Software License

1. Create the /etc/opt/SUNWsamfs/LICENSE.4.1 file.

2. Starting in column one, place the license key you have obtained from your ASP or from Sun Microsystems on the first line in the /etc/opt/SUNWsamfs/LICENSE.4.1 file.

The key must start in column one. No other keywords, host IDs, comments, or other information can appear in the /etc/opt/SUNWsamfs/LICENSE.4.1 file.


Setting Up PATH and MANPATH Variables


procedure icon  To Set Up PATH and MANPATH Variables

1. For users who need to access the Sun StorEdge QFS user commands (for example, sls(1)), add /opt/SUNWsamfs/bin to the users' PATH variables.

2. For users, such as superusers, who need to access the administrator commands, add /opt/SUNWsamfs/sbin to the PATH variable.

3. For users who need to access the Sun StorEdge QFS man pages, add /opt/SUNWsamfs/man to the MANPATH variable.

4. Use vi(1) or another editor to edit your system setup files to include the correct paths to commands and man pages.

a. In the Bourne or Korn shells, edit the .profile file, change the PATH and MANPATH variables, and export the variables.

CODE EXAMPLE 3-1 shows how your .profile file might look after editing.

CODE EXAMPLE 3-1 Finished .profile File
PATH=$PATH:/opt/SUNWsamfs/bin:/opt/SUNWsamfs/sbin 
MANPATH=$MANPATH:/opt/SUNWsamfs/man
export PATH MANPATH

b. In the C shell, edit the .login and .cshrc files.

When you are finished editing, the path statement in your .cshrc file might look like the following line:

set path = ($path /opt/SUNWsamfs/bin /opt/SUNWsamfs/sbin)

CODE EXAMPLE 3-2 shows how the MANPATH in your .login file might after you are finished editing.

CODE EXAMPLE 3-2 Finished MANPATH in the .login File
setenv MANPATH /usr/local/man:opt/SUNWspro/man:/$OPENWINHOME/\
share/man:/usr/share/man:/opt/SUNWsamfs/man


Rebooting the System


procedure icon  To Reboot the System

single-step bulletReboot the server by issuing the touch(1) and init(1M) commands.

CODE EXAMPLE 3-3 shows the commands to use to reboot.

CODE EXAMPLE 3-3 Commands to Reboot the Server
# touch /reconfigure
# init 6

Changes to the /etc/name_to_sysnum file are enabled at this time.


Enabling the SAM-QFS Manager (Optional)

Perform this step if you want to be able to use the SAM-QFS Manager to configure, control, monitor, or reconfigure your Sun StorEdge QFS environment.

The procedures in this section are as follows:

In addition to the information in this section, this manual's appendix, SAM-QFS Manager Software Notes, describes other aspects of using the SAM-QFS Manager.


procedure icon  To Install the SAM-QFS Manager Software

1. Ensure that you have met the install requirements in Verifying Requirements for the SAM-QFS Manager (Optional).

2. Log in to the server that you want to use as the management station.

This can be the same server upon which you installed the SUNWsamfsr and SUNWsamfsu packages.

3. Become superuser.

4. Use the cd(1) command to change to the directory where the software package release files reside on your server.

When you completed your preinstallation tasks, you obtained the release files as described in Obtaining the Release Files. Use the cd(1) command to change to the directory that contains the release files.

For example, if you obtained the release files from a CD-ROM, use the following command:

# cd /cdrom/cdrom0

If you downloaded the release files, change to the directory to which you downloaded the files.

5. Execute the samqfsmgr_setup script to install the SAM-QFS Manager software.

For example:

# samqfsmgr_setup

6. Answer the questions as prompted by the samqfsmgr_setup script.

During the installation procedure, you are asked to answer questions about your environment. The script prompts you to enter passwords for the SAMadmin role and for the samadmin and samuser login IDs.

The samqfsmgr_setup script automatically installs the following:

After installing the packages, it starts the TomCat Web Server, enables logging, and creates the SAMadmin role.

7. Log into the Sun StorEdge QFS server and become superuser.

8. Use the ps(1) and grep(1) commands to make sure that the rpcbind service is running.

For example:

# ps -ef | grep rpcbind

9. Examine the output from the preceding commands.

The output should contain a line similar to the following:

root   269     1  0   Feb 08 ?        0:06 /usr/sbin/rpcbind

If rpcbind does not appear in the output, enter the following command:

# /usr/sbin/rpcbind

10. Start the sam-mgmtrpcd daemon. (Optional)

Perform this step if you did not elect to have this daemon started automatically.

Enter the following command to start the sam-mgmtrpcd daemon:

# /opt/SUNWsamfs/sbin/sam-mgmtrpcd

The system automatically restarts this daemon every time you reboot the server. If you kill this daemon, it restarts.

The syslogd daemon performs detailed tracing of the native code. For more information on tracing, see SAM-QFS Manager Software Notes.


procedure icon  To Invoke the SAM-QFS Manager for the First Time

After the SAM-QFS Manager is installed, you can log in to the software using two possible user names (samadmin and samuser) and two different roles (SAMadmin or no role). The tasks you can perform using the SAM-QFS Manager differ depending on the user name and the role you assume at login. These differences are as follows:

Only the Sun StorEdge QFS adminstrator should log in using the SAMadmin role. All other users should log in as samuser.

With regard to system administration, be aware that the Solaris OS root user on the server that hosts the SAM-QFS Manager is not necessarily the administrator of the SAM-QFS Manager. Only samadmin has administrator priviledges for the SAM-QFS Manager application. The root user is the administrator of the management station.

Perform this procedure if you want to invoke the SAM-QFS Manager and use it, rather than commands, to perform some of the configuration steps.

1. Log in to the management station web server.

2. From a web browser, invoke the SAM-QFS Manager software.

The URL is as follows:

https://hostname:6789

For hostname, type the name of the host. If you need to specify a domain name in addition to the host name, specify the hostname in this format: hostname.domainname.

Note that this URL begins with https, not http. The Sun Web Console login screen appears.

3. At the User Name prompt, enter samadmin.

4. At the Password prompt, enter the password you entered when you answered questions during the the samqfsmgr_setup script's processing in To Install the SAM-QFS Manager Software.

5. Click on the SAMadmin role.

Only the Sun StorEdge QFS administrator should ever log in with the SAMadmin role.

6. At the Role Password prompt, enter the password you entered in Step 4.

7. Click on Log In.

8. Click on Sun StorEdge SAM-QFS Manager 1.0.

You are now logged into the SAM-QFS Manager.


procedure icon  To Use the SAM-QFS Manager for Configuration

This manual guides you through the configuration process using Solaris OS commands, but you can also use the SAM-QFS Manager, instead of commands, to accomplish many of the tasks.

1. Click on Help, in the upper right corner of the screen, to access the SAM-QFS Manager online documentation.

2. Complete the configuration tasks.

TABLE 3-1 shows the rest of the steps you must perform to install and configure a Sun StorEdge QFS file system and the means by which you can accomplish each task.

Perform the configuration steps in TABLE 3-1 in the order they appear. You can open a terminal window next to the SAM-QFS Manager window for use when you have to alternate between using commands and using the SAM-QFS Manager.

TABLE 3-1 Sun StorEdge QFS Installation Tasks

Task

Accomplish Through GUI

Accomplish Through Commands

Defining the Sun StorEdge QFS Configuration by Creating the mcf File

Yes

Yes

Editing the defaults.conf File (Optional)

No

Yes

Verifying the License and mcf Files

No

Yes

Creating the samfs.cmd File (Optional)

Yes

Yes

Updating the /etc/vfstab File and Creating the Mount Point

Yes

Yes

Initializing the File System

Yes

Yes

Mounting the File System

Yes

Yes

Sharing the File System With NFS Client Systems (Optional)

No

Yes

Mounting the File System on the NFS Client Systems (Optional)

No

Yes

Establishing Periodic Dumps Using qfsdump(1M)

No

Yes

Backing Up Configuration Files (Optional)

No

Yes

Configuring the Remote Notification Facility (Optional)

No

Yes

Adding the Administrator Group (Optional)

No

Yes

Configuring System Logging

No

Yes

Configuring Other Sun StorEdge Products (Optional)

Not applicable

Not applicable


TABLE 3-1 describes several installation steps as optional. The only required installation steps that you still must perform using Solaris OS commands are as follows:

The other installation steps in TABLE 3-1 are necessary -- or are highly recommended-- depending on your environment.


Defining the Sun StorEdge QFS Configuration by Creating the mcf File

Each Sun StorEdge QFS environment is unique. The system requirements and hardware used differ from site to site. It is up to you, the system administrator at your site, to set up the specific configuration for your Sun StorEdge QFS environment.

The master configuration file, /etc/opt/SUNWsamfs/mcf, defines the topology of the equipment managed by the Sun StorEdge QFS file system. This file specifies the devices and file systems included in the environment. You assign each piece of equipment a unique Equipment Identifier in the mcf file.

To configure Sun StorEdge QFS devices, create an mcf file in /etc/opt/SUNWsamfs/mcf that contains a line for each device and family set in your configuration. The mcf contains information that enables you to identify the disk slices to be used and to organize them into Sun StorEdge QFS file systems.

There are examples of mcf files in /opt/SUNWsamfs/examples.



Note - For information on file system design considerations, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide.



The following section describe activities related to creating and maintaining the mcf file:



Note - The instructions for creating the mcf file differ depending on whether you are creating a Sun StorEdge QFS environment or a Sun SAM-QFS environment.

If you are installing the Sun StorEdge QFS software, all configuration instructions are contained in this section.

If you are creating a Sun SAM-QFS environment, the instructions for configuring the file system portion of the mcf file are contained in this section. The instructions for library and drive configuration are contained in Defining the Sun StorEdge SAM-FS Configuration by Creating the mcf File.




procedure icon  To Create an mcf File

When you create the mcf file, follow these guidelines:

CODE EXAMPLE 3-4 shows the fields of each line entry in the mcf file.

CODE EXAMPLE 3-4 mcf File Fields
#
# Sun QFS file system configuration
#
# Equipment       Equip  Equip Fam   Dev    Additional
# Identifier      Ord    Type  Set   State  Parameters
# ----------      -----  ----- ----  -----  ----------

TABLE 3-2 shows the information to be contained in each field and whether or not the field is a required or optional field.

TABLE 3-2 Sun StorEdge QFS mcf File Fields

Field

Description

Equipment Identifier

Required. Enter either the name of the file system or a /dev/dsk entry for a disk partition or disk slice.

If this field contains the name of a file system, it is limited to 31 characters in length. Enter this same file system name in the Family Set fields for all devices to be included in this file system.

If this field contains an entry for a disk partition or disk slice, it is limited to 127 characters in length, and the format is as follows:

  • For raw partitions on a formatted disk: /dev/dsk/cntndnsn
  • For volumes controlled by a Volume Manager: /dev/vx/... or /dev/md/...

Equipment Ordinal

Required. Enter a unique integer such that 1 less than or equal eq_ord less than or equal 65534.

Equipment Type

Required. Enter the code for the Equipment Type, as follows:

  • The ma Equipment Type defines a file system in a Sun StorEdge QFS file system.
  • The mm Equipment Type defines a metadata device.
  • The mr and md Equipment Type defines a round-robin or striped data device.
  • The gXXX Equipment Type defines a striped group data device. Striped groups start with the letter g, followed by a 1-, 2-, or 3-digit integer. For example, g2 or g14 are both valid values for a striped group.

For more information on Equipment Types, see the mcf(4) man page.

Family Set

Required. Enter the name of the file system to which this device belongs. The system organizes all devices with the same Family Set name into a Sun StorEdge QFS file system. Limited to 31 characters.

If this line is the first in a series of lines that defines devices for a particular file system, enter the same name you entered in the Equipment Identifier field.

If this line defines a device within a file system, enter the file system name in this field.

Device State

Optional. If specified, this field should contain either the keyword on or a dash character (-). Enter a state for the device for when the Sun StorEdge QFS file system is initialized.

Additional Parameters

Optional. This field is used only if you are running the Sun StorEdge QFS shared file system. The Sun StorEdge QFS file system must be configured and tested on a host system prior to configuring the Sun StorEdge QFS shared file system. For information on configuring the Sun StorEdge QFS shared file system, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide.


For more information on this file, see the mcf(4) man page. There is an example of an mcf file located in /opt/SUNWsamfs/examples/mcf.



caution icon

Caution - Make sure you specify disk partitions that are not in use on your system. Do not use overlapping partitions. If a Sun StorEdge QFS file system attempts to use a partition that is already in use, the software usually issues a message to indicate that the device is busy.

If you give the wrong partition names, you risk damaging user or system data. This is true when creating any type of file system. The risk is greatest if the partition named contains a UFS file system that is not mounted currently.



CODE EXAMPLE 3-5 shows file system entries in an mcf file for a Sun StorEdge QFS file system.

CODE EXAMPLE 3-5 Example Sun StorEdge QFS mcf File
#
# Sun QFS file system configuration
#
# Equipment       Equip  Equip Fam   Dev    Additional
# Identifier      Ord    Type  Set   State  Parameters
# ----------      -----  ----- ----  -----  ----------
qfs1               1     ma    qfs1
/dev/dsk/c1t0d0s0 11     mm    qfs1  on
/dev/dsk/c1t1d0s4 12     mr    qfs1  on
/dev/dsk/c1t2d0s4 13     mr    qfs1  on
/dev/dsk/c1t3d0s4 14     mr    qfs1  on

Creating an mcf File on a Sun Cluster Node

Depending on the type of storage you specify, a file system installed on a node in a Sun Cluster environment has the potential to be local, global, or highly available. Writing an mcf file for a local or global Sun StorEdge QFS file system on a Sun Cluster node is no different from writing any other kind of mcf file, but the disk devices behave differently depending on how you specify them in the Equipment Identifier field. This section explains what to specify in the Equipment Identifier field.

The characteristics of local, global, and highly available file systems are as follows:

If you are creating a Sun StorEdge QFS file system as a local or global file system in a Sun Cluster environment, use the information in TABLE 3-3 when writing the Equipment Identifier field for a local or global file system in a Sun Cluster. TABLE 3-3 contains information on the kinds of disks that can be used to configure a Sun StorEdge QFS file system.

TABLE 3-3 Equipment Identifier Field Content in a Sun Cluster mcf File

Name and Format

Notes

Global device:

/dev/global/rdsk/d0s0

Global devices are accessible from all nodes in a Sun Cluster, even if these devices are not physically attached to all nodes.

Solaris Volume Manager (SVM):

/dev/md/diskset/dsk/d0

Devices configured with SVM can be local or global.

VERITAS Volume Manager (VxVM):

/dev/vx/dsk/diskgroup/v0

Devices configured with VxVM can be local or global.




Note - For more information on using Sun StorEdge QFS file systems in a Sun Cluster environment, see the README file or see the Sun StorEdge QFS and Sun StorEdge SAM-FS 4.1 Release Notes.



Configuration Examples

The following configuration examples are for a local Sun StorEdge QFS file system installed in a Sun Solaris OS.

Configuration Example 1

This example shows how to configure two Sun StorEdge QFS file systems using a server that has a Sun StorEdge Multipack desktop array connected by a SCSI attachment.

You can use the format(1M) command to determine how the disks are partitioned. CODE EXAMPLE 3-6 shows the format(1M) command's output.

CODE EXAMPLE 3-6 format (1M) Command Output for Configuration Example 1
# format < /dev/null
Searching for disks...done
 
AVAILABLE DISK SELECTIONS:
       0. c0t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /sbus@3,0/SUNW,fas@3,8800000/sd@a,0
       1. c0t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /sbus@3,0/SUNW,fas@3,8800000/sd@b,0
       2. c6t2d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@7,4000/SUNW,isptwo@3/sd@2,0
       3. c6t3d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@7,4000/SUNW,isptwo@3/sd@3,0
       4. c6t4d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@7,4000/SUNW,isptwo@3/sd@4,0
       5. c6t5d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@7,4000/SUNW,isptwo@3/sd@5,0
       6. c8t2d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@b,4000/SUNW,isptwo@3/sd@2,0
       7. c8t3d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@b,4000/SUNW,isptwo@3/sd@3,0
       8. c8t4d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@b,4000/SUNW,isptwo@3/sd@4,0
       9. c8t5d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
          /pci@b,4000/SUNW,isptwo@3/sd@5,0
Specify disk (enter its number):
#
 
                                 # format(1M) shows the partition layout of all drives.
# format /dev/rdsk/c6t2d0s2      # Only the last lines of format(1M) output are shown.
 
Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)           0
  1 unassigned    wm       0               0         (0/0/0)           0
  2     backup    wu       0 - 4923        8.43GB    (4924/0/0) 17682084
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0 - 1229        2.11GB    (1230/0/0)  4416930
  5 unassigned    wm    1230 - 2459        2.11GB    (1230/0/0)  4416930
  6 unassigned    wm    2460 - 3689        2.11GB    (1230/0/0)  4416930
  7 unassigned    wm    3690 - 4919        2.11GB    (1230/0/0)  4416930


procedure icon  To Configure the System

Begin writing the mcf file for this configuration example by defining the file system and its disk partitions, as follows:

1. Write the mcf file.

a. Make an ma entry for the first file system.

b. Make an mm entry listing the partition(s) that comprise the metadata for the qfs1 file system.

c. Make a series of mr entries listing the partitions that comprise the file data for the qfs1 file system.

d. Make similar entries for the second (qfs2) file system.

The finished mcf file defines the following two file systems:

CODE EXAMPLE 3-7 shows the resulting mcf file.

CODE EXAMPLE 3-7 mcf File for Sun StorEdge QFS Example 1
# cat /etc/opt/SUNWsamfs/mcf
#
# Equipment         Eq   Eq     Family   Device   Additional
# Identifier        Ord  Type    Set     State    Parameters
#-----------        ---  ----   ------   ------   ----------
#
qfs1                 10    ma   qfs1       on
/dev/dsk/c8t2d0s4    11    mm   qfs1       on
/dev/dsk/c6t2d0s4    12    mr   qfs1       on
/dev/dsk/c6t3d0s4    13    mr   qfs1       on
#
qfs2                 20    ma   qfs2       on
/dev/dsk/c8t2d0s5    21    mm   qfs2       on
/dev/dsk/c6t2d0s5    22    mr   qfs2       on
/dev/dsk/c6t3d0s5    23    mr   qfs2       on



Note - Modifying the /etc/vfstab file is a later step in this chapter's configuration procedure. This step shows the /etc/vfstab file modifications only for completeness' sake.



2. Modify the /etc/vfstab file.

Make entries in the /etc/vfstab file for the qfs1 and qfs2 file systems you defined in the mcf file. The last two lines in CODE EXAMPLE 3-8 show entries for these new file systems.

CODE EXAMPLE 3-8 /etc/vfstab File for Sun StorEdge QFS Example 1
# cat /etc/vfstab
# device            device                       file            mount
# to                to                   mount   system   fsck   at    mount
# mount             fsck                 point   type     pass   boot  params
# -----             ----                 -----   ----     ----   ----  ------
fd                  -                    /dev/fd  fd       -     no    -
/proc               -                    /proc    proc     -     no    -
/dev/dsk/c0t10d0s1  -                    -        swap     -     no    -
/dev/dsk/c0t10d0s0  /dev/rdsk/c0t10d0s0  /        ufs      1     no    logging
swap                -                    /tmp     tmpfs    -     yes   -
qfs1                -                    /qfs1    samfs    -     yes  stripe=1
qfs2                -                    /qfs2    samfs    -     yes  stripe=1



Note - Modifying the /etc/vfstab file is a later step in this chapter's configuration procedure. This step shows the /etc/vfstab file modifications only for completeness' sake.



Configuration Example 2

This example illustrates a Sun StorEdge QFS file system that uses round-robin allocation on four disk drives.

This example assumes the following:


procedure icon  To Configure the System

This example introduces the round-robin data layout. For more information on data layout, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide.

1. Write the mcf file.

CODE EXAMPLE 3-9 shows the mcf file for this round-robin disk configuration.

CODE EXAMPLE 3-9 mcf File for Sun StorEdge QFS Example 2
# cat /etc/opt/SUNWsamfs/mcf
#
# Equipment         Eq   Eq     Family   Device   Additional
# Identifier        Ord  Type    Set     State    Parameters
#-----------        ---  ----   ------   ------   ----------
#
qfs3                 10    ma   qfs3       on
/dev/dsk/c8t4d0s4    11    mm   qfs3       on
/dev/dsk/c6t2d0s4    12    mr   qfs3       on
/dev/dsk/c6t3d0s4    13    mr   qfs3       on
/dev/dsk/c6t4d0s4    14    mr   qfs3       on
/dev/dsk/c6t5d0s4    15    mr   qfs3       on



Note - Modifying the /etc/vfstab file and using the sammkfs(1M) command are later steps in this chapter's configuration procedure. This step shows these steps only for completeness' sake.



2. Modify the /etc/vfstab file.

Edit the /etc/vfstab file to explicitly set round-robin on the file system by specifying stripe=0 in the mount params field. CODE EXAMPLE 3-10 shows stripe=0 for the qfs3 file system.

CODE EXAMPLE 3-10 /etc/vfstab File for Sun StorEdge QFS Example 2
# cat /etc/vfstab
#device             device                        file          mount
#to                 to                   mount    system  fsck  at    mount
#mount              fsck                 point    type    pass  boot  params
#-----              ----                 -----    ----    ----  ----  ------
fd                  -                    /dev/fd  fd      -     no    -
/proc               -                    /proc    proc    -     no    -
/dev/dsk/c0t10d0s1  -                    -        swap    -     no    -
/dev/dsk/c0t10d0s0  /dev/rdsk/c0t10d0s0  /        ufs     1     no    logging
swap                -                    /tmp     tmpfs   -     yes   -
qfs3                -                    /qfs3    samfs   -     yes   stripe=0

3. Run the sammkfs(1M) command.

Initialize the Sun StorEdge QFS file system by using the sammkfs(1M) command. The default DAU is 64 kilobytes, but the following example sets the DAU size to 128 kilobytes:

# sammkfs -a 128 qfs1

Configuration Example 3

This example illustrates a Sun StorEdge QFS file system. It stripes file data to four disk drives. This example assumes the following:


procedure icon  To Configure the System

1. Write the mcf file.

Write the mcf file using the disk configuration assumptions. CODE EXAMPLE 3-11 shows a sample mcf file for a striped disk configuration.

CODE EXAMPLE 3-11 mcf File for Sun StorEdge QFS Example 3
# Equipment         Eq   Eq     Family   Device   Additional
# Identifier        Ord  Type    Set     State    Parameters
#-----------        ---  ----   ------   ------   ----------
#
qfs4                 40    ma   qfs4       on
/dev/dsk/c8t4d0s4    41    mm   qfs4       on
/dev/dsk/c6t2d0s4    42    mr   qfs4       on
/dev/dsk/c6t3d0s4    43    mr   qfs4       on
/dev/dsk/c6t4d0s4    44    mr   qfs4       on
/dev/dsk/c6t5d0s4    45    mr   qfs4       on



Note - Modifying the /etc/vfstab file and using the sammkfs(1M) command are later steps in this chapter's configuration procedure. This step shows these steps only for completeness' sake.



2. Modify the /etc/vfstab file.

Set the stripe width by using the stripe= option. CODE EXAMPLE 3-12 shows the /etc/vfstab file with a mount parameter of stripe=1 set for the qfs4 file system.

CODE EXAMPLE 3-12 /etc/vfstab File for Sun StorEdge QFS Example 3
# cat /etc/vfstab
#
#device             device                        file         mount
#to                 to                   mount    system fsck  at    mount
#mount              fsck                 point    type   pass  boot  params
#-----              ----                 -----    -----  ----  ----  ------
fd                  -                    /dev/fd  fd     -     no    -
/proc               -                    /proc    proc   -     no    -
/dev/dsk/c0t10d0s1  -                    -        swap   -     no    -
/dev/dsk/c0t10d0s0  /dev/rdsk/c0t10d0s0  /        ufs    1     no    logging
swap                -                    /tmp     tmpfs  -     yes   -
qfs4                -                    /qfs4    samfs  -     yes   stripe=1

The stripe=1 specification stripes file data across all four of the mr data disks with a stripe width of one disk allocation unit (DAU). Note that the DAU is the allocation unit you set when you use the sammkfs(1M) command to initialize the file system.

3. Run the sammkfs(1M) command.

Initialize the Sun StorEdge QFS file system by using the sammkfs(1M) command. The following example sets the DAU size to 128 kilobytes:

# sammkfs -a 128 qfs1

With this striped disk configuration, any file written to this file system is striped across all of the devices in increments of 128 kilobytes. Files less than the aggregate stripe width times the number of devices still use 128 kilobytes of disk space. Files larger than 128 kilobytes have space allocated for them as needed in total space increments of 128 kilobytes. The file system writes metadata to device 41 only.

Configuration Example 4

Striped groups allow you to group RAID devices together for very large files. With striped groups, however, there is only one DAU per striped group. This method of writing huge DAUs across RAID devices saves system update time. Striped groups are useful for writing very large files to a group of RAID devices.



Note - A DAU is the minimum disk space allocated. The minimum disk space allocated in a striped group is as follows:

allocation_unit x number of disks in the group

Writing a single byte of data fills the entire striped group. Make sure that you understand the effects of using striped groups with your file system.



The devices within a striped group must be the same size. It is not possible to increase the size of a striped group. You can add additional striped groups to the file system, however.

This example configuration illustrates a Sun StorEdge QFS file system that separates the metadata onto a low-latency disk. The mcf file defines two striped groups on four drives. This example assumes the following:


procedure icon  To Configure the System

1. Write the mcf file.

Write the mcf file by using the disk configuration assumptions. CODE EXAMPLE 3-13 shows a sample mcf file for a striped group configuration.

CODE EXAMPLE 3-13 mcf File for Sun StorEdge QFS Example 4
# cat /etc/opt/SUNWsamfs/mcf
#
# Equipment         Eq   Eq     Family   Device   Additional
# Identifier        Ord  Type    Set     State    Parameters
#-----------        ---  ----   ------   ------   ----------
#
qfs5                 50    ma   qfs5       on
/dev/dsk/c8t4d0s5    51    mm   qfs5       on
/dev/dsk/c6t2d0s5    52    g0   qfs5       on
/dev/dsk/c6t3d0s5    53    g0   qfs5       on
/dev/dsk/c6t4d0s5    54    g1   qfs5       on
/dev/dsk/c6t5d0s5    55    g1   qfs5       on



Note - Modifying the /etc/vfstab file and using the sammkfs(1M) command are later steps in this chapter's configuration procedure. This procedure shows these steps only for completeness' sake.



2. Modify the /etc/vfstab file.

Use the the stripe= option to set the stripe width. CODE EXAMPLE 3-14 shows the /etc/vfstab file with a mount parameter of stripe=0, which specifies a round-robin allocation from striped group g0 to striped group g1.

CODE EXAMPLE 3-14 /etc/vfstab File for Sun StorEdge QFS Example 4
# cat /etc/vfstab
#device             device                        file          mount
#to                 to                   mount    system  fsck  at    mount
#mount              fsck                 point    type    pass  boot  params
#-----              ----                 -----    ----    ----  ----  ------
fd                  -                    /dev/fd  fd      -     no    -
/proc               -                    /proc    proc    -     no    -
/dev/dsk/c0t10d0s1  -                    -        swap    -     no    -
/dev/dsk/c0t10d0s0  /dev/rdsk/c0t10d0s0  /        ufs     1     no    logging
swap                -                    /tmp     tmpfs   -     yes   -
qfs5                -                    /qfs5    samfs   -     yes   stripe=0

3. Run the sammkfs(1M) command.

Initialize the Sun StorEdge QFS file system by using the sammkfs(1M) command. The -a option is not used with striped groups because the DAU is equal to the size of an allocation, or the size, of each group.

# sammkfs qfs5

In this example, there are two striped groups, g0 and g1. With stripe=0 in /etc/vfstab, devices 12 and 13 are striped; devices 14 and 15 are striped; and files are round robined around the two striped groups. You are actually treating a striped group as a bound entity. After you configure a stripe group, you cannot change it without issuing another sammkfs(1M) command.



Note - If you change the mcf file after the Sun StorEdge QFS file system is in use, you must convey the new mcf specifications to the Sun StorEdge QFS software. For information on propagating mcf file changes to the system, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide.




Initializing the Environment


procedure icon  To Initialize the Environment

single-step bulletType the samd(1M) config command to initialize the Sun StorEdge QFS environment.

For example:

# samd config


Editing the defaults.conf File (Optional)

The /opt/SUNWsamfs/examples/defaults.conf file contains default settings for the Sun StorEdge QFS environment. You can change these settings at any time after the initial installation. To determine if you want to change any default settings now, examine the defaults.conf(4) man page to discern the types of behaviors this file controls.


procedure icon  To Set Up Default Values

1. Read the defaults.conf(4) man page and examine this file to determine if you want to change any of the defaults.

2. Use the cp(1) command to copy /opt/SUNWsamfs/examples/defaults.conf to its functional location.

For example:

# cp /opt/SUNWsamfs/examples/defaults.conf /etc/opt/SUNWsamfs/defaults.conf

3. Use vi(1) or another editor to edit the file.

Edit the lines that control aspects of the system that you want to change. Remove the pound character (#) from column 1 of the lines you change.

4. Use the pkill(1M) command to send a SIGHUP signal to the sam-fsd(1M) daemon.

For example:

# pkill -HUP sam-fsd

This command restarts the sam-fsd(1M) daemon and enables the daemon to recognize the changes in the defaults.conf file.


Verifying the License and mcf Files

At this point in the installation and configuration process, the following files exist on your Sun StorEdge QFS server:

This procedure shows you how to verify the correctness of these configuration files.


procedure icon  To Verify the License File

single-step bulletEnter the samcmd(1M) l (lowercase L) command to verify the license file.

The samcmd(1M) output includes information on features that are enabled. If the output you receive is not similar to that shown in CODE EXAMPLE 3-15, return to Enabling the Sun StorEdge QFS Software License.

CODE EXAMPLE 3-15 Using samcmd (1M)
# samcmd l
 
License information samcmd     4.1    Fri Feb 27 16:24:12 2004
 
hostid = xxxxxxx
 
License never expires
 
Fast file system feature enabled
 
QFS stand alone feature enabled
 
Shared filesystem support enabled
 
SAN API support enabled


procedure icon  To Verify the mcf File

single-step bulletEnter the sam-fsd(1M) command to verify the mcf file.

Examine the output for errors, as follows:

If your mcf file has errors, refer to Defining the Sun StorEdge QFS Configuration by Creating the mcf File and to the mcf(4) man page for information on how to create this file correctly.



Note - If you change the mcf file after the Sun StorEdge QFS file system is in use, you must convey the new mcf specifications to the Sun StorEdge QFS software. For information on propagating mcf file changes to the system, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide.




Creating the samfs.cmd File (Optional)

You can create the /etc/opt/SUNWsamfs/samfs.cmd file as the place from which the system reads mount parameters. If you are configuring multiple Sun StorEdge QFS systems with multiple mount parameters, consider creating this file.

You can specify mount parameters in the following ways:

You can manage certain features more easily from a samfs.cmd file. These features include the following:

For more information on the /etc/vfstab file, see Updating the /etc/vfstab File and Creating the Mount Point. For more information on the mount(1M) command, see the mount_samfs(1M) man page.


procedure icon  To Create the samfs.cmd File

single-step bulletUse vi(1) or another editor to create the samfs.cmd file.

Create lines in the samfs.cmd file to control mounting, performance features, or other aspects of file system management. For more information on the samfs.cmd file, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide, or see the samfs.cmd(4) man page.

CODE EXAMPLE 3-17 shows a samfs.cmd file for a Sun StorEdge QFS file system.

CODE EXAMPLE 3-17 Example samfs.cmd File for a Sun StorEdge QFS File System
qwrite   # Global mount option. Enables qwrite for all file systems
fs=qfs1  # Enables mount options for the qfs1 file system only
   trace # Enables file system tracing for qfs1 only


Updating the /etc/vfstab File and Creating the Mount Point

The example in this procedure assumes that /qfs1 is the mount point of the qfs1 file system.


procedure icon  To Update the /etc/vfstab File and Create the Mount Point

1. Use vi(1) or another editor to open the /etc/vfstab file and create an entry for each Sun StorEdge QFS file system.

CODE EXAMPLE 3-18 shows header fields and entries for a local Sun StorEdge QFS file system.

CODE EXAMPLE 3-18 Example /etc/vfstab File Entries for a Sun StorEdge QFS File System
#DEVICE    DEVICE   MOUNT  FS    FSCK  MOUNT    MOUNT
#TO MOUNT  TO FSCK  POINT  TYPE  PASS  AT BOOT  PARAMETERS
#
qfs1       -        /qfs1  samfs -     yes      stripe=1

TABLE 3-4 shows the various fields in the /etc/vfstab file and their contents.

TABLE 3-4 Fields in the /etc/vfstab File

Field

Field Title and Contents

1

Device to mount. The name of the Sun StorEdge QFS file system to mount. This must be the same as the file system's Family Set name specified in the mcf file.

2

Device to fsck(1M). Must be a dash (-) character. The dash indicates that there are no options. This prevents the Solaris system from performing an fsck(1M) on the Sun StorEdge QFS file system. For more information about this process, see the fsck(1M) or samfsck(1M) man page.

3

Mount point name. For example, /qfs1.

4

File system type. Must be samfs.

5

fsck(1M) pass. Must be a dash (-) character. A dash indicates that there are no options.

6

Mount at boot. Specifying yes in this field requests that the Sun StorEdge QFS file system be mounted automatically at boot time. Specifying no in this field indicates that you do not want to mount the file system automatically. For information about the format of these entries, see the mount_samfs(1M) man page.

7

Mount parameters. A list of comma-separated parameters (with no spaces) that are used in mounting the file system. You can specify mount options on the mount(1M) command, in the /etc/vfstab file, or in a samfs.cmd file. Mount options specified on the mount(1M) command override those specified in the /etc/vfstab file and in the samfs.cmd file. Mount options specified in the /etc/vfstab file override those in the samfs.cmd file.

For example, stripe=1 specifies a stripe width of one DAU. For a list of available mount options, see the mount_samfs(1M) man page.


2. Use the mkdir(1) command to create the file system mount point.

The mount point location differs depending on where the file system is to be mounted, as follows:

The following examples illustrate this.

Example 1. This example assumes that /qfs1 is the mount point of the qfs1 file system. This is a local file system. It can exist on a standalone server or on a local node in a Sun Cluster. For example:

# mkdir /qfs1


Initializing the File System

This procedure shows how to use the sammkfs(1M) command and the Family Set names that you have defined to initialize a file system.



Note - The sammkfs(1M) command sets one tuning parameter, the disk allocation unit (DAU). You cannot reset this parameter without reinitializing the file system. For information about how the DAU affects tuning, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide or see the sammkfs(1M) man page.




procedure icon  To Initialize a File System

single-step bulletUse the sammkfs(1M) command to initialize a file system for each Family Set defined in the mcf file.

CODE EXAMPLE 3-19 shows the command to use to initialize a file system with the Family Set name of qfs1.

CODE EXAMPLE 3-19 Initializing Example File System qfs1
# sammkfs -a 128 qfs1
Building `qfs1' will destroy the contents of devices:
                /dev/dsk/c1t0d0s0
                /dev/dsk/c3t1d0s6
                /dev/dsk/c3t1d1s6
                /dev/dsk/c3t2d0s6
Do you wish to continue? [y/N]

Enter y in response to this message to continue the file system creation process.



caution icon

Caution - Running sammkfs(1M) creates a new file system. It removes all references to the data currently contained in the partitions associated with the file system in the /etc/opt/SUNWsamfs/mcf file.




Mounting the File System

The mount(1M) command mounts a file system. It also reads the /etc/vfstab and samfs.cmd configuration files. For information on the mount(1M) command, see the mount_samfs(1M) man page.


procedure icon  To Mount the File System

1. Issue the mount(1M) command to mount the file system.

Specify the file system mount point as the argument. For example:

# mount /qfs1

2. Issue the mount(1M) command with no arguments to verify the mount.

This step confirms whether the file system is mounted and shows how to set permissions. CODE EXAMPLE 3-20 shows the output from a mount(1M) command issued to verify whether example file system qfs1 is mounted.

CODE EXAMPLE 3-20 Using the mount (1M) Command to Verify that a File System is Mounted
# mount
<<< information deleted >>>
/qfs1 on qfs1 read/write/setuid/dev=8001b1 on Mon Jan 14 12:21:03 2002
<<< information deleted >>>

3. Issue the chmod(1) and chown(1) commands to change the permissions and ownership of the file system's root directory. (Optional)

If this is the first time the file system has been mounted, it is typical to perform this step. CODE EXAMPLE 3-21 shows the commands to use to change file system permissions and ownership.

CODE EXAMPLE 3-21 Using chmod (1M) and chown (1M) to Change File System Permissions and Ownership
# chmod 755 /qfs1
# chown root:other /qfs1


Sharing the File System With NFS Client Systems (Optional)

Perform this procedure if you want a local Sun StorEdge QFS file system to be NFS shared.

Run the Sun Solaris share(1M) command to make the file system available for mounting by remote systems. The share(1M) commands are typically placed in the /etc/dfs/dfstab file and are executed automatically by the Sun Solaris OS when you enter init(1M) state 3.


procedure icon  To NFS Share the File System

1. Use vi(1) or another editor to add a share(1M) command to the /etc/dfs/dfstab file.

For example, add a line like the following to direct the Solaris OS to NFS share the new Sun StorEdge QFS file system:

share -F nfs -o rw=client1:client2 -d "QFS" /qfs1

2. Use the ps(1) and grep(1) commands to determine whether or not nfs.server is running.

CODE EXAMPLE 3-22 shows these commands and their output.

CODE EXAMPLE 3-22 Commands and Output Showing NFS Activity
# ps -ef | grep nfsd
    root   694     1  0   Apr 29 ?        0:36 /usr/lib/nfs/nfsd -a 16
en17     29996 29940  0 08:27:09 pts/5    0:00 grep nfsd
# ps -ef | grep mountd
    root   406     1  0   Apr 29 ?       95:48 /usr/lib/autofs/automountd
    root   691     1  0   Apr 29 ?        2:00 /usr/lib/nfs/mountd
en17     29998 29940  0 08:27:28 pts/5    0:00 grep mountd

In CODE EXAMPLE 3-22, the lines that contain /usr/lib/nfs indicate that the NFS server is mounted.

3. Start the NFS server. (Optional)

Perform this step if the nfs.server server is not running. Use the following command:

# /etc/init.d/nfs.server start

4. Type the share(1M) command at a root shell prompt. (Optional)

Perform this step if you want to NFS share the new Sun StorEdge QFS file system immediately.

If there are no NFS shared file systems when the Sun Solaris OS boots, the NFS server is not started. CODE EXAMPLE 3-23 shows the commands to use to enable NFS sharing. You must change to run level 3 after adding the first share entry to this file.

CODE EXAMPLE 3-23 NFS Commands
# init 3
# who -r
.       run-level 3  Dec 12 14:39     3    2  2
# share
-          /qfs1  -   "QFS"

Some NFS mount parameters can affect the performance of an NFS mounted Sun StorEdge QFS file system. You can set these parameters in the /etc/vfstab file as follows:

For more information on these parameters, see the mount_nfs(1M) man page.


Mounting the File System on the NFS Client Systems (Optional)

Perform this procedure if you have shared the file system with NFS client systems.

On the client systems, mount the server's Sun StorEdge QFS file system at a convenient mount point.


procedure icon  To Mount the File System on Clients

1. On the client systems, use vi(1) or another editor to edit the /etc/vfstab file and add a line to mount the server's Sun StorEdge QFS file system at a convenient mount point.

The following example line mounts server:/qfs1 on the /qfs1 mount point:

server:/qfs1    -    /qfs1    nfs    -   no intr,timeo=60

In this example, server:/qfs1 is mounted on /qfs1, and information is entered into the /etc/vfstab file.

2. Save and close the /etc/vfstab file.

3. Enter the mount(1M) command.

The following mount(1M) command mounts the qfs1 file system:

client# mount /qfs1

The automounter can also do this, if you prefer. Follow your site procedures for adding server:/qfs1 to your automounter maps. For more information on automounting, see the automountd(1M) man page.



Note - At times, there might be a significant delay in the Sun StorEdge QFS file system's response to NFS client requests. This can occur in a Sun StorEdge QFS shared file system. As a consequence, the system might generate an error instead of retrying until the operation completes.

To avoid this situation, Sun recommends that clients mount the file system with either the hard option enabled or with the soft, retrans, and timeo options enabled. If you use the soft option, also specify retrans=120 (or greater) and timeo=3000.




Establishing Periodic Dumps Using qfsdump(1M)

File systems are made up of directories, files, and links. The Sun StorEdge QFS file system keeps track of all the files in the .inodes file. The .inodes file resides on a separate metadata device. The file system writes all file data to the data devices.

It is important to use the qfsdump(1M) command periodically to create a dump file of metadata and file data. The qfsdump(1M) command saves the relative path information for each file contained in a complete file system or in a portion of a file system. This protects your data in the event of a disaster.

Create dump files at least once a day. The frequency depends on your site's requirements. By dumping file system data on a regular basis, you can restore old files and file systems. You can also move files and file systems from one server to another.

The following are some guidelines for creating dump files:

You can run the qfsdump(1M) command manually or automatically. Even if you implement this command to be run automatically, you might need to run it manually from time to time depending on your site's circumstances. In the event of a disaster, you can use the qfsrestore(1M) command to recreate your file system. You can also restore a single directory or file. For more information, see the qfsdump(1M) man page and see the Sun QFS, Sun SAM-FS, and Sun SAM-QFS Disaster Recovery Guide.

For more information on creating dump files, see the qfsdump(1M) man page. The following sections describe procedures for issuing this command both manually and automatically.


procedure icon  To Run the qfsdump(1M) Command Automatically

1. Make an entry in root's crontab file so that the cron daemon runs the qfsdump(1M) command periodically.

For example:

10 0 * * * (cd /qfs1; /opt/SUNWsamfs/sbin/qfsdump -f /dev/rmt/0cbn)

This entry executes the qfsdump(1M) command at 10 minutes after midnight. It uses the cd(1) command to change to the mount point of the qfs1 file system, and it executes the /opt/SUNWsamfs/sbin/qfsdump command to write the data to tape device /dev/rmt/0cbn.

2. Using the previous step as a guide, make similar crontab file entries for each file system. (Optional)

Perform this step if you have more than one Sun StorEdge QFS file system.

Make sure you save each dump file in a separate file.


procedure icon  To Run the qfsdump(1M) Command Manually

1. Use the cd(1) command to go to the directory that contains the mount point for the file system.

For example:

# cd /qfs1

2. Create a dump file by issuing the qfsdump(1M) command and writing the output to a file system outside of the one you are dumping.

For example:

# qfsdump -f /save/qfs1/dump_file


Backing Up Configuration Files (Optional)

Sun StorEdge QFS regularly accesses several files that have been created as part of this installation and configuration procedure. You should back up these files regularly to a file system that is outside the file system in which they reside. In the event of a disaster, you can restore these files from your backup copies.



Note - Sun Microsystems strongly recommends that you back up your environment's configuration files because they will be needed in the event of a file system disaster.



The following files are among those that you should back up regularly and whenever you modify them:

For more information on the files you should protect, see the Sun QFS, Sun SAM-FS, and Sun SAM-QFS Disaster Recovery Guide.


Configuring the Remote Notification Facility (Optional)

The Sun StorEdge QFS software can be configured to notify you when potential problems occur in its environment. The system sends notification messages to a management station of your choice. The Simple Management Network Protocol (SNMP) software within the software manages the exchange of information between network devices such as servers, automated libraries, and drives.

The Sun StorEdge QFS and Sun StorEdge SAM-FS Management Information Base (MIB) defines the types of problems, or events, that the Sun StorEdge QFS software can detect. The software can detect errors in configuration, tapealert(1M) events, and other atypical system activity. For complete information on the MIB, see /opt/SUNWsamfs/mibs/SUN-SAM-MIB.mib.

The following sections describe how to enable and how to disable remote notification.


procedure icon  To Enable Remote Notification

1. Ensure that the management station is configured and known to be operating correctly.

Verifying the Network Management Station (Optional) describes this prerequisite.

2. Use vi(1) or another editor to examine file /etc/hosts.

For example, CODE EXAMPLE 3-24 shows an /etc/hosts file that defines a management station. In this example, the management station's hostname is mgmtconsole.

CODE EXAMPLE 3-24 Example /etc/hosts File
999.9.9.9       localhost
999.999.9.999   loggerhost      loghost
999.999.9.998   mgmtconsole
999.999.9.9     samserver

Examine the /etc/hosts file to ensure that the management station to which notifications should be sent is defined. If it is not defined, add a line that defines the appropriate host.

3. Save your changes to /etc/hosts and exit the file.

4. Use vi(1) or another editor to open file /opt/SUNWsamfs/sbin/sendtrap.

5. Locate the TRAP_DESTINATION=`hostname` directive in /opt/SUNWsamfs/sbin/sendtrap.

This line specifies that the remote notification messages be sent to port 161 of the server upon which the Sun StorEdge QFS software is installed. Note the following:

For example:

TRAP_DESTINATION="localhost:161 doodle:163 mgmt_station:1162"

6. Locate the COMMUNITY="public" directive in /etc/opt/SUNWsamfs/sbin/sendtrap.

This line acts as a password. It prevents unauthorized viewing or use of SNMP trap messages. Examine this line and determine the following:

7. Save your changes to /etc/opt/SUNWsamfs/sbin/sendtrap and exit the file.


procedure icon  To Disable Remote Notification

The remote notification facility is enabled by default. If you want to disable remote notification, perform this procedure.

1. Use the cp(1) command to copy file /opt/SUNWsamfs/examples/defaults.conf to /etc/opt/SUNWsamfs/defaults.conf. (Optional)

Perform this step if file /etc/opt/SUNWsamfs/defaults.conf does not exist.

2. Use vi(1) or another editor to open file /etc/opt/SUNWsamfs/defaults.conf.

Find the line in defaults.conf that specifies SNMP alerts. The line is as follows:

#alerts=on

3. Edit the line to disable SNMP alerts.

Remove the # symbol and change on to off. After editing, the line is as follows:

alerts=off

4. Save your changes to /etc/opt/SUNWsamfs/defaults.conf and exit the file.

5. Use the pkill(1M) command to send a SIGHUP signal to the sam-fsd(1M) daemon.

The format for this command is as follows:

# pkill -HUP sam-fsd

This command restarts the sam-fsd(1M) daemon and enables the daemon to recognize the changes in the defaults.conf file.


Adding the Administrator Group (Optional)

By default, only the superuser can execute Sun StorEdge QFS administrator commands. However, during installation you can create an administrator group. Members of the administrator group can execute all administrator commands except for star(1M), samfsck(1M), samgrowfs(1M), sammkfs(1M), and samd(1M). The administrator commands are located in /opt/SUNWsamfs/sbin.

After installing the package, you can use the set_admin(1M) command to add or remove the administrator group. You must be logged in as superuser to use the set_admin(1M) command. You can also undo the effect of this selection and make the programs in /opt/SUNWsamfs/sbin executable only by the superuser. For more information on this command, see the set_admin(1M) man page.


procedure icon  To Add the Administrator Group

1. Choose an administrator group name or select a group that already exists within your environment.

2. Use the groupadd(1M) command, or edit the /etc/group file.

The following is an entry from the /etc/group file that designates an administrator group for the Sun StorEdge QFS software. In this example, the samadm group consists of both the adm and operator users.

samadm::1999:adm,operator


Configuring System Logging

The Sun StorEdge QFS system logs errors, cautions, warnings, and other messages using the standard Sun Solaris syslog(3) interface. By default, the Sun StorEdge QFS facility is local7.


procedure icon  To Enable Logging

1. Use vi(1) or another editor to open the /etc/syslog.conf file.

Read in the line from the following file:

/opt/SUNWsamfs/examples/syslog.conf_changes

The line is similar, if not identical, to the following line:

local7.debug  /var/adm/sam-log



Note - The preceding entry is all one line and has a TAB character (not a space) between the fields.



This step assumes that you want to use local7, which is the default. If you set logging to something other than local7 in the /etc/syslog.conf file, edit the defaults.conf file and reset it there, too. For more information, see the defaults.conf(4) man page.

2. Use commands to append the logging line from /opt/SUNWsamfs/examples/syslog.conf_changes to your /etc/syslog.conf file.

CODE EXAMPLE 3-25 shows the commands to use to append the logging lines.

CODE EXAMPLE 3-25 Using cp (1) and cat (1) to Append Logging Lines to /etc/syslog.conf
# cp /etc/syslog.conf /etc/syslog.conf.orig
# cat /opt/SUNWsamfs/examples/syslog.conf_changes >> /etc/syslog.conf

3. Create an empty log file and send the syslogd process a HUP signal.

CODE EXAMPLE 3-26 shows the command sequence to create a log file in /var/adm/sam-log and send the HUP to the syslogd daemon.

CODE EXAMPLE 3-26 Creating an Empty Log File and Sending a HUP Signal to syslogd
# touch /var/adm/sam-log
# pkill -HUP syslogd

For more information, see the syslog.conf(4) and syslogd(1M) man pages.

4. Use the log_rotate.sh(1M) command to enable log file rotation. (Optional)

Log files can become very large, and the log_rotate.sh(1M) command can help in managing log files. For more information, see the log_rotate.sh(1M) man page.


Configuring Other Sun StorEdge Products (Optional)

The Sun StorEdge QFS installation and configuration process is complete. You can configure other Sun StorEdge QFS products at this time. For example, if you want to configure a Sun StorEdge QFS shared file system, see the Sun StorEdge QFS and Sun StorEdge SAM-FS File System Administration Guide.