Need to delete local-lvm and reuse the size

Tarek Damak

New Member
Dec 19, 2016
22
0
1
27
Hello Evrybody ,
I don't use local-lvm , i want to delete that partition and add the free size to the root partition (local).
Any help please ?

upload_2017-4-10_11-2-53.png
 

un1x0d

Member
Mar 14, 2012
26
4
23
Reinstall with options or go to console.

lvremove pve/data

and man lvm .. at lvextend pve/root ...

after boot from cd and extend ext4 volume root with resize2fs
 

Tarek Damak

New Member
Dec 19, 2016
22
0
1
27
Thank You , but can you more explain please ?
i didn't understant , should i reinstall all ? so i lose my vms ?
Thank you again
 

ignaqui

New Member
Jan 12, 2017
13
3
3
43
@Tarek Damak

If you have VMs deployed in local-lvm - then yes, you'll lose them. If you have your VMs deployed in local - then you're safe.
You can do the following:
- delete local-lvm storage in gui
- lvremove /dev/pve/data
- lvresize -l +100%FREE /dev/pve/root
Then you need to boot from rescue disc and resize ext4 file system.
I always try to use xfs for similar tasks as you can extend it on the fly (no shrinking available though!).

The link may be helpful: https://artofawareness.wordpress.com/2017/03/06/proxmox-remove-lvm-local-data/

Cheers
 
Last edited:
Jun 19, 2017
44
0
6
@Tarek Damak

Then you need to boot from rescue disc and resize ext4 file system.
I always try to use xfs for similar tasks as you can extend it on the fly (no shrinking available though!).

The link may be helpful: https://artofawareness.wordpress.com/2017/03/06/proxmox-remove-lvm-local-data/

Is there a command to accomplish this from a live rescue disc? I booted into gparted, didn't see any ext4 filesystem resizing options, so I tried the `resize2fs /sda3/dev/mapper/pve-root` command provided in your link, but my arguments or paths must not be valid.
 
May 18, 2018
9
1
23
39
Is there a command to accomplish this from a live rescue disc? I booted into gparted, didn't see any ext4 filesystem resizing options, so I tried the `resize2fs /sda3/dev/mapper/pve-root` command provided in your link, but my arguments or paths must not be valid.
Should be "resize2fs /dev/mapper/pve-root", not need to boot from live rescue disk.
 
  • Like
Reactions: rubi2020

rubi2020

Member
Apr 5, 2020
18
1
8
32
@Tarek Damak

If you have VMs deployed in local-lvm - then yes, you'll lose them. If you have your VMs deployed in local - then you're safe.
You can do the following:
- delete local-lvm storage in gui
- lvremove /dev/pve/data
- lvresize -l +100%FREE /dev/pve/root
Then you need to boot from rescue disc and resize ext4 file system.
I always try to use xfs for similar tasks as you can extend it on the fly (no shrinking available though!).

The link may be helpful: https://artofawareness.wordpress.com/2017/03/06/proxmox-remove-lvm-local-data/

Cheers

Should be "resize2fs /dev/mapper/pve-root", not need to boot from live rescue disk.

worked like a charm!
Thank you :)
 

Mamadou

New Member
Jul 11, 2020
1
0
1
31
Hello, I would know deleting the /pve/data couldn't corrupt the system? but I have same issue and my lvm /pve/data size is 2.6To, there's only 16GB free.
 

mikhael

New Member
Jul 10, 2021
2
0
1
33
Hello,

Just installed P VE 6.3-2-on laptop logged in over https.
Need to resize my original storage from 20gb and its a 120 x 2 both might be connected inside the laptop separately ///


#lvresize -l +100%FREE /dev/pve/root gives me the same storage output could it be the 25% of the total space?

Ran the following commands successfully via shell :


  1. Deleted local-lvm storage in hypervisor
  2. Then ran the #lvremove /dev/pve/data
  3. After running the following #lvresize -l +100%FREE /dev/pve/root get the exact same storage size i had before i ran all these commands)
like why does it do this ? Could it be hardware ? rebooted twice no difference help,

There are always more commands right ?

fdisk perhaps ?

#lvresize -l +100%FREE /dev/pve/root

Output = New size (28349 extents) matches existing size (28349 extents).
 
Last edited:

mikhael

New Member
Jul 10, 2021
2
0
1
33
Storage Update Delay? User Error ?

After about 15 mins i
n the Proxmox VE 6.3 Updated the storage as shown in screen shot 1 ( connected via https)

Not quite sure why it would take that long, ran the command like several times;

The command #lvresize -l +100%FREE /dev/pve/root runs Screen shot 2 takes place instead of screen shot 3 .
 

Attachments

  • sh1.png
    sh1.png
    44.2 KB · Views: 41
  • sh2.png
    sh2.png
    15.6 KB · Views: 40
  • sh3.png
    sh3.png
    34.6 KB · Views: 41
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!