V
V
Vyacheslav2017-01-04 18:18:04
linux
Vyacheslav, 2017-01-04 18:18:04

Why is the LVM partition not resizing?

There is one physical disk.
There is a partition:
/dev/mapper/local-home 70G 60G 11G 86% /home
Using simple commands like:
1) sudo lvresize(lvextend) -L 90G /dev/local/home
2) sudo lvresize(lvextend) -L 90G /dev/mapper/local-home
attempted to increase the size of the partition. The commands are processed successfully, but the partition does not grow. Please help me figure out the problem :(

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Melkij, 2017-01-04
@Firik67

Block device increased, approx. And who will expand the file system? resize2fs, xfs_growfs etc. depending on what FS you have.

S
Swartalf, 2017-01-05
@Swartalf

For those who are especially lazy, lvresize has the -r option :

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

C
CityCat4, 2017-01-04
@CityCat4

Doesn't happen because lvresize isn't everything. This is just a volume extension. Now you also need to explain to the file system that it has become larger through resize2fs

G
GermSerg, 2017-01-13
@GermSerg

#lvs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question