LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   re-sizing existing partition on RHEL 4 (https://www.linuxquestions.org/questions/linux-newbie-8/re-sizing-existing-partition-on-rhel-4-a-679667/)

khalil_noura 10-28-2008 08:31 PM

re-sizing existing partition on RHEL 4
 
Hi,

We are trying to install oracle in /usr partition but we need to re-size it to add more space from log partition.
We need help on how to achieve this task




This is a copy of df –k:


Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
5160576 2202436 2695996 45% /
/dev/cciss/c0d0p1 248895 40552 195493 18% /boot
none 8218716 0 8218716 0% /dev/shm
/dev/mapper/VolGroup00-LogVol04
5160576 43112 4855320 1% /home
/dev/mapper/VolGroup00-LogVol03
2064208 35916 1923436 2% /tmp
/dev/mapper/VolGroup00-LogVol05
5160576 2706644 2191788 56% /usr
/dev/mapper/VolGroup00-LogVol02
4128448 230672 3688064 6% /var
/dev/mapper/VolGroup01-lvol0
70526384 85828 66857992 1% /logs
/dev/mapper/VolGroup02-lvol0
141052792 93740 133793920 1% /data


Thanks For the help

kenneho 10-29-2008 02:28 AM

I'm sure you will find a good walkthrough on the net somewhere, but this is basically what you need to to:
  1. Unmount /logs
  2. Run disk check
  3. Reduce file system on /logs (resize2fs)
  4. Reduce logical partition (lvreduce)
  5. Increase /usr partition size (lvextend)
  6. Increase /usr file system size (resize2fs)
  7. Mount /logs

Hope this helps. I must warn that I haven't done this myself, but I'm pretty sure this is what needs to be done.


All times are GMT -5. The time now is 12:42 AM.