Top
PRIMECLUSTER  Installation and Administration Guide 4.5
FUJITSU Software

6.12.5 Maintaining File Systems Controlled by the Fsystem Resource

This section describes the procedure when maintaining file systems on a shared disk registered in the Fsystem resource.

Note

To mount a file system on a shared disk manually, mount it from any one of nodes configuring a cluster system.

If you mount file systems on shared disks from multiple cluster nodes at the same time, these file systems are destroyed. Perform the operation with careful attention.

  1. Stopping RMS on all cluster nodes

    Stop RMS on all cluster nodes.

    Example: Stopping RMS on all the nodes configuring a cluster from any one of nodes with a command

    # /opt/SMAW/SMAWRrms/bin/hvshut -a
  2. Checking the mount state of a file system

    Check that a file system on a shared disk has not been mounted with the df command so that the file system cannot be mounted mistakenly from multiple cluster nodes.

    Example: Executing the df command

    # /bin/df -k                                                       
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda2             20315844   7474340  11792864  39% /          
    /dev/sda1               256666     25466    217948  11% /boot      
    tmpfs                    971664        0    971664   0% /dev/shm   

    If the file system has already mounted, a cluster application may be in operation or the file system has already been mounted manually.

    In this case, stop the cluster application and RMS, or unmount the target file system with the umount command.


    The following procedure is performed in any one of nodes configuring a cluster.

  3. Starting a GDS volume (only if necessary)

    If a file system or a file to be maintained exists in a volume managed by GDS, start the GDS volume in any one for nodes configuring a cluster.

    Example: When starting the volume volume0001 of the disk class class with a command

    # /usr/sbin/sdxvolume -N -c class -v volume0001
  4. Mounting and maintaining a file system

    1. Restoring the file system (only if necessary)

      To restore the file system, use the fsck command. If the file system to be maintained exists in the volume controlled by GDS, execute the fsck command on the node that the GDS volume has started in Step 3.

      See

      For how to restore the file system with the fsck command or e2fsck command, see the Online manual page for Linux (man fsck or man e2fsck).

    2. Mounting the file system (only if necessary)

      Mount the file system with the mount command.

      The device name of the file system controlled by the Fsystem resource has been described in the /etc/fstab.pcl file. Refer to the /etc/fstab.pcl file to mount the file system.

      Example: Checking the contents of the /etc/fstab.pcl file with the cat command

      # /bin/cat /etc/fstab.pcl                                            
      #RMS#/dev/sfdsk/class0001/dsk/volume0001 /mnt/swdsk1 ext3 noauto 0 0

      Example: Mounting the file system of the mountpoint /mnt/swdsk1 controlled by the Fsystem resource

      # /bin/mount -t ext3 /dev/sfdsk/class0001/dsk/volume0001 /mnt/swdsk1
    3. Maintaining files (only if necessary)

      If files used by an operational application exist on a shared disk, refer to and update the files at this point.

    4. Unmounting the file system

      If you have mounted the file system in Step 4-2, unmount it with the following procedure.

      Example: Unmounting the file system mounted in /mnt/swdsk1

      # /bin/umount /mnt/swdsk1
  5. Stopping the GDS volume

    Stop the GDS volume started in Step 3.

    Example: Stopping the volume volume0001 of the disk class class with a command

    # /usr/sbin/sdxvolume -F -c class -v volume0001
  6. Starting RMS on all the nodes

    Start RMS on all cluster nodes.

    Example: Starting RMS on all the nodes configuring a cluster from any one of nodes with a command

    # /opt/SMAW/SMAWRrms/bin/hvcm -a