Rbd resize is automatically on the mapped host.

However for the changes to appear in libvirt/qemu, I have 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: Marc Roos 
Sent: maandag 18 september 2017 23:02
To: David Turner
Subject: RE: [ceph-users] Rbd resize, refresh rescan


Yes I can remember, I guess I have to do something in kvm/virt-manager, 
so the change is relayed to the guest.

-----Original Message-----
From: David Turner [mailto:drakonst...@gmail.com]
Sent: maandag 18 september 2017 23:00
To: Marc Roos; ceph-users
Subject: Re: [ceph-users] Rbd resize, refresh rescan

Disk Management in Windows should very easily extend a partition to use 
the rest of the disk.  You should just right click the partition and 
select "Extend Volume" and that's it.  I did it in Windows 10 over the 
weekend for a laptop that had been set up weird.  

On Mon, Sep 18, 2017 at 4:49 PM Marc Roos <m.r...@f1-outsourcing.eu> 
wrote:



        Yes, I think you are right, after I saw this in dmesg, I noticed 
with
        fdisk the block device was updated
         rbd21: detected capacity change from 5368709120 to 6442450944
        
        Maybe this also works (found a something that refered to a 
/sys/class,
        which I don’t have) echo 1 > /sys/devices/rbd/21/refresh
        
        (I am trying to online increase the size via kvm, virtio disk in 
win
        2016)
        
        
        -----Original Message-----
        From: David Turner [mailto:drakonst...@gmail.com]
        Sent: maandag 18 september 2017 22:42
        To: Marc Roos; ceph-users
        Subject: Re: [ceph-users] Rbd resize, refresh rescan
        
        I've never needed to do anything other than extend the partition 
and/or
        filesystem when I increased the size of an RBD.  Particularly if I
        didn't partition the RBD I only needed to extend the filesystem.
        
        Which method are you mapping/mounting the RBD?  Is it through a
        Hypervisor or just mapped to a server?  What are you seeing to 
indicate
        that the RBD isn't already reflecting the larger size?  Which 
version of
        Ceph are you using?
        
        On Mon, Sep 18, 2017 at 4:31 PM Marc Roos 
<m.r...@f1-outsourcing.eu>
        wrote:
        
        
        
                Is there something like this for scsi, to rescan the size 
of the
        rbd
                device and make it available? (while it is being used)
        
                echo 1 >  /sys/class/scsi_device/2\:0\:0\:0/device/rescan
        
        
        
        
                _______________________________________________
                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
        



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

Reply via email to