Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

asked on

how to increase space in linux production server

Dear Experts:

We are running crm on redhat enterprise Linux with LVM partitions now that var partition is filled I would like to shrink /opt and increase /var as crm is in /var.

Also this server is in VMware snapshot once taken and this should be deleted.

Please suggest , first should I have delete the snap shot and then do the LVM extension for /var.

attached log of disk layout and lvm output

please suggest, thanks in advance.
lvm-commands.txt
SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What Linux distro is this?
Avatar of Goutham

ASKER

linux distro redhat enterprise linux
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Goutham

ASKER

Thanks for the reply.

Disk provisioned size: 165 GB thin provision #  for the VM when checked from Vcenter


Actual operating system :
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        82G   76G  1.6G  98% /
udev            1.9G   88K  1.9G   1% /dev
tmpfs           1.9G  932K  1.9G   1% /dev/shm

#fdisk -l /dev/sda

Disk /dev/sda: 177.2 GB, 177167400960 bytes
255 heads, 63 sectors/track, 21539 cylinders, total 346030080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00002a1b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     4209029     2104483+  82  Linux swap / Solaris
/dev/sda2   *     4209030   178257239    87024105   83  Linux


since the server is suse enterprise linux 11 with SP3
it is not LVM

Please suggest the step by step to increase the space as actual used is 82 GB would like to make use of rest. does it require to boot from single user, please suggest step by step.