Pages

Saturday, March 12, 2016

Creation Of Mount Point In Linux

Creation Of Mount Point In Linux

ENTRIES AT THE SOURCE MACHINE

[root@R0458 /]# ls
A01   dev   lib         misc  opt   root  selinux  sys       u01
bin   etc   lost+found  mnt   proc  rpms  soft     tftpboot  usr
boot  home  media       net   R12   sbin  srv      tmp       var

root@R0458 /]# vi /etc/exports
root@R0458 /]# service network restart

Shutting down interface eth0:                                  [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                              [  OK  ]
Bringing up interface eth0:                                      [  OK  ]
Determining IP information for eth0... done.
                                                       
root@R01458 /]# service nfs restart

Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                    [  OK  ]
Shutting down NFS services:                                  [  OK  ]
Starting NFS services:  exportfs: No options for /R12 172.24.3.30: suggest 172.24.3.30(sync) to avoid warning
exportfs: No host name given with /R12 (rw,sync), suggest *(rw,sync) to avoid warning
exportfs: No options for /soft 172.24.13.13: suggest 172.24.13.13(sync) to avoid warning
exportfs: No host name given with /soft (rw,sync), suggest *(rw,sync) to avoid warning
exportfs: No options for /R12 172.24.2.22: suggest 172.24.2.22(sync) to avoid warning
exportfs: No host name given with /R12 (rw,sync), suggest *(rw,sync) to avoid warning
exportfs: duplicated export entries:
exportfs:       *:/R12
exportfs:       *:/R12
exportfs: No options for /R12 172.24.1.14: suggest 172.24.1.14(sync) to avoid warning
exportfs: No host name given with /R12 (rw,sync), suggest *(rw,sync) to avoid warning
exportfs: duplicated export entries:
exportfs:       *:/R12
exportfs:       *:/R12
exportfs: No options for /R12 172.24.3.27: suggest 172.24.3.27(sync) to avoid warning
exportfs: No host name given with /R12 (rw,sync), suggest *(rw,sync) to avoid warning
exportfs: duplicated export entries:
exportfs:       *:/R12
exportfs:       *:/R12
                                                                            [  OK  ]
Starting NFS quotas:                                          [  OK  ]
Starting NFS daemon:                                        [  OK  ]
Starting NFS mountd:                                         [  OK  ]
[root@R0458 /]#

ENTRIES AT THE EXPORT FILE

/R12 172.24.3.27 (rw,sync)
~                                                                            
~                                                                               ~                                                                            
~                                                                            
"/etc/exports" 5L, 137C


ENTRIES AT THE TARGET MACHINE

root@brn Desktop]# df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             220G  127G   83G  61% /
/dev/sda3             996M   35M  910M   4% /tmp
/dev/sda1             965M   23M  893M   3% /boot
tmpfs                 3.0G   12K  3.0G   1% /dev/shm

root@brn Desktop]# ls

beginning-shell-scripting.pdf  new file 2~
brn.dmp                        oracle10ginstallsteps.doc
brn_imp.log                    p_123
brn.log                        prasad ora
control.sql                    PTCwork.txt
control.sql~                   R12
Database_Cloning               Rman_backup
EMP_IMP_11g                    rman-duplicate-database-on-the-same-host.doc
EMP_IMP_Export_11g             Sam Alapati 11g.pdf
exp                            Screenshot-1.png
exp_hr.log                     Screenshot-2.png
hr.dmp                         Screenshot.png
new file                       SNAP R12
new file~                      STEPS_FOR_DUPLICATE_DB
new file 1                     temp
new file 1~                    total_space
new file 2
root@brn Desktop]# cd R12/
root@brn R12]# cd /
root@brn /]# ls

11gdb  BRN_DOCUMENT  etc   lost+found  mnt  proc  selinux  srv       tmp  var
bin    clone_11g     home  media       net  root  setups   sys       u01
boot   dev           lib   misc        opt  sbin  Soft     tftpboot  usr

root@brn /]# mkdir /R12
root@brn /]# ll
total 196

drwxrwxrwx   3 oracle dba   4096 May 14 12:16 11gdb
drwxr-xr-x   2 root   root  4096 May 14 02:00 bin
drwxr-xr-x   4 root   root  4096 May 14 00:04 boot
drwxrwxrwx   5 oracle dba   4096 May 14 10:34 BRN_DOCUMENT
drwxrwxrwx   3 oracle dba   4096 Jun  6 15:16 clone_11g
drwxr-xr-x  12 root   root  3720 Jun 12 18:23 dev
drwxr-xr-x 132 root   root 12288 Jun 12 16:57 etc
drwxr-xr-x   4 root   root  4096 May 24 18:29 home
drwxr-xr-x  13 root   root 12288 May 14 01:59 lib
drwx------   2 root   root 16384 May 13 23:49 lost+found
drwxr-xr-x   2 root   root  4096 Jun 12 15:28 media
drwxr-xr-x   2 root   root     0 Jun 10 10:39 misc
drwxr-xr-x   2 root   root  4096 Aug  8  2008 mnt
drwxr-xr-x   2 root   root     0 Jun 10 10:39 net
drwxr-xr-x   6 root   root  4096 May 14 14:30 opt
dr-xr-xr-x 222 root   root     0 Jun 10 10:38 proc
drwxr-xr-x   2 root   root  4096 Jun 12 18:36 R12
drwxr-x---  23 root   root  4096 Jun 12 17:04 root
drwxr-xr-x   2 root   root 12288 May 14 02:00 sbin
drwxr-xr-x   2 root   root  4096 May 13 23:50 selinux
drwxrwxrwx   3 oracle dba   4096 May 14 11:53 setups
drwxrwxrwx   3 root   root  4096 May 22 17:23 Soft
drwxr-xr-x   2 root   root  4096 Aug  8  2008 srv
drwxr-xr-x  11 root   root     0 Jun 10 10:38 sys
drwxr-xr-x   3 root   root  4096 May 13 23:58 tftpboot
drwxrwxrwt   9 root   root  4096 Jun 12 18:22 tmp
drwxrwxrwx   6 oracle dba   4096 Jun 12 17:20 u01
drwxr-xr-x  15 root   root  4096 Jun 12 13:55 usr
drwxr-xr-x  28 root   root  4096 May 14 00:06 var

root@brn /]# mount -t nfs 172.24.4.18:/R12 /R12
root@brn /]# df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             220G  127G   83G  61% /
/dev/sda3             996M   35M  910M   4% /tmp
/dev/sda1             965M   23M  893M   3% /boot
tmpfs                 3.0G   12K  3.0G   1% /dev/shm
172.24.4.5:/R12       193G  147G   36G  81% /R12

root@brn /]# ll

No comments:

Post a Comment