[Ilugc] resize / (ext3) with no LVM(2) - using fdisk and ext2online - possible?

  • From: balu.manyam@xxxxxxxxx (Balu manyam)
  • Date: Sat May 24 22:34:14 2008

On Thu, May 22, 2008 at 11:47 PM, K Sai Kiran <saikiranrgda@xxxxxxxxx>
wrote:





   Fdisk is not the right tool for it.  It only changes the partition..
  doesn't change the file system..  you will require a utility that can
also
  dela with filesystem. Parted fits in well for your requirement.

  I havent tried using it before.. Was always lucky to have data on a LVM
  :).

  how r u checking your filesystem size? df? df displays size based on fs
  properties.. so even if you have a larger partition without extending the
  filesystem.. that would be the case... to confirm check the /proc/ info
  for exact kernel status of the disks...

 i think i should be able to boot the machine  off a CD and do this - but
 just curious if one can do this from a running OS and reboot if need be


   Partprobe should force your kernel to read your partition table without
  re-booting..  Never edit partitions for file systems which are already
  mounted. if normal data partitons no re-boot would be required.. if any
of
  the system partitions are used, you will require rescue CD.

  Do let us know how u r about to burn ur hands. ;)

  Regards,
   Kiran.



heh - good one on the parted - I havent tried that - and about the resizing
partitions on the fly

I have had good success in the past with non / FS - for example imagine the
following - you have a FS on a logical drive on a RAID1  mirror with 2*36G
drives - now you want to upgrade the drives to 2*72G - you replace the first
drive let it resilver then the second - then fdisk --> go to expert mode -
change the # of cylinders for the LD and then edit the partition size
.........ext2online bingo!

Cheers!

Other related posts: