How to Create NFS in Linux

Hi all,
I am very much new to Linux Admin, i am basically working as a apps dba, i have two servers, i installed Oracle Linux on that, now i want to create NFS file system, i have created u01 mount pioint in Linux1 and u01 in linux 2 with same space , i am able to ping both servers and i am able to do ftp both servers, could any one explain me how to create NFS in linux servers,
Thanks

On the server, edit the file <tt>/etc/exports</tt> to list the directories you
want NFS to offer, and to which systems they should be offered:
/u01    *(rw,sync,no_root_squash)
/u02    *(rw,sync,no_root_squash)
/u03    *(rw,sync,no_root_squash)The <tt>*</tt> matches any system/network and the <tt>(rw)</tt> says let the
other systems read and write the tree, the <tt>sync</tt> forces the server NFS
to finish the I/O before telling the clients the I/O is done, and the optional
<tt>no_root_squash</tt> lets root on a client system access the files as if
they were root on the NFS server; this may not be what you want.
# /sbin/chkconfig nfs on
# /sbin/service nfs startOn the NFS client, edit the <tt>/etc/fstab</tt> file to have lines that look
like this:
myserver:/u01 /u01 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
myserver:/u02 /u02 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
myserver:/u03 /u03 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0and then from the client make sure you can see the offered files:
# /usr/sbin/showmount -e myserverand if you can, do this on the client:
# mkdir /u01 /u02 /u03
# mount /u01
# mount /u02
# mount /u03If the clients ever reboot, the NFS files will be mounted automatically and you
will not need these last 3 commands.
The RDBMS has its own requirements for the options in the <tt>/etc/fstab</tt>
entry, so the <tt>rw,rsize=...</tt> example may need to be adjusted a little.
Happy NFS'ing.

