HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Expanding sda9 (ext3) partition. (http://www.howtoforge.com/forums/showthread.php?t=56439)

cburtenshaw 5th March 2012 04:38

Expanding sda9 (ext3) partition.
 
Hi,

I'm attempting to expand /dev/sda9 by the free space that has been added to the attached SAN.

I've listed some output below.

------------------
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 9920624 745004 8663552 8% /
/dev/sda8 4956284 160920 4539532 4% /home
/dev/sda7 5952252 1215568 4429444 22% /usr
/dev/sda5 7936256 817712 6708892 11% /opt
/dev/sda2 9920624 708364 8700192 8% /var
/dev/sda9 105537788 72796704 27293448 73% /var/www
/dev/sda1 194442 18096 166307 10% /boot
tmpfs 2021896 0 2021896 0% /dev/shm

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.5G 728M 8.3G 8% /
/dev/sda8 4.8G 158M 4.4G 4% /home
/dev/sda7 5.7G 1.2G 4.3G 22% /usr
/dev/sda5 7.6G 799M 6.4G 11% /opt
/dev/sda2 9.5G 692M 8.3G 8% /var
/dev/sda9 101G 70G 27G 73% /var/www
/dev/sda1 190M 18M 163M 10% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm

------------------
# parted
GNU Parted 1.8.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p

Model: VMware Virtual disk (scsi)
Disk /dev/sda: 242GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 206MB 206MB primary ext3 boot
2 206MB 10.7GB 10.5GB primary ext3
3 10.7GB 21.2GB 10.5GB primary ext3
4 21.2GB 161GB 140GB extended
5 21.2GB 29.6GB 8390MB logical ext3
6 29.6GB 38.0GB 8390MB logical linux-swap
7 38.0GB 44.3GB 6292MB logical ext3
8 44.3GB 49.5GB 5239MB logical ext3
9 49.5GB 161GB 112GB logical ext3

(parted) print free

Model: VMware Virtual disk (scsi)
Disk /dev/sda: 242GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 206MB 206MB primary ext3 boot
2 206MB 10.7GB 10.5GB primary ext3
3 10.7GB 21.2GB 10.5GB primary ext3
4 21.2GB 161GB 140GB extended
5 21.2GB 29.6GB 8390MB logical ext3
6 29.6GB 38.0GB 8390MB logical linux-swap
7 38.0GB 44.3GB 6292MB logical ext3
8 44.3GB 49.5GB 5239MB logical ext3
9 49.5GB 161GB 112GB logical ext3
161GB 242GB 80.5GB Free Space

------------------
# fdisk -l /dev/sda

Disk /dev/sda: 241.5 GB, 241591910400 bytes
255 heads, 63 sectors/track, 29371 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1300 10241437+ 83 Linux
/dev/sda3 1301 2575 10241437+ 83 Linux
/dev/sda4 2576 19581 136600695 5 Extended
/dev/sda5 2576 3595 8193118+ 83 Linux
/dev/sda6 3596 4615 8193118+ 82 Linux swap / Solaris
/dev/sda7 4616 5380 6144831 83 Linux
/dev/sda8 5381 6017 5116671 83 Linux
/dev/sda9 6018 19581 108952798+ 83 Linux



I followed the step to expand the last partition in the HowToForge Link, however it didn't expand, when I executed 'resize2fs /dev/sda9'. :-(

The document is based on expanding the root partition. What should I have done to attached the free space to partition 9?

Thank you in advance.
Craig.

cburtenshaw 9th March 2012 06:17

Hi,

I still have issues with expansion.

Can someone let me know if I've missed something.

Thank you
Craig.

falko 10th March 2012 14:17

I think it will be easier to resize your partitions with GParted: http://www.howtoforge.com/partitioning_with_gparted


All times are GMT +2. The time now is 03:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.