LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2014, 10:51 PM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
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

Last edited by byran cheung; 10-19-2014 at 10:52 PM.
 
Old 10-20-2014, 05:16 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
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.
 
Old 10-20-2014, 05:38 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-20-2014, 06:44 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,516

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
How do you think: repeating your post will help?
You provide insufficient data for anyone to properly help.
 
Old 10-20-2014, 06:36 PM   #5
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 853

Rep: Reputation: 110Reputation: 110
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
 
Old 10-21-2014, 12:49 AM   #6
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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 ?
 
Old 10-21-2014, 01:25 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,516

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
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).....
 
Old 10-21-2014, 09:29 PM   #8
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-22-2014, 01:16 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,516

Rep: Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436Reputation: 2436
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.
 
Old 10-22-2014, 11:11 PM   #10
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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
 
Old 10-23-2014, 12:56 AM   #11
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 853

Rep: Reputation: 110Reputation: 110
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.

Last edited by DaneM; 10-23-2014 at 12:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VG and LV volumn ust Linux - Newbie 6 07-29-2013 09:42 AM
mount volumn elainelaw Linux - Newbie 1 04-12-2010 09:02 AM
volumn control huangyongqiang Linux - Newbie 5 12-16-2007 06:41 AM
Negative volumn size sunhui Linux - General 1 03-08-2007 02:22 PM
Audio Volumn in 10.1 raylhm SUSE / openSUSE 4 12-07-2006 03:29 AM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration