Red Hat Installation - Problem resizing partition using parted

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Installation > March 2004 > Problem resizing partition using parted





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem resizing partition using parted
Gazza

2004-03-27, 5:36 pm

After doing much reading of textbooks and online resources I began the process of resizing my /var partition as it is used by many processes including e-mail and databases in particular.



Before I began I printed out from parted and df.

The main bits of interest were:



(parted-output)

Disk label type: msdos

Minor Start End Type Filesystem Flags

6 5098.786 6118.505 logical ext3

7 6118.537 6502.873 logical linux-swap



and

(df -h output)

Filesystem Size Used Avail Use% Mounted on

none 121M 0 120M 0% /dev/shm

/dev/hda6 1004M 284M 669M 30% /var



Following an example from the gnu.org site for using parted I deleted the linux-swap file thus:



rm 7



I then resized the /var partition:



Resize 6 5098 8999



I then recreated the linux-swap:



mkpartfs 7 logical ext2 8999 9500



Everything went fine, or so I thought.

Machine re-booted, parted prints the new sizes for the partitions but, df -h still shows old partition sizes.

Any idea how on earth I can get the new partition sizes correctly recognised?



Thanks.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com