Mounting a directory in a filesystem

Hi All,

Recently I came to know my / root file system is getting full because of application directory /siebel/

I have one option.
1) Down the application , take full backup
2)change the filesystem ownership
2)copy the contents into that filesystem

cp -pr /siebel/* /siebelfs/*

3)Inform app team to test and set their path.
4) Post success remove /siebel directory under /

But i want to mount that(siebel/)directory as a filesystem to an existing filesystem(siebelfs) , Becoz to avoid moving data. Is it possible???

Thank,
Thala

Of what?

And If unlucky will copy recursely till filesystem is full because of links...

So do as so:

cd /siebel
find . -print|cpio -pduml /siebelfs/.
cd /
rm -rf /siebel
mkdir /siebel

then perhaps using smit to change the mountpoint of siebelfs to /siebel...

In Man page,

The cpio command is not enabled for files greater than 2GB in size due to limitations imposed by XPG/4 and POSIX.2 standards.

My file size is 70GB.

kindly advise.

File or directory size?

/siebel/ directory is 70GB

Since you have tsm, use it to make an archive of /siebel

Remove /siebel
mount siebelfs /siebel

and retrieve giving /siebel as destination... ( no need because for tsm - same destination)

By the way : The limitation of cpio is fo files only... ( So you could give it a try... that is what I do to transfer FS server to server...)

Ok ill try this and reply the status after 6hrs.

If you want to play safe, do some cleanup in /siebel, then archive
mount the FS on /siebel and retrieve ( or restore... cant remember the terminology of tsm...), dont pay attention that the directory is still full!
OK you did stop siebel apps didnt you?
Then test, if successful, on now umount /siebel and do the delete since you kbow it works!

1 Like

Hi Vbe,

It was succesfull ! :slight_smile:

I just restored from tape to the /siebelfs ( datavg)
Then renamed the old directory under (rootvg) /siebel to /siebel_old
Then renamed the filesystem to /siebelfs to /siebel (datavg)

Application was tested with same path becoz the path remains same, Only Volume group is changed.

It was successfull.

Will there be any dependency with the old /siebel directory (rootvg) for removing.

Normally not... still in paranoid mode, you would start by leavaing it alone for a week, the next week do a chmod 100 /siebel_old and after a week of no complains, decide it is safe to remove...