volumn size re-arrangement
#df
Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 1984044 363012 1518620 20% / /dev/mapper/VG00-LV02 1967952 36556 1829816 2% /home /dev/mapper/VG00-LV01 3967680 375500 3387380 10% /var /dev/mapper/VG00-LV00 7935392 5183836 2341956 69% /usr /dev/mapper/VG01-LV00 2034508904 121349568 1860609296 13% /mail The above is the server file size arrangement , we only have 1 harddisk . , I would like to create a directory /ora , I would like to assign 100G to this new directory , but / only have 1G available space now , would advise what is the best method to create it , is it physically put the data to /mail and set a s.link to / logically ? is there any other good method , re-size the partitition is possible or not ? Thanks |
You provide insufficient data for anyone to properly help.
Redhat produce an LVM Admin guide, available for free download. I suggest you do so and read it as it explains concepts very well. |
may be I am not clear to state what I want.
I want to have a /ora directory and assign 100G to this directory , but there is 1G now , what can I do ? thanks |
How do you think: repeating your post will help?
You provide insufficient data for anyone to properly help. |
Are you using LVM? That might complicate things, but perhaps not. In any case, step one is to BACK EVERYTHING UP! If you're trying to do what I think you are, it's easy to mess up and lose a lot of data.
Do you have a graphical environment, or do you need to do it all via the command line? I gather that you're trying to resize partitions, adding one, and assigning it a mount point. Is this correct? If so, gparted is a great tool for most of this (graphical). If you don't have a GUI, we can dig into the commands you'd need to use. --Dane |
Quote:
|
for example: /ora will be used by oracle? What will be put on that (probably simbolic link will not be sufficient)? Resizing the partition is documented. Are you familiar with that? Also DaneM asked: what kind of tools do you want to use (GUI/cli).....
|
Thanks reply .
1. /ora is not for oracle 2. will put user data on /ora , no symbolic link will be in this directory . 3. I am not familiar with that , but I can try . 4. there is no GUI tool now , if it is useful , I can install it , I prefer use command line. |
so you need to decide: do you want a new partition or you want to put it into /dev/mapper/VG01-LV00 (/mail) as a directory?
In the first case you need to shrink /mail and create a new partition and filesystem, in the second case you only need to create a directory and a symbolic link. |
Quote:
besides , if use the first case , the /ora can be shown when using command "df" ? thanks |
If you want to avoid symbolic links, you have two options: mount binding (mounting an already-mounted directory in an additional location) or repartitioning.
To make it show up in df, you have to repartition. If you have a GUI on the machine, the simplest way to explain what to do (AFTER YOU BACKUP EVERYTHING) is to install either gparted (for non-KDE systems) or QTParted/KParted (for KDE systems). You'll need to unmount everything on the disk to do this, so you might have to reboot from a live CD that has one of these tools installed (most do). Pick the drive you want to repartition, and move stuff around. When it's the way you want it, click "apply" (or similar). I can't stress enough how important it is to backup the ENTIRE DRIVE if you repartition. Best to clone it, just in case something goes wrong. Good luck! --Dane Edit: KDE4 has its own partition editor. Try that first, if you're using KDE. |
All times are GMT -5. The time now is 02:08 AM. |