spcae issue of a file system

 
SOLVED
Go to solution
praveen..
Super Advisor

spcae issue of a file system

hi,
this is the detail of one file system:
/dev/vg01/oradb-ladb1p01 234881024 183825476 47864621 79% /oradb-ladb1p01

I need to umount /oradb-ladb1p01 and mount a new directory /oradb-ladblp-new.

will i get all the 234881024 KB space for my new directory?

if not, then what i have to do?

please suggest
7 REPLIES 7
Don Wilt
Advisor

Re: spcae issue of a file system

Praveen,
The space is all on the lvol, not the file system. All data will remain intact.
umount /oradb-ladb1p01
mount /dev/vg01/oradb-ladb1p01 /oradb-ladblp-new

Don't forget to update /etc/fstab
James R. Ferguson
Acclaimed Contributor
Solution

Re: spcae issue of a file system

Hi:

Unmounting one directory and mounting another one on the same filesystem doesn't remove anything. You will simply see the same files rooted at a different directory (mountpoint).

If you truly want to destroy the data in the filesystem and regain all of its space, simply unmount the mounted directory; 'newfs' the filesystem; and mount another directory.

Regards!

...JRF...
praveen..
Super Advisor

Re: spcae issue of a file system

No, I am asking if i mount the new file system,

will i get all the 234881024 KB space for my new file system?
Chan 007
Honored Contributor

Re: spcae issue of a file system

Prav,

No,

As the data will still remain on the lvol.
The data will be carried with the lvol.
Chan
praveen..
Super Advisor

Re: spcae issue of a file system

which command i have to use to damage the data and i want to give the full space to my new file system
DCE
Honored Contributor

Re: spcae issue of a file system



change to /oradb-labdb1p01

rm -rf *

will remove all of the files.

be very careful - if you are in the wrong directory ou can erase your entire system.
praveen..
Super Advisor

Re: spcae issue of a file system

Thanks