Hello, On Wed, 11 May 2016 13:33:44 +0200 (CEST) Alexandre DERUMIER wrote: > >>but the fstrim can used with in mount partition...But I wanted to as > >>cloud admin... > > if you use qemu, you can launch fstrim through guest-agent > This of course assumes that qemu/kvm is using a disk method that allows for TRIM. And nobody in their right mind uses IDE (performance), while virtio-scsi isn't the default or even supported with some cloud stacks. And of course that the VM in question runs Linux and has fstrim installed. Otherwise solid advise, I agree. Christian > > http://dustymabe.com/2013/06/26/enabling-qemu-guest-agent-anddddd-fstrim-again/ > > ----- Mail original ----- > De: "M Ranga Swami Reddy" <swamireddy@xxxxxxxxx> > À: "Wido den Hollander" <wido@xxxxxxxx> > Cc: "ceph-users" <ceph-users@xxxxxxxx> > Envoyé: Mercredi 11 Mai 2016 13:16:27 > Objet: Re: rbd resize option > > Thank you. > > but the fstrim can used with in mount partition...But I wanted to as > cloud admin... > I have a few uses with high volume size (ie capacity) allotted, but > only used 5% of the capacity. so I wanted to reduce the size to 10% of > size using the rbd resize command. But in this process, if a > customer's volume has more than 10% data, then I may end-up with data > lost... > > Thanks > Swami > > On Wed, May 11, 2016 at 1:17 PM, Wido den Hollander <wido@xxxxxxxx> > wrote: > > > >> Op 11 mei 2016 om 8:38 schreef M Ranga Swami Reddy > >> <swamireddy@xxxxxxxxx>: > >> > >> > >> Hello, > >> I wanted to resize an image using 'rbd' resize option, but it should > >> be have data loss. > >> For ex: I have image with 100 GB size (thin provisioned). and this > >> image has data of 10GB only. Here I wanted to resize this image to > >> 11GB, so that 10GB data is safe and its resized. > >> > >> Can I do the above resize safely.? > >> > > > > No, you can't. You need to resize the filesystem and partitions inside > > the RBD image to something below 11GB before you can do this. > > > > Still, make sure you have backups! > > > > Also, why shrink? If you can, run a fstrim on the image, that might > > reclaimed unused space on the Ceph cluster. > > > >> If I tried to resize to 5GB, is rbd throughs an error saying that > >> your data is going loss, something like that??? > >> > >> Any inputs here are appriciated. > >> > >> Thanks > >> Swami > >> _______________________________________________ > >> 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 > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- Christian Balzer Network/Systems Engineer chibi@xxxxxxx Global OnLine Japan/Rakuten Communications http://www.gol.com/ _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com