?
Solved

No Outage : Directory to Filesystem conversion

Posted on 2014-04-01
5
Medium Priority
?
284 Views
Last Modified: 2014-04-01
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
Comment
Question by:aanya247
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 39970429
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
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 39970967
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
 

Author Comment

by:aanya247
ID: 39971121
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
 
LVL 16

Accepted Solution

by:
Joseph Gan earned 1500 total points
ID: 39971128
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
 
LVL 62

Expert Comment

by:gheist
ID: 39971364
This is data damaging as programs will keep files open under mount.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question