Solved

No Outage : Directory to Filesystem conversion

Posted on 2014-04-01
5
278 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 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 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 62

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bad Block Relocation for Synchronous GLVM AIX 7.1 2 76
what is a good general partitioning scheme for RHEL? 23 133
Convert OverPunch 25 65
help pulling data string using Awk 9 79
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…

790 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