We help IT Professionals succeed at work.

FS increase RHEL5

mnis2008
mnis2008 asked
on
Medium Priority
375 Views
Last Modified: 2012-08-14
I have /home mounted with 1G space now I have increased the LV size to +25G why am i still showing 1G in df -k

Prevoius:

/dev/mapper/VolGroup00-home
                       1015704    496488    466788  52% /home

Changes :

# lvextend -L +25G  /dev/VolGroup00/home
  Extending logical volume home to 26.00 GB
  Logical volume home successfully resized

Present :

/dev/mapper/VolGroup00-home
                       1015704    496496    466780  52% /home

What should I change to reflect the filesystem increase
Comment
Watch Question

CERTIFIED EXPERT

Commented:
After extending the partition, you also need to increase your file system.  Did you do that?

Author

Commented:
how do i do that..??
CERTIFIED EXPERT

Commented:
resize2fs

Example
resize2fs /dev/mapper/VolGroup00-home <size>M

Also do man resize2fs
CERTIFIED EXPERT

Commented:
Just do

resize2fs /dev/mapper/VolGroup00-home

Open in new window

CERTIFIED EXPERT

Commented:
BTW what is the filesystem type?

df -hT


For ext4 this would also work
resize2fs /dev/mapper/VolGroup00-home 26G

Author

Commented:
Its an ext3, here the output


# df -hT |grep home
/dev/mapper/VolGroup00-home
              ext3    992M  485M  456M  52% /home

So is it
resize2fs /dev/mapper/VolGroup00-home 26G
or
resize2fs /dev/mapper/VolGroup00/home 26G
CERTIFIED EXPERT

Commented:
Sorry, the actual device name, which appears to be

/dev/mapper/VolGroup00-home

So first one it the correct one.

Author

Commented:
# resize2fs /dev/mapper/VolGroup00-home 26G
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/VolGroup00-home is mounted on /exports.del/nfs4exports/home; on-line resizing required
Performing an on-line resize of /dev/mapper/VolGroup00-home to 6815744 (4k) blocks.
The filesystem on /dev/mapper/VolGroup00-home is now 6815744 blocks long.

But it still doesnot show up...


 df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-root
                       1015704    496496    466780  52% /
/dev/mapper/VolGroup00-home
                       1015704    496496    466780  52% /home
CERTIFIED EXPERT

Commented:
Could you please issue these commands.

service netfs restart

df -hT

Author

Commented:
Here is what I get

# df -hT |grep home

/dev/mapper/VolGroup00-home
              ext3    992M  485M  456M  52% /home

# lvscan
  ACTIVE            '/dev/VolGroup01/LogVol01' [3.97 GB] inherit
  ACTIVE            '/dev/VolGroup00/root' [1.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/home' [26.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/admin' [1.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/tmp' [1.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/opt' [2.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/apps' [1.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/usr' [3.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/var' [3.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/varlog' [1.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/varlogaudit' [1.00 GB] inherit
  ACTIVE            '/dev/VolGroup00/ftptransfers' [5.00 GB] inherit

# pvscan
  PV /dev/sdb1   VG VolGroup01   lvm2 [3.97 GB / 0    free]
  PV /dev/sda2   VG VolGroup00   lvm2 [22.88 GB / 0    free]
  PV /dev/sdc1   VG VolGroup00   lvm2 [59.97 GB / 37.84 GB free]
  Total: 3 [86.81 GB] / in use: 3 [86.81 GB] / in no VG: 0 [0   ]

Author

Commented:
My home still shows 1G, Looks like increasing /dev/mapper/VolGroup00-home  to 26G work but my my filesystem is still at 1G
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Here is the output

# resize2fs /dev/VolGroup00/home
resize2fs 1.39 (29-May-2006)
The filesystem is already 6815744 blocks long.  Nothing to do!

So I will reboot and see if its working..

Commented:
yes please, Because earlier I have faced the same issue and a reboot has fixed my issue.
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.