RE: Not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Resize the file system

Rhel 4
After extending the volume group and the logical volume, you must resize the file system. This is done using ext2online. First, verify the file system size, perform the resize, and then verify the size again:

* you can backup/move the filesystem  # dump 0f - /usr | (cd /mnt; restore xf -)

# df -h /mnt/test
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/TestVG-TestLV
                      2.3G   36M  2.2G   2% /mnt/test

# lvextend -L +8G /dev/TestVG/LV  or -l +32 (+ means add to existing)

# ext2online /dev/TestVG/TestLV    (rhel 5 - use resize2fs)
ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b

# df -h /mnt/test
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/TestVG-TestLV
                       30G   39M   29G   1% /mnt/test

 
 

-----Original Message-----
From: Florez, Nestor [mailto:NFlorez@xxxxxxxxx] 
Sent: Thursday, January 07, 2010 4:10 PM
To: General Red Hat Linux discussion list
Subject: LVM: Not working

I am using LVM on mon eof my RHEL5 and I left some space available to

increase the size of my storage volume.  I am using the following 

commands to increase the size of one Logical Volume but after I mount 

the volume the size has not changed.  The 'lvextend' command says that the size of the volume is 13.75GB.

 

What I am missing?

 

 

# ls -lt /dev/VolGroup00/LogVol06

lrwxrwxrwx 1 root root 31 Jan  7 15:57 /dev/VolGroup00/LogVol06 -> /dev/mapper/VolGroup00-LogVol06

 

# df -k

/dev/mapper/VolGroup00-LogVol06

                       9903432    153832   9238420   2% /usr/local

# umount /dev/mapper/VolGroup00-LogVol06

# lvextend -L+3G /dev/VolGroup00/LogVol06

  Extending logical volume LogVol06 to 13.75 GB

  Logical volume LogVol06 successfully resized

# mount /dev/mapper/VolGroup00-LogVol06 /usr/local

# df -k

/dev/mapper/VolGroup00-LogVol06

                       9903432    153832   9238420   2% /usr/local

 

 

 

Thanks,

 

Néstor J

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux