I
I
Ilya Korolev2021-10-12 11:23:49
linux
Ilya Korolev, 2021-10-12 11:23:49

How to increase the size of the local partition in proxmox?

Hello everyone, I have a machine on proxmox and during installation it somehow clumsily distributed the areas.
It turns out the section local - 96gb Local-thin - 1.8tb how to transfer all free space from Local-thin to local?
I did in parted resizepart 3 100%FREE but now it turned out that when I try to delete and add an LVM machine in the web face, it shows 99% busy. (photo) 61654607a3f53560091669.jpeg

parted print

Disk /dev/sda: 1999GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  1049kB  1031kB                     bios_grub
 2      1049kB  538MB   537MB   fat32              boot, esp
 3      538MB   1999GB  1998GB                     lvm

(parted)


lsblk
NAME               MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                  8:0    0  1.8T  0 disk
├─sda1               8:1    0 1007K  0 part
├─sda2               8:2    0  512M  0 part /boot/efi
└─sda3               8:3    0  1.8T  0 part
  ├─pve-swap       253:0    0    8G  0 lvm  [SWAP]
  ├─pve-root       253:1    0   96G  0 lvm  /
  ├─pve-data_tmeta 253:2    0 15.8G  0 lvm
  │ └─pve-data     253:4    0  1.7T  0 lvm
  └─pve-data_tdata 253:3    0  1.7T  0 lvm
    └─pve-data     253:4    0  1.7T  0 lvm


df-h
Filesystem            Size  Used Avail Use% Mounted on
udev                   32G     0   32G   0% /dev
tmpfs                 6.3G  1.8M  6.3G   1% /run
/dev/mapper/pve-root   94G   44G   46G  49% /
tmpfs                  32G   43M   32G   1% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
/dev/sda2             511M  328K  511M   1% /boot/efi
/dev/fuse             128M   16K  128M   1% /etc/pve
tmpfs                 6.3G     0  6.3G   0% /run/user/0


lvddisplay
--- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                ysXtye-dRSo-ZMse-iMlb-xEcw-KRRJ-ve3WXE
  LV Write Access        read/write
  LV Creation host, time proxmox, 2021-10-10 20:12:11 +0300
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                Fijgc2-Yc1f-aeq6-O3eQ-pbpY-yrdt-eVEKts
  LV Write Access        read/write
  LV Creation host, time proxmox, 2021-10-10 20:12:11 +0300
  LV Status              available
  # open                 1
  LV Size                96.00 GiB
  Current LE             24576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                UFkNLZ-jbqa-1gY0-9T0L-GQ4Z-2wyZ-Navc5N
  LV Write Access        read/write
  LV Creation host, time proxmox, 2021-10-10 20:12:48 +0300
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                <1.67 TiB
  Allocated pool data    0.00%
  Allocated metadata     0.15%
  Current LE             437558
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Korolev, 2021-10-12
@Jasonflo

In general, I solved the issue on this https://www.andreyus.com/import-kvm-virtualok-v-pr... link
, the procedure is such that
I downloaded the qcow2 file to the locale and imported it to local-lvw

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question