Mounting a directory in a filesystem


 
Thread Tools Search this Thread
Operating Systems AIX Mounting a directory in a filesystem
# 1  
Old 05-02-2014
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
Code:
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

Last edited by vbe; 05-02-2014 at 08:17 AM.. Reason: code tag
# 2  
Old 05-02-2014
Quote:
2)change the filesystem ownership
Of what?
Quote:
2)copy the contents into that filesystem
cp -pr /siebel/* /siebelfs/*
And If unlucky will copy recursely till filesystem is full because of links...

So do as so:
Code:
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...
# 3  
Old 05-02-2014
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.
# 4  
Old 05-02-2014
File or directory size?
# 5  
Old 05-02-2014
/siebel/ directory is 70GB
# 6  
Old 05-02-2014
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...)

Last edited by vbe; 05-02-2014 at 08:43 AM.. Reason: completd and corrected typos
# 7  
Old 05-02-2014
Ok ill try this and reply the status after 6hrs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mounting NFS filesystem

Hi All, I need to mount an nfs filesystem as below. xxx.xx.xx.xxx:/media/nss/Rocky Catherine/logs For the above as there is space in between the name, hoping it will not mount, if i give it with double quotes as below will it work? mount "xxx.xx.xx.xxx:/media/nss/Rocky... (2 Replies)
Discussion started by: Rockyc3400
2 Replies

2. Shell Programming and Scripting

Mounting filesystem

Could anyone help me please as I am stuck up. I want to mount /home/dun/maitree location of server A in server B to location /home/dun/tibco .Both server A and server B are Linux machine .The problem is that /home/dun/tibco of server B has some files and directory in it so after doing this... (1 Reply)
Discussion started by: maitree
1 Replies

3. Solaris

Problem mounting iscsi filesystem

Hi, I have a strange problem with iscsi. My vfstab entry looks like this: /dev/md/dsk/d100 /dev/md/rdsk/d100 /zones/ssapp0895v01 ufs 2 iscsi - After rebooting, the filesystem gets mounted with the option "nosetuid". I believe the default should be "suid" /zones/ssapp0895v01 on... (0 Replies)
Discussion started by: alvaro66
0 Replies

4. Solaris

Need help on filesystem mounting

Hi techies, I am pretty new to Solaris. So the qstn might be a silly one. I had a local disk with Solaris installed. I have done ufsdump to a SAN disk and after that s3 and s7 slices are giving the following error : "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY." I had the following... (4 Replies)
Discussion started by: manojsomanath
4 Replies

5. Red Hat

Mounting Windows Filesystem

i am new to linux i want to know how to create ntfs partition and mount all windows drives in linux please help me (2 Replies)
Discussion started by: arunkmohan18
2 Replies

6. Filesystems, Disks and Memory

mounting filesystem twice on Solaris

Hello, In a shared storage environment is their anything to stop being able to mount the same filesystem on two hosts by accident, a flag being set or something on the storage? If it did happen would one of the hosts panic? (2 Replies)
Discussion started by: Actuator
2 Replies

7. AIX

Automatically mounting a filesystem after a reboot

Hi All, I am new to AIX. I am having problems mounting a filesystem after a system reboot. Steps: 1. Create and Map LUN to host 2. On the host, to detect/configure the LUN: /usr/sbin/cfgmgr 3. Create a filesystem: mkfs -V vxfs /dev/hdisk757 4. Create a mountpoint: mkdir -p... (3 Replies)
Discussion started by: austin4397
3 Replies

8. Solaris

filesystem mounting

Hi all, I have a question regarding filesystem mounting. I have one Sun box(V240) and a NAS on a network. Sun machine shows the following output of df -k command. # df -k Filesystem kbytes used avail capacity Mounted on /dev/md/dsk/d0 11094316 8509226 2474147 78% ... (2 Replies)
Discussion started by: prashantchavan
2 Replies

9. Red Hat

Mounting NTFS filesystem

I'm currently running dual boot Linux & Windows. Linux is Fedora core 3. I've downloaded and installed the rmp that was needed so that I could mount a NTFS filesystem. But when I go to mount the filesystem I'm still getting error's stating it does not support the NTFS filesystem. Also the... (9 Replies)
Discussion started by: woofie
9 Replies

10. BSD

mounting filesystem error

I get error that I have to rund fsck manually on my filesystem, but when I go to run fsck on filesystem ad1s1e I get an error that says can't open device not configured so fsck won't rund on that filesystem. I am only booting up in single user mode. I noticed when I look in the fstab file the... (1 Reply)
Discussion started by: rbizzell
1 Replies
Login or Register to Ask a Question