mount file system
Dear all,
We are running RHEL ES 4.0 We have root file system with 600GB. we created a directory called u01 inside root , now we want to mount this directory u01 inside root as a new file system /u01 with 500 GB allocated to it.. How can I do this ? Kai |
If I read you correctly you're saying you want to take 500GB of the 600GB root and make it a separate filesystem mounted as /u01?
It doesn't work like that. You'd have to reduce the root filesystem to 100 GB then create a new filesystem of 500 GB and mount that. That is to say you don't allocate from root - you allocate from free space and if root has it all allocated then you don't have any free space. Reducing a filesystem would depend on many things: Is it a partition? a logical volume? a software raid (meta disk)? How full is root currently? How old is this filesystem? Doing this for any filesystem would be tricky - doing it for root could be very tricky indeed. Reducing a filesystem or its underlying device can lose data depending on where it is on disk. |
Quote:
If I read you correctly you're saying you want to take 500GB of the 600GB root and make it a separate filesystem mounted as /u01? Yes It doesn't work like that. You'd have to reduce the root filesystem to 100 GB then create a new filesystem of 500 GB and mount that. That is to say you don't allocate from root - you allocate from free space and if root has it all allocated then you don't have any free space. How can I reduce the root file system t0 100GB ? Reducing a filesystem would depend on many things: Is it a partition? a logical volume? a software raid (meta disk)? Its a logical volume How full is root currently? its only 5% filled. How old is this filesystem? New server installed 1 month back. Kai |
You need to
EDIT: In the light of new information (There was only the OP when I started composing it) the above omits the really interesting part about shrinking root :) |
you can use something like gparted to reduce filesystems and create new partitions etc. However, make SURE you backup EVERYTHING. It should be fine, but things do happen when you start messing with filesystems. I have never reduced a partition by 500GB so who knows what will happen.
After you have your new partition creaded you can mount that partition as your new filesystem. It's generally best to do all this during your setup of Linux, but it's not impossible to do. |
Quote:
EDIT: and which file system type is used for / ? |
All times are GMT -5. The time now is 05:19 AM. |