Solved

No Outage : Directory to Filesystem conversion

Posted on 2014-04-01
5
270 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
  • 2
  • 2
5 Comments
 
LVL 61

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 500 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 61

Expert Comment

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
netstat -a in AIX unix 8 26
SSH commands for Nas4free 21 297
reinstall 1 56
unix solaris snoop command 6 44
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now