lvm attributes

  • Thread starter Thread starter chipa
  • Start date Start date
C

chipa

Guest
Hello!

I have proxmox cluster consists of 3 nodes. Also, I have iscsi storage with clvm and virtual disks on it from nodes

Then I create virtual machine ( via web from template ) - the virtual disk appeares on storage on clvm

# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
vm-100-disk-1 lvm1 -wi----- 10.00g
vm-102-disk-1 lvm1 -wi----- 16.00g
vm-777-disk-1 lvm1 -wi----- 10.00g

But, then i want to change disk size (web ) i recive

error resizing volume '/dev/lvm1/vm-777-disk-1': Run `lvextend --help' for more information. (500)

On nodes i see this

# ls -la /dev/lvm1/
total 0
drwxr-xr-x 2 root root 100 Jun 19 10:50 .
drwxr-xr-x 18 root root 6640 Jun 19 10:50 ..
lrwxrwxrwx 1 root root 7 Jun 19 10:50 vm-100-disk-1 -> ../dm-3
lrwxrwxrwx 1 root root 7 Jun 19 10:50 vm-102-disk-1 -> ../dm-4

There is no disk vm-777-disk-1. Only 100 and 102

Then I input command vgchange -ay lvm1 i see

# ls -la /dev/lvm1/
total 0
drwxr-xr-x 2 root root 100 Jun 19 10:50 .
drwxr-xr-x 18 root root 6640 Jun 19 10:50 ..
lrwxrwxrwx 1 root root 7 Jun 19 10:50 vm-100-disk-1 -> ../dm-3
lrwxrwxrwx 1 root root 7 Jun 19 10:50 vm-102-disk-1 -> ../dm-4
lrwxrwxrwx 1 root root 7 Jun 19 10:50 vm-777-disk-1 -> ../dm-5

From manual

"vgchange allows you to change the attributes of one or more volume groups"


How can i solve this problem? I can add to cron this command ))

Help me please
 
Last edited by a moderator: