Increase local-lvm storage size

harpreet9629

New Member
Oct 17, 2019
13
0
1
32
Hey, I'm kinda new to Proxmox, so hopefully you can help me out with my problem.

I have a storage with a size of 333.7GB called "local-lvm (proxmox)". It has reached its limit, so now I want to increase the size.
Using "lsblk" in shell I could see, that I have 2 another drives available on that device, which have 1.8tb space how i can use that 2 drives in proxmox?

root@proxmox ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part
│ └─md0 9:0 0 511M 0 raid1 /boot
└─sda2 8:2 0 111.3G 0 part
└─md1 9:1 0 333.7G 0 raid0
├─vg0-root 253:0 0 15G 0 lvm /
└─vg0-swap 253:1 0 6G 0 lvm [SWAP]
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 512M 0 part
│ └─md0 9:0 0 511M 0 raid1 /boot
└─sdb2 8:18 0 111.3G 0 part
└─md1 9:1 0 333.7G 0 raid0
├─vg0-root 253:0 0 15G 0 lvm /
└─vg0-swap 253:1 0 6G 0 lvm [SWAP]
sdc 8:32 0 1.8T 0 disk
├─sdc1 8:33 0 512M 0 part
│ └─md0 9:0 0 511M 0 raid1 /boot
└─sdc2 8:34 0 111.3G 0 part
└─md1 9:1 0 333.7G 0 raid0
├─vg0-root 253:0 0 15G 0 lvm /
└─vg0-swap 253:1 0 6G 0 lvm [SWAP]
 
Theoretically you could partition the free unpartiotioned space left on sdb and sdc, create a file system on those (ZFS for shared, or two separate) add add that to the Proxmox VE storage configuration.

Note, your setup uses md RAID, which is not officially supported by Proxmox VE..
Also, your root partition is on a RAID0, if any of the three disks fails you wont be able to boot anymore...
 
Theoretically you could partition the free unpartiotioned space left on sdb and sdc, create a file system on those (ZFS for shared, or two separate) add add that to the Proxmox VE storage configuration.

Note, your setup uses md RAID, which is not officially supported by Proxmox VE..
Also, your root partition is on a RAID0, if any of the three disks fails you wont be able to boot anymore...
But how i can use setup without md RAID? i can't increase disk size from 333GB to more or in TB i tried every method but still same issue. Should i leave server?
 
Now i have this data after fresh install


NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot
└─sda2 8:2 0 111.3G 0 part
├─vg0-root 253:0 0 30G 0 lvm /
└─vg0-swap 253:1 0 6G 0 lvm [SWAP]
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 1.8T 0 part
└─sdb2 8:18 0 1007K 0 part
sdc 8:32 0 1.8T 0 disk
└─sdc1 8:33 0 1.8T 0 part
 

Attachments

  • Screenshot_8.png
    Screenshot_8.png
    22.5 KB · Views: 6
Now i have this data after fresh install


NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot
└─sda2 8:2 0 111.3G 0 part
├─vg0-root 253:0 0 30G 0 lvm /
└─vg0-swap 253:1 0 6G 0 lvm [SWAP]
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 1.8T 0 part
└─sdb2 8:18 0 1007K 0 part
sdc 8:32 0 1.8T 0 disk
└─sdc1 8:33 0 1.8T 0 part
when i run pvcreate i got this error

root@proxmox ~ # pvcreate /dev/sdb1
Device /dev/sdb1 excluded by a filter.
 
It look like it's doable to move your / mount to another partition.
https://askubuntu.com/questions/3402/how-to-move-boot-and-root-partitions-to-another-drive

But if you can do a fresh install that would be much better.

Regardless of that you should be able to create new partition on the available space of your drive.
Do you have an error message when you write fdisk ?
Getting this log on check fdisk

fdisk -l /dev/sdb
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: HGST HUS724020AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3D912B0B-0140-4CEB-BA13-F07B75277FAC

Device Start End Sectors Size Type
/dev/sdb1 2048 3907028991 3907026944 1.8T Linux filesystem
/dev/sdb2 34 2047 2014 1007K Linux filesystem
/dev/sdb3 3907028992 3907029134 143 71.5K Linux filesystem

Partition table entries are not in disk order.
 

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 yours easily in our online shop.

Buy now!