LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   volumn size re-arrangement (https://www.linuxquestions.org/questions/linux-newbie-8/volumn-size-re-arrangement-4175522667/)

byran cheung 10-19-2014 09:51 PM

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

syg00 10-20-2014 04:16 AM

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.

byran cheung 10-20-2014 04:38 AM

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

pan64 10-20-2014 05:44 AM

How do you think: repeating your post will help?
You provide insufficient data for anyone to properly help.

DaneM 10-20-2014 05:36 PM

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

byran cheung 10-20-2014 11:49 PM

Quote:

Originally Posted by pan64 (Post 5256412)
How do you think: repeating your post will help?
You provide insufficient data for anyone to properly help.

thanks reply , what information that I need to provide ?

pan64 10-21-2014 12:25 AM

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).....

byran cheung 10-21-2014 08:29 PM

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.

pan64 10-22-2014 12:16 AM

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.

byran cheung 10-22-2014 10:11 PM

Quote:

Originally Posted by pan64 (Post 5257529)
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.

thanks reply , the first case is better for management ? use symbolic link seems will make the directory confused , compare two method , symbolic link is simple but not good , right ?
besides , if use the first case , the /ora can be shown when using command "df" ?

thanks

DaneM 10-22-2014 11:56 PM

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.