G
G
German Zvonchuk2014-08-10 12:14:31
linux
German Zvonchuk, 2014-08-10 12:14:31

How to increase the size of a disk partition in Linux?

Good day.
I would be very grateful if you tell me how to increase the size of the current disk partition from 50gb to 500gb for example?
And then how to use the remaining 500gb as a second partition to drop backups on it.
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 50G 42G 4.8G 90% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
/dev/sda1 485M 71M 389M 16% /boot
/dev/mapper /VolGroup-lv_home 860G 17G 800G 2% /home
/usr/tmpDSK 2.0G 40M 1.8G 3% /tmp

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2014-08-10
@inside22

You are using LVM, which is very convenient.
With the command vgsyou can view the available and occupied space.
If there is available space, then within its capacity, you can increase the logical volumes in the volume group where there is free space. This is done approximately like this:
where -L is the new size of the logical volume,
/dev/mapper/VolGroup-lv_root is the logical volume that is being resized.
After that, it will be necessary to expand the file system, it already depends on which file system is installed on this partition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question