top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to increase and reduce/shrink the size of LVM partition?

+1 vote
178 views
How to increase and reduce/shrink the size of LVM partition?
posted Feb 16, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Below are the logical Steps to reduce size of LVM partition :

-Umount the filesystem using umount command,

-use resize2fs command , e.g resiz2fs /dev/mapper/myvg-mylv 10G

-Now use the lvreduce command , e.g lvreduce -L 10G /dev/mapper/myvg-mylv

Above Command will shrink the size & will make the filesystem size 10GB.

answer Feb 17, 2016 by Manikandan J
Similar Questions
0 votes

I have a png file which I want to reduce in size and dimension. Do we have any command in ubuntu/linux to achieve the same?

Thanks in advance and sorry for hiding my identity.

0 votes

I have a recursive function as below,

void func()
{
       if(counter>10)
              return;
       func();
}

Here, I need to come out of the function when counter reaches specific number(10 as per example).
Now, the condition is, I can't take this counter as global or static or can't pass this counter as parameter.

Any suggestion to solve this given above terms.

0 votes

How can I see the total disk size of my hard disk?

I have used the following command:

# fdisk -l | grep Disk
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, ********** sectors
Disk identifier: 0x0003dd50
Disk /dev/mapper/fedora_new--host--5-swap: 6274 MB, ********** bytes,
12255232 sectors
Disk /dev/mapper/fedora_new--host--5-root: 53.7 GB, ********** bytes,
104857600 sectors
Disk /dev/mapper/fedora_new--host--5-home: 939.7 GB, **********
bytes, ********** sectors
#

Should I conclude that the size of my hard disk is 1 TB?

...