LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Resizing ext3 partition (https://www.linuxquestions.org/questions/linux-newbie-8/resizing-ext3-partition-4175428043/)

tiacovone 09-19-2012 02:27 PM

Resizing ext3 partition
 
Hello,
I have just setup a SLES11 server with OES11 on top. I am new to this and in the process I partitioned all my storage on the ext3. I had no space left over for my OES. Can I resize the ext3 without having to do my whole setup again.
My system looks like this
/dev/sda 5.45TB IBMserveraid M1015
/dev/sda1 2.01GB EFI Boot Fat /boot/efi
/dev/sda2 2.01GB Linux swap Swap Swap
/dev/sda3 5.45TB Linux native Ext3 /
tmpfs 8.75GB Tmpfs Tmpfs /dev/shm kernel
tmpfs 8.75GB Tmpfs Tmpfs /dev kernel


any advice is appreciated
Thanks, Tom

John VV 09-19-2012 04:18 PM

first make a FULL back up
step 2 -- see step 1
step 3 ---see step 2

resizing a partition that IS working ??? is iffy
be 100% prepared to reinstall


Quote:

/dev/sda3 5.45TB
and 5 TB is too small ?

" dev/sda1 2.01GB EFI Boot Fat /boot/efi"

a 2 gig boot partition ????
even fedora 17 using "preupgrade" only NEEDS 768 meg
the default for almost ALL disrtos is 100 Meg
and using ext2 for the older sels 11 and not fat32


2 Gig SWAP ??? how much ram do you have
swap has been in the past 1.5 to 2.0 times the amount of ram
BUT
if you have something like 32+ Gig ram then there is no real need for swap
or not larger than 1 or two gig

http://www.novell.com/documentation/

https://www.suse.com/documentation/
https://www.suse.com/documentation/sles11/

What guides are you fallowing ??? if not the novell install guide
a link would be nice

ccrmsc 09-19-2012 04:43 PM

Humm, reducing the size of a partition usually means un-mounting it first. Since this is the / partition so you may have to get creative and boot from a CD first. Please post your solution...

TobiSGD 09-19-2012 04:53 PM

Quote:

Originally Posted by John VV (Post 4784482)
" dev/sda1 2.01GB EFI Boot Fat /boot/efi"

a 2 gig boot partition ????
even fedora 17 using "preupgrade" only NEEDS 768 meg
the default for almost ALL disrtos is 100 Meg
and using ext2 for the older sels 11 and not fat32

As you can see this is a EFI boot partition, it needs to be FAT32, although 2GB is really a bit large.
Regarding swap, the thumb rule of 1.5-2x RAM was never a good rule, the only way to determine how much swap you need is to keep an eye on the workload. If you really need something like 1.5-2x RAM as swap than your system is wrong dimensioned for the workload.


@tiacovone: Have a look at resizefs and parted, but the easiest way is to boot from a GParted CD and use GParted to resize the partitions the way you want.
Also, as John_VV already stated, make a backup first.

tiacovone 09-19-2012 08:09 PM

Thank you everyone for all your input. I basically selected the defaults in the configuation for the swap. I have no problem in blowing away the whole thing but I was looking to save some time if I was able to resize this without too much headache. This was my first attempt to set this server up. I guess I'm better off re-doing this. I see by some of your comments that things were allocated too much in some areas and I really appreciate your knowledge. I guess it probably is easier for me to redo, from what I can see.
Thanks, Tom


All times are GMT -5. The time now is 05:47 AM.