LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-21-2013, 01:52 AM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
I want to increase /tmp directory size to 2500 mb


Hello Experts ;

I am running 3 virtual machines for oracle database. [local PC]
I want to increase /tmp directory size. please provide suggestions to increase /tmp dir size. I am n't a linux guy.

PHP Code:
[root@rhel5 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              17G   16G  298M  99% /
/
dev/sda1             145M   10M  127M   8% /boot
tmpfs                 506M     0  506M   0
% /dev/shm
/dev/sda3             1.2G   35M  1.1G   4% /tmp 
When i tried to increase i got error

PHP Code:
# lvextend -L 2500M /dev/sda3  
  
"/dev/sda3"Invalid path for Logical Volume
  Please provide a volume group name
  lvextend
Add space to a logical volume 
Thanks in advance ..

Last edited by thiyagusham; 05-21-2013 at 01:54 AM.
 
Old 05-21-2013, 02:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
lvextend is only for LVM volumes, which yours clearly isn't. Do you have space to add to it immediately after the end of that partition? If not, it gets hard nad fairly unpleasant. Tools like gparted will help you do this IF it's possible. posting the output of "fdisk -l /dev/sda" would be a useful contribution here.
 
Old 05-21-2013, 02:07 AM   #3
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
PHP Code:
fdisk -/dev/sda

Disk 
/dev/sda21.4 GB21474836480 bytes
255 heads
63 sectors/track2610 cylinders
Units 
cylinders of 16065 512 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          19      152586   83  Linux
/dev/sda2              20         280     2096482+  82  Linux swap Solaris
/dev/sda3             281         433     1228972+  83  Linux
/dev/sda4             434        2610    17486752+   5  Extended
/dev/sda5             434        2610    17486721   83  Linux 
Thanks acid_kewpie
 
Old 05-21-2013, 02:14 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
I would suggest that that partition is not going to change size trivially. you'd need to shrink the extended partition, and the Linux partition inside it, move it to the end of the disk and then grow sda3... that's really really not fun. Why do you need to increase that space? Maybe if you really have to there's a sub location under /tmp that you could add a different partition to? reducing sda5 and putting an sda6 at the end would be significantly simpler.
 
1 members found this post helpful.
Old 05-21-2013, 02:18 AM   #5
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
I want to apply some patches on oracle binaries. So i want to increse /tmp dir size.
My current goal is i need space temporarily. My virtual machine total space is 20GB.

I want to allocate 2000 to 2500 MB space. How it's possible ? - any way please suggest me.
 
Old 05-21-2013, 02:21 AM   #6
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
I need some steps to follow or any link to understand what will i do ?
 
Old 05-21-2013, 10:20 AM   #7
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
How can i make lvm partition when installing linux on virtual machine ..

Hello Experts ;

PHP Code:
I tried to increase my /tmp dir size but unfortunately i coul NOT extend because i did noraml partitionSo i planned to install fresh linux (redhat5.1 
Kindly suggest me how can i make lvm logical volume?

- I need all some features. Experts advice me ..

Thanks in advance ..

HOST : windows 7 ultimate
Guest : Redhat 5.1
purpose : Oracle databases ..
Max size for my Virtual machine : 2o GB

Please see my previous thread .. what problem i faced ..

http://www.linuxquestions.org/questi...06#post4955506
 
Old 05-21-2013, 10:23 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,183

Rep: Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403
Quote:
Originally Posted by thiyagusham View Post
I want to apply some patches on oracle binaries. So i want to increse /tmp dir size.
My current goal is i need space temporarily. My virtual machine total space is 20GB.

I want to allocate 2000 to 2500 MB space. How it's possible ? - any way please suggest me.
...and....
Quote:
Originally Posted by thiyagusham
I need some steps to follow or any link to understand what will i do ?
Re-read post #4. You were given advice and steps to follow, but haven't. And please don't bump your own thread without providing more information, after only 4 minutes.

Again, WHY do you need to do this? Are you running out of space? Does something fail?

Last edited by TB0ne; 05-21-2013 at 10:25 AM.
 
Old 05-21-2013, 11:18 AM   #9
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hello TBone ;

After a lon gap ... I am getting msg... Thanks TBone ..

From Acid_kewpie reply ;

I don't know how to do this ..

If you really have to there's a sub location under /tmp that you could add a different partition to?
reducing sda5 and putting an sda6 at the end would be significantly simpler.
So i am planning to install linux freshly.

- Can you provide some steps to do ?

Thanks in advance ..
 
Old 05-21-2013, 11:48 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,183

Rep: Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403
Quote:
Originally Posted by thiyagusham View Post
Hello TBone ;
After a lon gap ... I am getting msg.
No idea what you mean.
Quote:
I don't know how to do this ..
Quote:
Originally Posted by acid_kewpie
If you really have to there's a sub location under /tmp that you could add a different partition to?
reducing sda5 and putting an sda6 at the end would be significantly simpler.
There are many guides on how to create partitions, and you could even just make a sub-directory under /tmp that symlinks to another partition where you DO have room. AGAIN: WHY DO YOU NEED TO DO THIS??? What program(s) are failing?
Quote:
So i am planning to install linux freshly.
- Can you provide some steps to do ?
If you're planning a fresh install, then none of this makes any sense. Just create a larger partition when you build the system. Also, from SEVERAL of your other threads, you say you're not a Unix/Linux administrator at your company...shouldn't such things be done by the system administrators?? Wouldn't they be the best resource for you to use?
 
1 members found this post helpful.
Old 05-21-2013, 11:58 AM   #11
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Yes TBone ..

No idea what you mean.

- Nothing.

WHY DO YOU NEED TO DO THIS??? What program(s) are failing?

- As usual . I am clearing ... my juniors doubt. When applying patch an Oracle binaries throwing error ... "space needed"

Make a sub-directory under /tmp that symlinks to another partition

- I will try .. and come back again ..

Thanks TBone ..
 
Old 05-21-2013, 01:12 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,183

Rep: Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403
Quote:
Originally Posted by thiyagusham View Post
WHY DO YOU NEED TO DO THIS??? What program(s) are failing?
- As usual . I am clearing ... my juniors doubt. When applying patch an Oracle binaries throwing error ... "space needed"
So an Oracle patch is failing, which is what you were asked several times now. And (as you've been told MANY times before), have you contacted Oracle support?? They can tell you how to install things, and make the installer look for other paths. Since you're a DBA, this should be something you already know, since it's covered in the Oracle guides, on their website, and through Oracle support.

If you're teaching your 'juniors', shouldn't you (again), get the correct, valid information to TEACH THEM???
Quote:
Make a sub-directory under /tmp that symlinks to another partition
- I will try .. and come back again ..
Which makes ZERO sense, since you just said you were going to do a fresh installation.

And again, since you've said several times that you are NOT the system administrator, this isn't something you should just DO, without knowing what the ramifications are going to be. AGAIN...you need to work with your system administrators to get this done.

You STILL are not following advice given to you. You are not utilizing support, product documentation, and you're not even talking with your co-workers, and are trying to perform systems-administration tasks without the proper rights/knowledge. If you truly are teaching others, you are STILL passing along bad information/practices, and are NOT DOING THEM ANY FAVORS.
 
Old 05-21-2013, 01:56 PM   #13
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Oh TBone ;

Major level issues managed by my leads. That's not a problem here.

I tried with some local or testing systems. Please undestand. there is no limit or restriction to do with local or testing systems.

- I am doing here only and not on production systems. Production env is working fine ..

and one more .. >> As per your advice ..I got following suggestion from LINUX Admin , i pasted here ..

If i create a symlink under /tmp to another partition, that doesnt help me.
if someone drops a file in /tmp directly, or if a program creates a file there. It will still use up space in /tmp.

Last edited by thiyagusham; 05-21-2013 at 01:57 PM.
 
Old 05-21-2013, 02:15 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,183

Rep: Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403Reputation: 4403
Quote:
Originally Posted by thiyagusham View Post
Major level issues managed by my leads. That's not a problem here. I tried with some local or testing systems. Please undestand. there is no limit or restriction to do with local or testing systems.
- I am doing here only and not on production systems. Production env is working fine ..
And we DO understand that...the problem is, you didn't bother telling us that to start with, did you???
Quote:
and one more .. >> As per your advice ..I got following suggestion from LINUX Admin , i pasted here ..
If i create a symlink under /tmp to another partition, that doesnt help me.
if someone drops a file in /tmp directly, or if a program creates a file there. It will still use up space in /tmp.
If that's what your administrators told you, they need to look for another line of work.

If you have 100GB free on /home (for example), and make a directory just for installation (say, "/home/inst"), and run "ln -s /home/inst /tmp/inst", the /tmp/inst directory will then have up to 100GB free. That's the way sylinks work, and HAVE worked that way for years. Re-directing your installation to use /tmp/inst (which you CAN do...but don't know how to, obviously), will work just fine. And yes...if someone just drops a huge file into the root of /tmp, then yes, it will obviously use that space...because you didn't put it in the location that has space free.

And AGAIN...if you're going to reinstall the system, then just rebuild it with a larger root partition, or a larger dedicated /tmp partition. This question, and the other duplicate one you started (http://www.linuxquestions.org/questi...ne-4175462883/), are pointless if you're going to rebuild.

Before you teach others...you first need to know how to do them yourself.
 
1 members found this post helpful.
Old 05-21-2013, 02:27 PM   #15
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
I am not sure, but as I understand it, you want to increase the size of /tmp within your Virtual Machines?
In that case just create an extra virtual disk and put your /temp there.

Cheers
 
1 members found this post helpful.
  


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
Increase /tmp size in centos 5.7 newbie16 Linux - General 8 05-10-2012 09:37 AM
How to increase size of my root directory (/) bashprog Linux - Software 7 10-28-2010 03:16 AM
how to increase /home directory size vin08rag Linux - Newbie 7 03-02-2010 03:19 AM
How can I increase size of /tmp directory smartgupta Solaris / OpenSolaris 4 11-10-2009 03:25 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 PM.

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