Re: Online disk resize with Qemu/KVM and Ceph

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <M.Roos@xxxxxxxxxxxxxxxxx> 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.bernardes@xxxxxxxxx]
Sent: 15 February 2019 13:16
To: Marc Roos
Cc: ceph-users
Subject: Re: 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 <M.Roos@xxxxxxxxxxxxxxxxx>
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.bernardes@xxxxxxxxx]
        Sent: 15 February 2019 12:59
        To: ceph-users@xxxxxxxxxxxxxx
        Subject: 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@xxxxxxxxxxxxxx
        http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





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

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux