increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              77G   16G   75G  98%    /
/dev/sda1             2.4G   82M  2.2G   4%    /boot
tmpfs                 3.8G     0  3.8G       0%    /dev/shm
none                  3.8G  104K  3.8G      1%   /var/lib/xenstored

pls suggest

Maybe any live CD/USB with gparted can help? If you do not have any space on sda1 I think you should either remove something or buy another disk...

Sorry if this is a fool suggestion.

no i have space. i have created 10 Gb lvm, now i want to increase root size...

/dev/sda2 77G 16G 75G 98% /

here 16 GB is used then how come 98% filled check the system.....

Ravi,

As with other logical volumes you cannot the extend / volume easily.

df output shows only 16 GB is used, check the list of all the open files via lsof command so that you can get an idea which is causing high disk space consumption by looking at the output.

Something does not make any sense here.

First of all the OP states that he is using LVM but that is not what df output shows.
Second, the df output for / is suspicious.

In case you created a new 10 GB logical volume (besides your non-LVM root disk), you cannot attach a logical volume to a disk that is not managed by LVM.

Please post the output of:

lvdisplay
vgdisplay
pvdisplay
fdisk -l
lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg0/lvm
  VG Name                vg0
  LV UUID                4q8Yrk-wkJh-cxyY-rVil-9nNs-Td3i-ZoMfey
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10.00 GB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

[root@UPID-RHEL7 ~]#
[root@UPID-RHEL7 ~]# vgdisplay
  --- Volume group ---
  VG Name               vg0
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               301.43 GB
  PE Size               4.00 MB
  Total PE              77165
  Alloc PE / Size       2560 / 10.00 GB
  Free  PE / Size       74605 / 291.43 GB
  VG UUID               Jpz5kZ-iaJd-HedN-Ehab-oQgX-XRXL-eQKOCy

[root@UPID-RHEL7 ~]#
[root@UPID-RHEL7 ~]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda6
  VG Name               vg0
  PV Size               301.43 GB / not usable 2.90 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              77165
  Free PE               74605
  Allocated PE          2560
  PV UUID               Y79DFU-DlDa-jcvZ-1vcS-aufc-8J00-hUAVUs

[root@UPID-RHEL7 ~]#
[root@UPID-RHEL7 ~]# fdisk -l

Disk /dev/sda: 437.9 GB, 437998583808 bytes
255 heads, 63 sectors/track, 53250 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         319     2562336   83  Linux
/dev/sda2             320       10581    82429515   83  Linux
/dev/sda3           10582       12684    16892347+  82  Linux swap / Solaris
/dev/sda4           12685       53250   325846395    5  Extended
/dev/sda5           12685       13901     9775521   83  Linux
/dev/sda6           13902       53250   316070811   8e  Linux LVM

Your root partition is not part of an LVM so you can't directly attach your volume named "lvm".

It's possible to migrate your information from a standard root partition to a logical volume. You'll just need a large enough logical volume (77 GBs >)

Keep in mind that downtime is required as you cannot perform it while / is mounted.

Here's a quick guide for RHEL-based systems: Convert root filesystem to LVM