Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph

2019-02-15 Thread Gesiel Galvão Bernardes
Bingo! Changed disk to scsi and adapter to virtio is working perfectly.

Thank you Mark!

Regards,
Gesiel

Em sex, 15 de fev de 2019 às 10:21, Marc Roos 
escreveu:

>
> Use scsi disk and virtio adapter? I think that is recommended also for
> use with ceph rbd.
>
>
>
> -Original Message-
> From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com]
> Sent: 15 February 2019 13:16
> To: Marc Roos
> Cc: ceph-users
> Subject: Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph
>
> HI Marc,
>
> i tried this and the problem continue :-(
>
>
> Em sex, 15 de fev de 2019 às 10:04, Marc Roos 
> escreveu:
>
>
>
>
> And then in the windows vm
> cmd
> diskpart
> Rescan
>
> Linux vm
> echo 1 >  /sys/class/scsi_device/2\:0\:0\:0/device/rescan (sda)
> echo 1 >  /sys/class/scsi_device/2\:0\:3\:0/device/rescan (sdd)
>
>
>
> I have this to, have to do this to:
>
> virsh qemu-monitor-command vps-test2 --hmp "info block"
> virsh qemu-monitor-command vps-test2 --hmp "block_resize
> drive-scsi0-0-0-0 12G"
>
>
>
>
>
> -Original Message-
>     From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com]
> Sent: 15 February 2019 12:59
> To: ceph-users@lists.ceph.com
> Subject: [ceph-users] Online disk resize with Qemu/KVM and Ceph
>
> Hi,
>
> I'm making a environment for VMs with qemu/kvm and Ceph using RBD,
> and
> I'm with the follow problem: The guest VM not recognizes disk
> resize
> (increase). The cenario is:
>
> Host:
> Centos 7.6
> Libvirt 4.5
> Ceph 13.2.4
>
> I follow the following steps to increase the disk (ex: disk 10Gb
> to
> 20Gb):
>
>
> # rbd resize --size 20480 mypool/vm_test # virsh blockresize
> --domain
> vm_test --path vda --size 20G
>
> But after this steps, the disk in VM continue with original size.
> For
> apply the change, is necessary reboot VM.
> If I use local datastore instead Ceph, the VM recognize new size
> imediatally.
>
> Does anyone have this?  Is this expected?
>
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>
>
>
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph

2019-02-15 Thread Marc Roos
 
Use scsi disk and virtio adapter? I think that is recommended also for 
use with ceph rbd.



-Original Message-
From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com] 
Sent: 15 February 2019 13:16
To: Marc Roos
Cc: ceph-users
Subject: Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph

HI Marc,

i tried this and the problem continue :-(


Em sex, 15 de fev de 2019 às 10:04, Marc Roos  
escreveu:


 

And then in the windows vm
cmd
diskpart
Rescan

Linux vm
echo 1 >  /sys/class/scsi_device/2\:0\:0\:0/device/rescan (sda)
echo 1 >  /sys/class/scsi_device/2\:0\:3\:0/device/rescan (sdd)



I have this to, have to do this to:

virsh qemu-monitor-command vps-test2 --hmp "info block"
virsh qemu-monitor-command vps-test2 --hmp "block_resize 
drive-scsi0-0-0-0 12G"





-Original Message-
From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com] 
Sent: 15 February 2019 12:59
To: ceph-users@lists.ceph.com
    Subject: [ceph-users] Online disk resize with Qemu/KVM and Ceph

Hi,

I'm making a environment for VMs with qemu/kvm and Ceph using RBD, 
and 
I'm with the follow problem: The guest VM not recognizes disk 
resize 
(increase). The cenario is:

Host:
Centos 7.6
Libvirt 4.5
Ceph 13.2.4

I follow the following steps to increase the disk (ex: disk 10Gb  
to 
20Gb):


# rbd resize --size 20480 mypool/vm_test # virsh blockresize 
--domain 
vm_test --path vda --size 20G

But after this steps, the disk in VM continue with original size. 
For 
apply the change, is necessary reboot VM. 
If I use local datastore instead Ceph, the VM recognize new size 
imediatally.

Does anyone have this?  Is this expected?


___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph

2019-02-15 Thread Gesiel Galvão Bernardes
HI Marc,