Similar Messages

  • How to create instance in linux

    Hi guys
    how to create instance in linux? I know that in order to create a instance in window, we can use oradim cmd. But what about linux?

    user11148588 wrote:
    hi
    after i performed DR. DBCA does not show the recovery database. can anyone advise me what i should do in order for DBCA to display the database?DBCA gets its knowledge of existing databases from the oratab file. Did you create an entry there? Most *nix OS's will have it in the /etc directory; if I remember correctly it will be in /var/opt on Solaris.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HOW TO: create NFS Archive log mount that runs parrallel

    I would like to know if there is a way i can create an NFS mount that would run parallel Archiving and not stop if NFS mount is stale. If possible then how to create or configure?
    Any and all help would be appreciated!
    Edited by: 886101 on Sep 19, 2011 8:45 AM

    On the server, edit the file <tt>/etc/exports</tt> to list the directories you
    want NFS to offer, and to which systems they should be offered:
    /u01    *(rw,sync,no_root_squash)
    /u02    *(rw,sync,no_root_squash)
    /u03    *(rw,sync,no_root_squash)The <tt>*</tt> matches any system/network and the <tt>(rw)</tt> says let the
    other systems read and write the tree, the <tt>sync</tt> forces the server NFS
    to finish the I/O before telling the clients the I/O is done, and the optional
    <tt>no_root_squash</tt> lets root on a client system access the files as if
    they were root on the NFS server; this may not be what you want.
    # /sbin/chkconfig nfs on
    # /sbin/service nfs startOn the NFS client, edit the <tt>/etc/fstab</tt> file to have lines that look
    like this:
    myserver:/u01 /u01 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
    myserver:/u02 /u02 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0
    myserver:/u03 /u03 nfs rw,rsize=32768,wsize=32768,sync,nointr,hard 0 0and then from the client make sure you can see the offered files:
    # /usr/sbin/showmount -e myserverand if you can, do this on the client:
    # mkdir /u01 /u02 /u03
    # mount /u01
    # mount /u02
    # mount /u03If the clients ever reboot, the NFS files will be mounted automatically and you
    will not need these last 3 commands.
    The RDBMS has its own requirements for the options in the <tt>/etc/fstab</tt>
    entry, so the <tt>rw,rsize=...</tt> example may need to be adjusted a little.
    Happy NFS'ing.

  • How to create a c++ shared library (.so) for linux real time (for myRio) with Eclipse to use in LabView?

    I tried already these Tutorials and Advices but I didn't find a solution:
    - http://www.ni.com/tutorial/14625/en/
    - http://www.ni.com/tutorial/14690/en/
    - http://forums.ni.com/t5/LabVIEW/Shared-Library-on-myrio-Linux-Real-time-system/m-p/2842540/
    - http://forums.ni.com/t5/LabVIEW/How-to-create-shared-library-for-linux-real-time-target-in/m-p/28218...
    - and some more
    I want use c++ codes on linux real time. For testing reasons I want to have a function that adds 2 values and gives the result.
    I've done these steps:
    1. writing a c++ file in Eclipse (see screensot 2)
    2. building a shared library (.so) from my c++ project in Eclipse (with Cross GCC)
    3. putting this file on myRio (path: /usr/local/lib/)
    4. creating a VI that calls this library from Labview with a "Call Library Function Node" (see screenshot3)
    5. Setting the properties for the "Call Library Function Node" (see screenshots 4-7)
    After I run this VI i get this error message: LabVIEW:  (Hex 0x627) The function name for the ... node cannot be found in the library. To correct this error, right-click the Call Library Function Node and select Configure from the shortcut menu. Then choose the correct function name. (see screenshot1)
    I've tried a lot things to solve this problem but I couldn't find a solution. Would be very happy if anyone can help me. I guess that I have to edit my c++ code to export my function (symbol). But I have no idea how to make it. I also tried it with a dll file in the same folder but it didn't help.
    Perhaps someone can send an example which works on myRIO.
    Thanks!
    screenshot1
    screenshot2
    screenshot3
    screenshot4
    screenshot5
    screenshot6
    screenshot7

     can see it in the screenshot8 there is a function called "_Z8AddierenddPd" instead of "Addieren". I copied this name to Labview (see screenshot9) and it worked.
    I'm sure that there is a way to compile the shared folder with gcc without decorations (mangling). But I don't know how. If someone has a recommendation I would be very glad!
    Prepend each function declaration that you want to be available without name decoration with
    extern "C" <your function declaration>
    Or if you have multiple functions you want to export you can in the header file where you declare your functions simply use:
    #ifdef __cplusplus
    extern "C" {
    #endif
    <all your function declarations>
    #ifdef __cplusplus
    #endif
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to Create Linux-Cron Job  from a Java Program

    Hello,
    Can anybody help me to CREATE/EDIT/DELETE Linux Cron job from Java Program. Its Very Urgent.Thanks in advance..
    from
    Chakri

    I decided this didn't sound too tough so I played around with it a little. Basically because I'd never tried executing external processes out of java before, so I wanted to see how it was done.
    Just change whatever you like in the jobs ArrayList and call writeJobs.
    If you call writeJobs without putting anything in the list first you'll wipe out all of your crontab entries.
    import java.lang.*;
    import java.io.*;
    import java.util.*;
    public class cron {
        ArrayList jobs;
        Runtime rt;
        cron() {
         rt = Runtime.getRuntime();
         jobs = new ArrayList();
        void readCron() {
         String[] list = { "crontab", "-l" };
         jobs = new ArrayList();
         try {
             // Stick a job into crontab
             Process child = rt.exec(list);
             BufferedReader cronout = new BufferedReader(new InputStreamReader(child.getInputStream()));
             String cronjob = cronout.readLine();
             while (cronjob != null) {
              jobs.add(cronjob);
              cronjob = cronout.readLine();
             child.waitFor();
         catch(IOException e) {
             System.err.println("IOException starting process!");
         catch(InterruptedException e) {
             System.err.println("Interrupted waiting for process!");
        void listJobs() {
         Iterator iter = jobs.iterator();
         while (iter.hasNext()) {
             System.out.println((String)iter.next());
        void writeJobs() {
         String[] edit = { "crontab"};
         try {
             // Stick a job into crontab
             Process child = rt.exec(edit);
             PrintWriter cronIn = new PrintWriter(child.getOutputStream());
             Iterator iter = jobs.iterator();
             while (iter.hasNext()) {
              cronIn.println((String)iter.next());
             cronIn.close();
             child.waitFor();
         catch(IOException e) {
             System.err.println("IOException starting process!");
         catch(InterruptedException e) {
             System.err.println("Interrupted waiting for process!");
        void doStuff() {
         readCron();
         listJobs();
         jobs.add("* * * * 4 cronjob");
         writeJobs();
         readCron();
         listJobs();
        public static void main(String[] args) {
         cron c = new cron();
         c.doStuff();
    }

  • How to create Mount Point in Linux

    Hi,
    I m new to Linux OS, want to install Oracle EBS R12 on OEL 5.6 . I have downloaded s/w and installed all required packages for OEL.
    Now i want to create Staging directory at location /u01/StageR12.
    Can anyone guide me for how to create Mount point /u01 and how to assign space of 53 GB to it.... ?
    Reply awaited...

    You're on the right path.
    Keep in mind though what you need partition wise just for o/s install. You should have at least 3 partitions:
    - a ?? GB partition for the / (root) mount (the size depends on what you will install and how much space you will need for running that s/w)
    - a 128MB or larger partition for the /boot mount
    - a ?? GB partition as swap space mount (typically rule of thumb is 2x RAM for 4GB and lower, else around 25% of total RAM)
    I would not create separate partitions for the old-style +/u01+ mount points for Oracle. That part of the OFA (Oracle Flexible Architecture) standards are old and pre-ASM and pre- automated Oracle managed data files.
    You need space for installing an Oracle Home. I do not see the need for a dedicated mount point for that. I use the root file system.
    You need space for the actual database. If you use Oracle ASM, then I would create raw partitions (across disks) to be used for database storage. These will not be mounted or formatted. Instead these will be assigned to an ASM diskgroup (and striped by default) and used for database storage.
    If you do not use ASM, then you need a cooked file system for storage of database file. In that case separate mount point(s) make sense. Also, it makes sense not to manually apply the old OFA standards, but instead use Oracle managed database files. In that case you need a single mount point (e.g.<i>/oracledb</i>) - and set that as the base directory for Oracle to use for the database. Oracle will create an OFA compliant database directory tree and files under that base directory/mount point.
    Keep in mind that the more mount points you have for the database, the more difficult your job becomes to manage storage. The easiest is a single mount point for the database and using Oracle to manage the OFA compliant side for you on that mount point.
    Also, you cannot and should not attempt some kind of manual striping layout of the database across multiple mountpoints. This may have made some sense back 10+ years ago. It no longer does.

  • How to create rule/monitor to generate alert for a reboot of Linux (Redhat) server?

    Need to receive an alert when a Linux server reboots. How can this rule/monitor be created?

    You can use the "Shell Command" templates to create a UNIX/Linux Shell Command (Alert) rule.  See the walkthrough and background here:
    http://operatingquadrant.com/2012/01/30/opsmgr-2012-unixlinux-authoring-templates-shell-command/
    The following command will identify the seconds the system has been "up" and return OK if it is greater than 15 minutes, and REBOOTED if the seconds up are less than 15 minutes.  Your Shell Command rule should alert if the StdOut value contains
    REBOOTED. 
    upseconds=`cat /proc/uptime |awk '{print int ($1 )}'`;if [ $upseconds -lt 900 ];then echo REBOOTED;else echo OK;fi
    www.operatingquadrant.com

  • How to create Global password and user information list in Linux

    Hi ,
    OS is : OEL, We have some requirement, we need to create global password and Users information, that location sould be accessable to all users, can any one guide me how to do it in Linux.

    Could you give us a little more details? Are u looking for something like a centralized authentication system? or....what exactly?
    kido

  • How to Create Shared Storage using VM-Server 2.1 Red Hat Enterprise Linux 5

    Thanks in advance.
    Describe in sequence how to create shared storage for a two guest/node Red Hat Linux Enterprise using Oracle 2.1 VM Server on Red Hat Linux Enterprise 5 using command line or appropriate interface.
    How to create Shared Storage using Oracle 2.1 VM Server?
    How to configure Network for two node cluster (oracle clusterware)?

    Hi Suresh Kumar,
    Oracle Application Server 10g Release 2, Patch Set 3 (10.1.2.3) is required to be fully certified on OEL 5.x or RHEL 5.x.
    Oracle Application Server 10g Release 2 10.1.2.0.0 or 10.1.2.0.1 versions are not supported with Oracle Enterprise Linux (OEL) 5.0 or Red Hat Enterprise Linux (RHEL) 5.0. It is recommended that version 10.1.2.0.2 be obtained and installed.
    Which implies Oracle AS 10.1.2.x is some what certified on RHEL 5.x
    I think it would be better if you get in touch with Oracle Support regarding this .
    Sorry , I am not aware of any document on migration from Sun Solaris to RH Linux 5.2 .
    Thanks,
    Sutirtha

  • How to create the Presistent store in NFS mountpoint

    HI  Everyone,
    Our requirement is we have to configure the Persistent store in NFS mount point, Please advise regarding this.
    Our Environment:
    Linux64bit, Weblogic 10.3.6, SOA 11.1.1.7, 11.2.0.3 DB
    1 Admin Server
    2 Managed Servers
    Node1: soa_server1,
    Node2: soa_server2
    1 Cluster (soa_cluster) the above managed servers are configured in this cluster)
    NFS Mout Point location: /oracle/app/Middleware/user_projects/domains/soa_domain/soa_cluster (Shared between both nodes)
    Domain home: /oracle/app/Middleware/user_projects/domains/soa_domain/ (Not shared seperate homes in both nodes)
    What we did:
    After SOA Installation and cluster configuration in post steps, we ran the below command in node1 and it created the persistent store in both nodes under the domain home.
    We tried by giving the NFS mount point value instead of domain home, but its not worked and given error. So for time being we went with domain home for storing persistent, used the below command for creation.
    java weblogic.WLST /oracle/app/Middleware/Oracle_SOA11g/bin/soa-createUDD.py --domain_home /oracle/app/Middleware/user_projects/domains/soa_domain/ --soacluster soa_cluster
    Please advise or provide command for creating persistent in NFS mount point.
    Thanks in Advance,
    Athish

    Hi Athish,
    I found this document very helpful and discussing about configuring shared storage and  steps on how to create and mount shared storage locations for SOA hosts
    http://docs.oracle.com/cd/E21764_01/core.1111/e12036/net.htm#SOEDG380
    Please check and let us know if it helps!!
    Thanks,
    Vijaya

  • How to run .jar on linux & how to create .jar file using java?

    hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
    thanks in advance.

    Look at the manual page for jar:
    # man jar
    Also you can run them by doing:
    # java -jar Prog.jar

  • How to Create Oracle Linux 5.7 64 bit Bootable DVD

    Hi Guru's,
    I have downloaded the OEL 5.7 64 bit from E-delivery.
    Below are the 2 zip filesV27570-01.zip and V27572-01.zip.
    I have extracted the V27570-01.zip and it's contained another zip called 'OracleLinux-R5-U7-Server-x86_64-dvd.iso'.
    If I extract the 'OracleLinux-R5-U7-Server-x86_64-dvd.iso' file then following folders and files exists.
    Folders - Cluster,ClusterStorage,images,isolinux,Server,VT.
    Files - .discinfo,.treeinfo,blafdoc.css,EULA,eula.en_US,eula.py,GPL etc.
    Could you please help me to create a bootable DVD for OEL 5.7 64 bit.
    Shall i just burn the DVD with OracleLinux-R5-U7-Server-x86_64-dvd.iso zip file?
    I am unable to understand how to create the bootable DVD for OEL 5.7 using those two zip files(V27570-01.zip and V27572-01.zip).
    Somebody can help me step by step to create a bootable DVD for OEL 5.7.
    Thanks in advance

    What possible reason could there be to install OL 5.7 since 5.9 is already available?
    Anyway, you do not need the source distribution or any boot CD. The standard installation DVD (V36332-01) is bootable and contains the necessary installation packages.
    If the download file has a .zip file name extension you need to unzip the ISO image before burning it to DVD. The download of version 5.9 is no longer zipped. In any case, before burning the ISO image file, make sure the file you download is not corrupted. You can check the "View Digest" page from the Oracle edelivery software download page and verify the checksum with the file you downloaded.
    The checksum must match, otherwise the downloaded file cannot be used.
    Under Microsoft Windows, see the following knowledgebase article:
    http://support.microsoft.com/kb/841290
    Under Linux and Mac OSX:
    $ openssl sha1 oracle_linux.iso
    To burn the ISO image:
    http://windows.microsoft.com/en-US/windows7/Burn-a-CD-or-DVD-from-an-ISO-file
    For Apple Mac OS X and older versions of MS Windows:
    http://www.wikihow.com/Burn-ISO-Files-to-DVD
    If you use any Type 2 virtualization software, such as VirtualBox, you do not need to burn any DVD and can use the ISO file directly.

  • How to create setup of project in linux ie (.sh)

    Hi..
    I have developed one chat software in swing.
    I have already created exe of my project in windows using JExeCreater.
    I want create setup of my project in linux but i don't know how to create it.
    Can you tell me any software name or procedure to create setup of my project.
    Also I am using External jar file for Look & Feel and System Tray Icon but How to add those jar file in setup.
    I have created jar of my project.It works fine on my system because in my JDK & JRE
    the supported jar included.
    But on other system it gives error that jar not included.It is not feasible to add supported jar file on every machine.
    Plz Help Me

    just create .bash file of u r project . That bash file includes all javafile path
    Run bash file from terminal as $./xyz.bash

  • How to create setup of project in linux means like windows .exe

    Hi..
    I have developed one chat software in swing.
    I have already created exe of my project in windows using JExeCreater.
    I want create setup of my project in linux but i don't know how to create it.
    Can you tell me any software name or procedure to create setup of my project.
    Also I am using External jar file for Look & Feel and System Tray Icon but How to add those jar file in setup.
    I have created jar of my project.It works fine on my system because in my JDK & JRE
    the supported jar included.
    But on other system it gives error that jar not included.It is not feasible to add supported jar file on every machine.
    Plz Help Me

    i dont know how to create linux setups, but you can put the libs used by your application into the same directory and add the class-path attribute to the manifest file of your application. so you can write a simple script (for each platform) and deploy it in a selfextracting zip

  • How to create a persona header bar that displays correctly in all resolutions - Firefox 20 Linux

    I'm in the process of learning how to create Personas for Firefox, and have already created one which I am using locally, but I ran into an unexpected behavior: If I create a header bar that is 3000 X 200 pixels as specified in the guidelines, only the right third or so displays in my browser when the theme is applied. To get this header to display "properly" (as I find aesthetically pleasing) I have to resize the header to 1280 X 85 pixels.
    Should not the header bar scale automatically, or do I need to produce a persona header at each possible resolution width to get it to display properly?
    For what it's worth, the footer appears to be displaying the left hand third, but this is not so objectionable in this case.
    A screenshot of the persona is available at http://www2.netdoor.com/~horus/Persona_2013-04.png.
    Thanks for any insights. I feel as though I must be misunderstanding something here.
    (I tried to post troubleshooting information the first time, but it overflowed the character limit...)

    Probably best to ask that sort of question, or research the answer in one of the AMO forums ('''A'''ddons '''Mo'''zilla). I think this one may be appropriate:
    * https://forums.mozilla.org/addons/viewforum.php?f=30
    ** I think you will need to register before posting
    I am wondering where are you doing the learning ?
    <br />There are also resources on MDN
    *https://developer.mozilla.org/en-US/addons
    Detailed discussion of the subject is probably off topic for this forum, but linking to resources or giving as imple answer is not so I hope some of the above are helpful. (You may even find someone else interested and knowledgeable posting a direct answer)

Maybe you are looking for

  • I've downloaded Lion. I have a boot disk. Can I use it to install on another machine?

    I downloaded Lion from the Mac App store and it's working 100%. Love it. After downloading and before installing, I copied the installESD.dmg (I think that's the correct filename) to a DVD (as per all the instructions out there to create a boot disc)

  • Trying to display the modified history in a Sharepoint Library

    Hello, new to sharepoint. Ive created a SharePoint library in which documents are checked in and out. In the columns Ive added the Modified By view. Id like that view to show all users and dates the file was modified. Not just the last user. Is this

  • Need to add a link on Page title bar

    HI, Can i know how can i add a link on page title bar. When i click on that link, it should open  a page in a separate window. Regards, Raju

  • Ipad GPS question

    Does the ipad(wifi) has GPS?

  • Slow IR

    I am doing tutorial - Building and Customizing an Interactive Report. When the application is running, it is too slow and sometime froze.If you have any experience, please share for me. Helen