LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-24-2009, 01:59 PM   #1
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Rep: Reputation: 30
Yum failing in update


I was trying to update my OS using yum and get...

Total size: 46 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
installing package kernel-2.6.18-164.6.1.el5.x86_64 needs 4MB on the / filesystem
installing package cups-1.3.7-11.el5_4.4.x86_64 needs 4MB on the / filesystem

Error Summary
-------------
Disk Requirements:
At least 4MB needed on the / filesystem.


Not sure why.

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-rvg_root
992M 765M 176M 82% / <<<< to me it looks like i have plenty 176M available...
/dev/mapper/VolGroup00-rvg_home
992M 77M 865M 9% /home
/dev/mapper/VolGroup00-rvg_usr
3.9G 2.2G 1.6G 59% /usr
/dev/mapper/VolGroup00-rvg_opt
1.5G 88M 1.3G 7% /opt
/dev/mapper/VolGroup00-rvg_var
992M 510M 432M 55% /var
/dev/mapper/VolGroup00-rvg_tmp
992M 34M 908M 4% /tmp
/dev/mapper/VolGroup00-rvg_tsom
20G 399M 19G 3% /opt/ibm/tsom
/dev/sda1 99M 55M 40M 59% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm


So I am assuming I need to increase root. I found this link but not sure if this is the correct command:
http://kbase.redhat.com/faq/docs/DOC-3175

parted /dev/mapper/VolGroup00-rvg_root print

Model: Linux device-mapper (dm)
Disk /dev/mapper/VolGroup00-rvg_root: 1074MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1 0.00kB 1074MB 1074MB ext3

Information: Don't forget to update /etc/fstab, if necessary.

Also found this link...

http://kbase.redhat.com/faq/docs/DOC-3175

one talks about parted and one talks about lv commands.
I dont seem to have this command on my system
ext2online
no man or anything
What is my best method to grow root? this is a prod system so I dont want to do the wrong command.

Last edited by unix1adm; 11-24-2009 at 02:13 PM.
 
Old 11-24-2009, 02:09 PM   #2
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
I am guessing i need to do

lvextend -L+256M /dev/mapper/VolGroup00-rvg_root
Then i would need to do (if the command was there)
ext2online /dev/mapper/VolGroup00-rvg_root

But I dont have ext2online command
mount
/dev/mapper/VolGroup00-rvg_root on / type ext3 (rw)

Last edited by unix1adm; 11-24-2009 at 02:12 PM.
 
Old 11-24-2009, 02:40 PM   #3
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
This may be a problem with yum ...
see....
https://bugzilla.redhat.com/show_bug.cgi?id=495911

nasty bug and almost caused me to corrupt my prod system.
 
Old 11-24-2009, 07:11 PM   #4
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 7,270

Rep: Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706
i would reinstall and give more room to / and /home

yes resizing a LVM is nice but it can be a pain to do if new to linux
/ = 992M LESS that one gig for the top root ????? what???????
/home = 992M
/usr = 3.9G
/var = 992M
/tmp = 992M
/boot = 99M
?? tsom = 20G
-- what --

try something like this
/tmp - not needed
/var -- not needed
/usr - might not be needed if there are only 1 or 2 users
Code:
/boot 72 to 100 meg 
/ 9 gig  ( 4 gig should be THE VERY smalest min. used) 
/home 5 gig 
tsom ??? the rest of the drive 
swap = 1 to 2 gig
 
Old 11-25-2009, 04:33 AM   #5
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
Reinstalling is not an issue for me. This is a prod system. I could have sworn when it was built root was given 1G
 
Old 11-25-2009, 04:41 AM   #6
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
I did a "yum clean all" and that cleaned up the other errors I had. I did have that bug. Not to increase root.
 
Old 11-25-2009, 04:52 AM   #7
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
When the box was built it was set to the following so not sure why it has smaller partitions.

/boot - set by the system ( ~200 MB)
/ - 1024 MB
/usr - 4096 MB
/var - 1024 MB
/home - 1024 MB
/tmp - 1024 MB
/opt - 1536 MB
This is its sister system and yum works fine. They both have more than 4M on /

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-rvg_root
992M 569M 372M 61% /
/dev/mapper/VolGroup00-rvg_opt
1.5G 90M 1.3G 7% /opt
/dev/mapper/VolGroup00-rvg_usr
3.9G 2.3G 1.5G 62% /usr
/dev/mapper/VolGroup00-rvg_home
992M 55M 887M 6% /home
/dev/mapper/VolGroup00-rvg_tmp
992M 120M 821M 13% /tmp
/dev/mapper/VolGroup00-rvg_var
992M 255M 687M 28% /var
/dev/mapper/VolGroup00-rvg_tsom
20G 1.3G 18G 7% /opt/ibm/tsom
/dev/mapper/VolGroup00-rvg_exp


tsom is our application directory... Not RH.
 
Old 11-30-2009, 09:29 AM   #8
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
this is what i did by the way...
lvextend -l 42 /dev/VolGroup00/rvg_root

Then;
resize2fs /dev/mapper/VolGroup00-rvg_root
(resize trhe filesystem to expand to fill the entire logical volume).

df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-rvg_root
1.3G 765M 470M 62% /
 
Old 12-03-2009, 09:27 AM   #9
unix1adm
Member
 
Registered: Oct 2008
Posts: 592

Original Poster
Rep: Reputation: 30
OK so after many tries and restores etc this upgrade still fails horribly. I still have a 9.04 disk around that I imaged but I decided on a clean install of Ubuntu and fedora12 and Have successfully migrated my user data over to the new system.

If I get the urge int he next few days/weeks when things slow down for the holiday I may try this again and strip the user of any custom setting like comiz etc and see what happens.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 03:33 AM
yum suddenly failing! GL1800 Fedora 1 10-18-2006 08:38 AM
rpm and yum commands failing on CentOS 4.2 amussaw Linux - Newbie 1 03-21-2006 10:06 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM


All times are GMT -5. The time now is 04:40 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration