Increase Linux partition size

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Increase Linux partition size
# 1  
Old 01-23-2011
Increase Linux partition size

Hi All,

this should be probably a already asked question but highly appreciate if someone can guide me on this

i have a business critical linux system (which is running a SMS system) where one of it's partition size is shrinking
i want to know the possible options of increasing the size of that partition without having any downtime(system reboot etc..).

fdisk and df -h outputs are as below (the partition with issue is bases)

Code:
[lkcopr01 bdb2]# fdisk -l

Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes
255 heads, 32 sectors/track, 17433 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot    Start       End    Blocks   Id  System
/dev/cciss/c0d0p1   *         1        64    261104   83  Linux
/dev/cciss/c0d0p2            65       578   2097120   82  Linux swap
/dev/cciss/c0d0p3           579      1092   2097120   82  Linux swap
/dev/cciss/c0d0p4          1093     17433  66671280    f  Win95 Ext'd (LBA)
/dev/cciss/c0d0p5          1093      7500  26144624   83  Linux
/dev/cciss/c0d0p6          7501      9042   6291344   83  Linux
/dev/cciss/c0d0p7          9043      9556   2097104   82  Linux swap
/dev/cciss/c0d0p8          9557     10070   2097104   82  Linux swap
/dev/cciss/c0d0p9         10071     17433  30041024   83  Linux
[lkcopr01 bdb2]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p6     6.0G  2.6G  3.1G  47% /
/dev/cciss/c0d0p9      29G   26G  971M  97% /bases
/dev/cciss/c0d0p1     247M   15M  220M   7% /boot
/dev/cciss/c0d0p5      25G   17G  6.5G  73% /home
none                  2.0G     0  2.0G   0% /dev/shm
lkcocm01:/mnt/mms/mail/0
                      136G  125G   12G  92% /bases/mms/mail/0
lkcocm01:/mnt/mms/tmp
                      136G  125G   12G  92% /bases/mms/tmp
lkcocm01:/mnt/mms/mms_cdr
                      136G  125G   12G  92% /home/proxy/var/log/chc

please help on this since i don't think i can manage this partition for long periodSmilie

thanks
Asela

---------- Post updated 01-24-11 at 12:08 AM ---------- Previous update was 01-23-11 at 11:57 PM ----------

i have heard about LVM but don't know can use same regarding this case(without rebooting and with out losing any data)

Last edited by Scott; 01-23-2011 at 02:39 PM.. Reason: Use code tags, please...
# 2  
Old 01-24-2011
In general, there are few cases where a filesystem can be changed without any downtime (although it's possible to keep it in the minutes range).

The problem with your setup is that the disk is already completely used up. You might get away with re-allocating 1 GB from the root partition, but that would mean downtime as the restructuring would have to be done mostly from a Live-CD.
# 3  
Old 01-31-2011
Option is this:

Create a new partition same size as the old one.
Copy contents to it.
umount the old one, mount the new one... (a few seconds downtime)... will have to bounce services.
Expand the old partition:
fdisk /dev/cciss/c0d0
d
u
u
p
n
p
1,2,3,4???
start
end
w
q
resize2fs /dev/cciss/c0d0p9
fsck.ext3 -f /dev/cciss/c0d0p9
Then umount the new partition, and mount the expanded old one. (a few secs and service reboots again).

What would be so much more easy, is if you can provision a new partition then just mount it in the same location, however, your device path will have to change. (if that matters)

On the other hand, if you want to change things "live" live, then you will need something like zfs
# 4  
Old 02-11-2011
Could you please confirm that LVM is configured on your server or not?
lvmdisplay/vgdisplay commands.
I hope you are pointing to :
/dev/cciss/c0d0p9 29G 26G 971M 97% /bases so is it from the Local Disk or coming from the SAN?

Solutions might be:
1. If connected to SAN, then LUN can be extended from SAN & can be resized on OS level.
2. If not connected to SAN, having local Disk then LVM must be configured and your current local disk must have space to attach another PV to the current VG to extend this filesystem.

Hope this help....
# 5  
Old 02-11-2011
Another issue that I see is that you seem to have multiple swap partitions on the same disk. Why are you doing this? Do you actually use that much swap? How much memory do you have in this system? What is the output of the following command:

Code:
vmstat -s -S M | egrep 'swap|mem'

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Linux RPM package Size Increase

Hi I want to create a rpm package which includes my testsuites, images(big sizes).But Its rpm size is more than 2GB. please help me to create a package for more than 2GB / where will i override the already configured rpm size to change the limitation of the rpm size since creating 2 or more... (1 Reply)
Discussion started by: SA_Palani
1 Replies

2. Solaris

Increase the / partition

Hi all im new to solaris and i got the task to increase the size of the / partition. its solaris 9 update6 running in a vmware esxi. i already added space on the VM, when im trying the "growfs" command im gettings error. see attached picture: http://i.imgur.com/9ywWLNN.png thanks for... (5 Replies)
Discussion started by: guy3145
5 Replies

3. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

4. Red Hat

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%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

5. Red Hat

Increase root partition in LVM

I have a RHEL6 guest running on vmware esx server and the root disk size is 30G and i increased the disk size and create another partition /dev/sda3 but i do not know how to increase the size of the VG and then intrun LV .. can anyone help me on this . fdisk -l /dev/sda Disk /dev/sda:... (1 Reply)
Discussion started by: fugitive
1 Replies

6. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

7. HP-UX

Increase of partition Size In HP-UX

Experts, I want to know how to increase partion size in Hp-ux.Actually we installed oracle in separate part ion.As increase of database went to 99% :eek:.What ever data which is in it is important.so i dont want to delete any data in that partion.Now the size of that is 250 GB.I want the same to... (2 Replies)
Discussion started by: naveennella
2 Replies

8. Red Hat

Increase mount point size after linux installation !

Dear Friends , I have to install Redhat Ent Linux 5.0 (RHEL 5) in my machine . My HDD space is total 40 GB . During installation , I give three partitions , '/' = 30GB, 'swap'=2GB, 'home' =1GB. Now my HDD remaining space is 7 GB . After installation , I need to increase the home... (4 Replies)
Discussion started by: shipon_97
4 Replies

9. Solaris

how to increase size of the root partition

Hi we have a sunfire v880 server . we have a problem with root partion it showing 90% full. so anyone can help me how to increase the size of that partion. NOTE: It is not in veritas & SVM control. Regards prakash (6 Replies)
Discussion started by: pshelke
6 Replies

10. AIX

Increase a logical partition

hello I have a volume group of 737 Go (EMC) To add 250 Go, i split the 250 Go to 2*125 No problem to add in the volum group, but when i want to increase the size of the logical volume, i have the message : 0516-787 extendlv: Maximum allocation for logical volume simdatabaselv is... (3 Replies)
Discussion started by: pascalbout
3 Replies
Login or Register to Ask a Question