lvextend problem

Latest response

Hi,

I have a question about lvextend command. For example, when I had 1G on LV, i see the 1G extra on lvdisplay command or with graphical disk manager (GUI), but when I do a "df -h", i don't see the difference. Why ? It's normal ?

Responses

Hello Pierre-Yes,

lvextend only extends the "partition" (logical volume), it does not extend the filesystem on top of it. df -h shows sizes of filesystems not the "partitions", that seems strange for it show the names of the "partitions".

So after lvextend you need to run a filesystem resize program.

If you run df -hT we can advise you which filesystem resize program is needed.

Regards,

Jan Gerrit Kootstra

Thank You. Yes, with a "resize2fs" command, it's OK now. On AIX, I use "chfs' command to resize FS directy, and that's what misled me

I will have to check some notes at work, but I think if you do an 'lvextend -r [with other arguments etc]' this concurrently deals with the file system.

From the lvextend man page...

-r, --resizefs
    Resize underlying filesystem together with the logical volume using fsadm(8).

Regards,

RJ

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.