Skip to contentSkip to conversation

using discard from qemu guest when snapshot exist, fill the rbd layer with zeroes and use more space

DISCUSSION Alexandre DERUMIER 2 participants 4 messages Jun 17, 2016 – Jun 18, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using fstrim inside my qemu guests to remove unused space from the rbd storage.

This is working fine, but I just notice that if a snapshot exist,

It just do the reverse, it's filling the snasphot with zeroes, and the total cluster space is growing.

It's is possible to avoid that ?

Regards,

Alexandre

#1 lore raw

There is a "rbd_skip_partial_discard" configuration option which can be set to true. When enabled, discard will avoid zeroing holes if the discard extent is in the middle of an object.

Quoted 18 lines · Alexandre DERUMIER

Hi,

I'm using fstrim inside my qemu guests to remove unused space from the rbd storage.

This is working fine, but I just notice that if a snapshot exist,

It just do the reverse, it's filling the snasphot with zeroes, and the total cluster space is growing.

It's is possible to avoid that ?

Regards,

Alexandre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Jason
#2 lore raw
Quoted 3 lines
Quoted 3 lines

There is a "rbd_skip_partial_discard" configuration option which can be set to true. When enabled, discard will avoid zeroing holes if the discard extent is in the middle of an object.

Thanks Jason . I had tried it some week ago, and my fstrim was hanging. It'll do more test next week.

It must be defined on client right ?

[client]
rbd_skip_partial_discard = true

----- Mail original -----
De: "Jason Dillaman" <[email protected]>
À: "aderumier" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoyé: Vendredi 17 Juin 2016 15:21:53
Objet: Re: using discard from qemu guest when snapshot exist, fill the rbd layer with zeroes and use more space

There is a "rbd_skip_partial_discard" configuration option which can be set to true. When enabled, discard will avoid zeroing holes if the discard extent is in the middle of an object.

Quoted 18 lines · Alexandre DERUMIER

Hi,

I'm using fstrim inside my qemu guests to remove unused space from the rbd storage.

This is working fine, but I just notice that if a snapshot exist,

It just do the reverse, it's filling the snasphot with zeroes, and the total cluster space is growing.

It's is possible to avoid that ?

Regards,

Alexandre

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 5 lines
Jason 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Definitely broken -- I've opened a new tracker ticket to get it fixed [1].

[1] http://tracker.ceph.com/issues/16386

Quoted 73 lines · Alexandre DERUMIER
Quoted 7 lines
Quoted 7 lines

Thanks Jason . I had tried it some week ago, and my fstrim was hanging. It'll do more test next week.

It must be defined on client right ?

[client]
rbd_skip_partial_discard = true

Just tested again, fstrim is totally hanging

I have attached the client.client.log in debug verbose, the log start when fstrim start

----- Mail original -----
De: "aderumier" <[email protected]>
À: [email protected]
Cc: "ceph-devel" <[email protected]>
Envoyé: Samedi 18 Juin 2016 09:40:40
Objet: Re: using discard from qemu guest when snapshot exist, fill the rbd layer with zeroes and use more space

Quoted 3 lines
Quoted 3 lines

There is a "rbd_skip_partial_discard" configuration option which can be set to true. When enabled, discard will avoid zeroing holes if the discard extent is in the middle of an object.

Thanks Jason . I had tried it some week ago, and my fstrim was hanging. It'll do more test next week.

It must be defined on client right ?

[client]
rbd_skip_partial_discard = true

----- Mail original -----
De: "Jason Dillaman" <[email protected]>
À: "aderumier" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoyé: Vendredi 17 Juin 2016 15:21:53
Objet: Re: using discard from qemu guest when snapshot exist, fill the rbd layer with zeroes and use more space

There is a "rbd_skip_partial_discard" configuration option which can be set to true. When enabled, discard will avoid zeroing holes if the discard extent is in the middle of an object.

Quoted 11 lines · Alexandre DERUMIER

Hi,

I'm using fstrim inside my qemu guests to remove unused space from the rbd storage.

This is working fine, but I just notice that if a snapshot exist,

It just do the reverse, it's filling the snasphot with zeroes, and the total cluster space is growing.

It's is possible to avoid that ?

Quoted 7 lines

Regards,

Alexandre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Jason
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Jason
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html