i tried this and the problem continue :-(


Em sex, 15 de fev de 2019 às 10:04, Marc Roos 
escreveu:

>
>
> And then in the windows vm
> cmd
> diskpart
> Rescan
>
> Linux vm
> echo 1 >  /sys/class/scsi_device/2\:0\:0\:0/device/rescan (sda)
> echo 1 >  /sys/class/scsi_device/2\:0\:3\:0/device/rescan (sdd)
>
>
>
> I have this to, have to do this to:
>
> virsh qemu-monitor-command vps-test2 --hmp "info block"
> virsh qemu-monitor-command vps-test2 --hmp "block_resize
> drive-scsi0-0-0-0 12G"
>
>
>
>
>
> -Original Message-
> From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com]
> Sent: 15 February 2019 12:59
> To: ceph-users@lists.ceph.com
> Subject: [ceph-users] Online disk resize with Qemu/KVM and Ceph
>
> Hi,
>
> I'm making a environment for VMs with qemu/kvm and Ceph using RBD, and
> I'm with the follow problem: The guest VM not recognizes disk resize
> (increase). The cenario is:
>
> Host:
> Centos 7.6
> Libvirt 4.5
> Ceph 13.2.4
>
> I follow the following steps to increase the disk (ex: disk 10Gb  to
> 20Gb):
>
>
> # rbd resize --size 20480 mypool/vm_test # virsh blockresize --domain
> vm_test --path vda --size 20G
>
> But after this steps, the disk in VM continue with original size. For
> apply the change, is necessary reboot VM.
> If I use local datastore instead Ceph, the VM recognize new size
> imediatally.
>
> Does anyone have this?  Is this expected?
>
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph

2019-02-15 Thread Marc Roos
 

And then in the windows vm
cmd
diskpart
Rescan

Linux vm
echo 1 >  /sys/class/scsi_device/2\:0\:0\:0/device/rescan (sda)
echo 1 >  /sys/class/scsi_device/2\:0\:3\:0/device/rescan (sdd)

 

I have this to, have to do this to:

virsh qemu-monitor-command vps-test2 --hmp "info block"
virsh qemu-monitor-command vps-test2 --hmp "block_resize 
drive-scsi0-0-0-0 12G"





-Original Message-
From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com] 
Sent: 15 February 2019 12:59
To: ceph-users@lists.ceph.com
Subject: [ceph-users] Online disk resize with Qemu/KVM and Ceph

Hi,

I'm making a environment for VMs with qemu/kvm and Ceph using RBD, and 
I'm with the follow problem: The guest VM not recognizes disk resize 
(increase). The cenario is:

Host:
Centos 7.6
Libvirt 4.5
Ceph 13.2.4

I follow the following steps to increase the disk (ex: disk 10Gb  to 
20Gb):


# rbd resize --size 20480 mypool/vm_test # virsh blockresize --domain 
vm_test --path vda --size 20G

But after this steps, the disk in VM continue with original size. For 
apply the change, is necessary reboot VM. 
If I use local datastore instead Ceph, the VM recognize new size 
imediatally.

Does anyone have this?  Is this expected?


___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Online disk resize with Qemu/KVM and Ceph

2019-02-15 Thread Marc Roos
 

I have this to, have to do this to:

virsh qemu-monitor-command vps-test2 --hmp "info block"
virsh qemu-monitor-command vps-test2 --hmp "block_resize 
drive-scsi0-0-0-0 12G"





-Original Message-
From: Gesiel Galvão Bernardes [mailto:gesiel.bernar...@gmail.com] 
Sent: 15 February 2019 12:59
To: ceph-users@lists.ceph.com
Subject: [ceph-users] Online disk resize with Qemu/KVM and Ceph

Hi,

I'm making a environment for VMs with qemu/kvm and Ceph using RBD, and 
I'm with the follow problem: The guest VM not recognizes disk resize 
(increase). The cenario is:

Host:
Centos 7.6
Libvirt 4.5
Ceph 13.2.4

I follow the following steps to increase the disk (ex: disk 10Gb  to 
20Gb):


# rbd resize --size 20480 mypool/vm_test # virsh blockresize --domain 
vm_test --path vda --size 20G

But after this steps, the disk in VM continue with original size. For 
apply the change, is necessary reboot VM. 
If I use local datastore instead Ceph, the VM recognize new size 
imediatally.

Does anyone have this?  Is this expected?


___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] Online disk resize with Qemu/KVM and Ceph

2019-02-15 Thread Gesiel Galvão Bernardes
Hi,

I'm making a environment for VMs with qemu/kvm and Ceph using RBD, and I'm
with the follow problem: The guest VM not recognizes disk resize
(increase). The cenario is:

Host:
Centos 7.6
Libvirt 4.5
Ceph 13.2.4

I follow the following steps to increase the disk (ex: disk 10Gb  to 20Gb):

# rbd resize --size 20480 mypool/vm_test
# virsh blockresize --domain vm_test --path vda --size 20G

But after this steps, the disk in VM continue with original size. For apply
the change, is necessary reboot VM.
If I use local datastore instead Ceph, the VM recognize new size
imediatally.

Does anyone have this?  Is this expected?
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com