• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

No Outage : Directory to Filesystem conversion

Is there a way to migrate a directory to its own filesystem using the same path WITHOUT AN OUTAGE....??

Example sas_work is a directory under /opt, I want to create a filesystem /opt/sas_work and mount it...I know this cannot be done the conventional way, So I wanted to know if there is any backdoor method...

This is on AIX, I just want to get an experts opinion.
0
aanya247
Asked:
aanya247
  • 2
  • 2
1 Solution
 
gheistCommented:
You need to close all files in directory to mount filesystem
If you rsync it copies just differences and must be couple of seconds of outage.
0
 
Joseph GanSystem AdminCommented:
I thought was oppsite, if you dismount a filesystem which requires no activities within the filesystem. If you mount a new filesystem from a directory should be fine.

Nothing stop for you to try, worst case is unsuccess.
0
 
aanya247Author Commented:
Here is the scenario, Lets consider /opt/sas_works as a directory with data, now If I try to create a FS name /opt/sas_works I get an error saying sas_works  exists and my FS is not  created, My question is to ask if there is another alternative with out taking an outage.
0
 
Joseph GanSystem AdminCommented:
You can't creat the same name of FS, as the directory already there, you just need to alocate a disk partition and mount it.
0
 
gheistCommented:
This is data damaging as programs will keep files open under mount.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now