Skip to content

Can we attach EFS volume to AIX Server?

0

We are migrating from Oracle on-prem running on AIX to RDS for Oracle. We want to attach this EFS volume to Oracle AIX server in order to create Directory in Oracle. So that we could attach this EFS volume to EC2 instance (jumphost) and run the expdp and impdb commands

CREATE OR REPLACE DIRECTORY test_dir AS '/path/to/efs/share'; GRANT READ, WRITE ON DIRECTORY test_dir TO username;

We want to run below commands form EC2 jumphost: expdp user/usepass schemas=userschema directory=test_dir dumpfile=userschema.dmp logfile=expdp_userschema.log

2 Answers
0

Amazon EFS is designed to be mounted on Linux-based operating systems, but it does not support mounting on AIX servers. AIX is an IBM Unix operating system that is not compatible with the NFS v4.1 protocol implementation used by Amazon EFS.

For your Oracle database migration from on-premises AIX to RDS for Oracle, you'll need to use an alternative approach. Instead of trying to mount EFS directly on your AIX server, you should:

  1. Create an EC2 Linux instance to serve as your jumphost
  2. Mount the EFS volume on this EC2 instance
  3. Use Oracle Data Pump to export your data from the AIX server to a local directory
  4. Transfer those dump files to the EC2 instance (using SCP, SFTP, or other file transfer methods)
  5. Once the files are on the EC2 instance with mounted EFS, you can then import them to your RDS for Oracle instance

For the RDS for Oracle side, you can create an Oracle directory that points to the EFS file system using the rdsadmin.rdsadmin_util.create_directory_efs procedure. For example:

BEGIN
rdsadmin.rdsadmin_util.create_directory_efs(
p_directory_name => 'DATA_PUMP_DIR_EFS', 
p_path_on_efs    => '/rdsefs-fs-1234567890abcdef0/datapump1');
END;
/

You can then use this directory for your Data Pump import operations into RDS for Oracle.
Sources
Amazon EFS integration - Amazon Relational Database Service
Transferring files between RDS for Oracle and an Amazon EFS file system - Amazon Relational Database Service

answered a year ago

0

I have tired this, unable to attach EFS volume to AIX because AIX des not have NFSv4 client.

What you can do as alternative is to have jumphost in-between, run expdp in AIS and rsynch or scp the dumps to Linux jump box which has EFS mounted.

Hope this helps.

answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.