No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


FusionCube DB 3.1 Database Best Practice 03 (Oracle RAC 11g R2)

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a Non-LVM File System

Configuring a Non-LVM File System


  1. Format the disks to be mounted based on the file system type.

    [root@dbn02 ~]# mkfs.ext4 /dev/sdb 
    mke2fs 1.41.12 (17-May-2010) 
    /dev/sdc is entire device, not just one partition! 
    Proceed anyway? (y,n) y 
    Filesystem label= 
    OS type: Linux 
    Block size=4096 (log=2) 
    Fragment size=4096 (log=2) 
    Stride=0 blocks, Stripe width=0 blocks 
    32768000 inodes, 131072000 blocks 
    6553600 blocks (5.00%) reserved for the super user 
    First data block=0 
    Maximum filesystem blocks=4294967296 
    4000 block groups 
    32768 blocks per group, 32768 fragments per group 
    8192 inodes per group 
    Superblock backups stored on blocks:  
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,  
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,  
    Writing inode tables: done                             
    Creating journal (32768 blocks): done 
    Writing superblocks and filesystem accounting information: done 
    This filesystem will be automatically checked every 33 mounts or 
    180 days, whichever comes first.  Use tune2fs -c or -i to override.     

  2. Manually mount the file system.

    [root@dbn02 /]#mkdir  /oradata                //Create a mount point for the file system. 
    [root@dbn02 /]# mount -t ext4 -o sync /dev/sdb  /u01/app/oracle/oradata     

  3. Obtain the disk UUIDs.

    [root@dbn02 /]# blkid 
    /dev/sda2: UUID="9489920d-873b-4aae-a179-13e54806fc3b" TYPE="ext3"  
    /dev/sda1: UUID="84504abe-d8e1-41b4-ad66-d9520389c6db" TYPE="ext3"  
    /dev/sda3: UUID="12a75ac1-6030-4c58-8fe1-62acf4b85cc1" TYPE="swap"  
    /dev/sda5: UUID="46e2de0e-3b6d-4810-ad5c-146b4f8845e1" TYPE="ext3"  
    /dev/sda6: UUID="2ad8583e-f956-4a63-a1ee-62151e7163e4" TYPE="ext3"  
    /dev/sda7: UUID="6c125b97-aff7-4fa5-827b-0af02bbd3958" TYPE="ext3"  
    /dev/sda8: UUID="9bda232e-6743-4164-a1a9-be0d014bb6cf" TYPE="ext4"  
    /dev/sdb: UUID="bf8c5cb5-1525-4fd4-8a82-268dc0eb767e" TYPE="ext4"  
    /dev/sdc: UUID="a9d827d6-e27d-4555-bb2c-10a47f7a285a" TYPE="ext4"     

    Do not edit the /etc/fstab file. Otherwise, the OS cannot start.

    Edit the rc.local file as follows:

    [root@dbn02 /]# vi /etc/rc.local  
    "/etc/rc.local" 18L, 361C#!/bin/sh 
    # This script will be executed *after* all the other init scripts. 
    # You can put your own initialization stuff in here if you don't 
    # want to do the full Sys V style init stuff. 
    touch /var/lock/subsys/local 
    sleep 300                                   //Mount the file system at a delay of 300 seconds.
    mount -t ext4 -o sync UUID=bf8c5cb5-1525-4fd4-8a82-268dc0eb767e  /oradta     

  4. Obtain and decompress to a local directory. If FusionCube Builder is used to install software, the script is deployed by default.
  5. Open WinSCP, create a connection with the system, access the local directory where the decompressed file is located, right-click the script file, choose Upload from the shortcut menu, change the transfer mode to the binary mode, and click OK.
  6. After confirming that the script is successfully uploaded, run the following commands as user root:

    [root@dbn02 ~]# sh  
    INFO:drop cache scripts install success, /opt/dsware/ will run every 60 minutes; 
    [root@dbn02 ~]# crontab –l                    //Check whether the script is configured.
    0 0 * * * sh /opt/omm/oma/tools/func/ & 
    * * * * * sh /opt/dsware/agent/script/ >/dev/null 2>&1 & 
    * * * * * sh /opt/omm/oma/tools/oma_monitor >/dev/null 2>&1 & 
    */5 * * * * sh /opt/fc2/bin/scripts/ssdp_monitor > /dev/null 2>&1 
    0 * * * * sh /opt/dsware/ > /dev/null 2>&1  
    [root@dbn02 ~]# sh  /opt/dsware/      //Manually test the script for memory refreshing.     

  7. Unmount the file system before restarting the OS. Otherwise, the file system may get lost.

    [root@dbn02 /]# umount /u01/app/oracle/oradata

    If the file system cannot be unmounted and the following information is displayed, check and stop the related services and try again.

    [root@dbn02 /]# umount /oradata 
     umount: /oradata: device is busy. 
             (In some cases useful info about processes that use 
              the device is found by lsof(8) or fuser(1)) 
     [root@dbn02 /]# lsof /oradata 
     dd      27898 root    1w   REG   8,16 76181143552   13 /oradata 

Updated: 2018-12-26

Document ID: EDOC1100035759

Views: 32008

Downloads: 42

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next