Re: Use trimfs on already mounted RBD image

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

 




On 04/04/2018 07:30 PM, Damian Dabrowski wrote:
> Hello,
> 
> I wonder if it is any way to run `trimfs` on rbd image which is
> currently used by the KVM process? (when I don't have access to VM)
> 
> I know that I can do this by qemu-guest-agent but not all VMs have it
> installed.
> 
> I can't use rbdmap too, because most images don't have distributed
> filesystems. It's mostly ext4/xfs so I can't mount them in two places at
> same time.
> 
> I would be grateful for any help.
> 

No, you can not. If you map and mount a filesystem twice you will
corrupt the data on there.

Same goes when you are going to fstrim, you will probably break/corrupt
data on the system.

Do not attempt it. Shut down the VM and then do the fstrim.

Wido

> 
> _______________________________________________
> 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