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. |
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) |
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. |
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 |
Reinstalling is not an issue for me. This is a prod system. I could have sworn when it was built root was given 1G
|
I did a "yum clean all" and that cleaned up the other errors I had. I did have that bug. Not to increase root.
|
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. |
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% / |
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. |
All times are GMT -5. The time now is 12:05 PM. |