Cause: Unable to mount directory error while creating the VDB

  • 0
  • 1
  • Question
  • Updated 3 years ago
while provisioning a new VDB for source database, we are receiving the error Unable to mount directory.

We have performed all the hostchecker checks on target machine and all the tests are success, and still we are receiving error while creating a VDB.
Photo of Prem Reddy

Prem Reddy

  • 170 Points 100 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Sandro Latini

Sandro Latini, Employee

  • 350 Points 250 badge 2x thumb
Hi Prem,

Have you checked that the Delphix user in your target machine has the right sudo permissions to mount and unmount (I assume it's a Linux host)?

Regards
Sandro
Photo of Prem Reddy

Prem Reddy

  • 170 Points 100 badge 2x thumb

Hi,


Yes it's Linux system ( the target machine is a exadata x2-2 machine, and we have verified all the hostchecker checks for target was successful.   


here is the check which shows the mount/umount privileges to delphios user



/home/delphios$ sudo -l
Matching Defaults entries for delphios on this host:
    requiretty, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION
    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", !requiretty

Runas and Command-specific defaults for delphios:


User delphios may run the following commands on this host:
    (root) NOPASSWD: /bin/mount, (root) /bin/umount, (root) /bin/mkdir, (root) /bin/rmdir, (root) /bin/ps, (root) /bin/pargs


Regards

Prem

Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Can you test on the system you are attempting to provision to that the delphix user can mkdir /the/path/to/that/directory or sudo mkdir /the/path/to/that/directory
Photo of Prem Reddy

Prem Reddy

  • 170 Points 100 badge 2x thumb

Hi,


I am able to create the directory with the  delphios user  in the  mount point,

/u01/delphix_mount$ mkdir testvdb


/u01/delphix_mount$ ls -ltr

drwxr-xr-x 2 delphios dba 4096 Aug 14 04:04 testvdb


Regards

Prem

Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Can you post the text of the whole error please? Also a high-res screen shot would be helpful.
Photo of Prem Reddy

Prem Reddy

  • 170 Points 100 badge 2x thumb
Photo of Prem Reddy

Prem Reddy

  • 170 Points 100 badge 2x thumb

Hi,


I am able to mount the  filesystem from remote server to target, but it is not working with delphix engine... seems some configuration issue at delphix engine, need to mount/or give the permission to the target machine-- or target ip should be added in somewhere in t delphix engine side.


regards

Prem


Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
What information is given if you click that i with the circle around it?
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Can you attach the error log?
  1. Help
  2. Support Logs
  3. Download
  4. Extract the tgz
  5. log->mgmt_log->error.log
Photo of Neal Stack

Neal Stack, Official Rep

  • 2,392 Points 2k badge 2x thumb
Hello,

Are you able to mount the the "public" share on the Delphix engine? Delphix has a very small shared directory for testing purposes:

$ mkdir /tmp/test

$ sudo mount -F nfs -o rw,fg,hard,rsize=1048576,wsize=1048576,vers=3,nointr,timeo=600,proto=tcp,sec=sys nstack-4210.acme.com:/public /tmp/test

$ sudo umount /tmp/test


Does the host have multiple IP addresses? If the mount request comes from a different IP than the one that was specified when the environment was added, Delphix will reject it. Delphix blocks attempts to mount the shares from IP addresses other than the one that was specified in the environment.

There is a configuration parameter that Delphix technical support can change to turn off this layer of security if needed.

Thanks,
  Neal
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Good thinking on the second part, Neal.
Photo of Prem Reddy

Prem Reddy

  • 170 Points 100 badge 2x thumb

Hi,


This is an exadata (X2-2 half rack)  engineered system, and it is having multiple ip addresses. We are trying to  create  VDB's on multiple hosts  it is failing on all the nodes.

How to  know what ip address was added to the Delphix engine when it configured.

and How to change the configuration parameter settings to allow shares to mount?


Regards

Prem

Photo of Neal Stack

Neal Stack, Official Rep

  • 2,392 Points 2k badge 2x thumb
Hello,

When you add a host name or IP address as described here:
   https://docs.delphix.com/display/DOCS42/Adding+an+Oracle+Single+Instance+or+RAC+Environment

Only Delphix Technical Support can change the setting. Please log a new technical support case and upload a support bundle as described here:
https://support.delphix.com/hc/en-us/articles/201655216-Best-Practice-Uploading-Support-Logs

Thanks,
  Neal