All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [SPDK] Snapshot issue when deleting last clone
@ 2018-12-12 13:24 Harris, James R
  0 siblings, 0 replies; 4+ messages in thread
From: Harris, James R @ 2018-12-12 13:24 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 2338 bytes --]

That makes sense. Thanks for the explanation.

Jim

Sent from my iPhone

> On Dec 12, 2018, at 12:00 AM, Szwed, Maciej <maciej.szwed(a)intel.com> wrote:
> 
> The issue was that volume was listed by get_bdevs as not a snapshot, but it was actually read only, so it still behaves as a snapshot. Client is tracking volumes and snapshots using only output from get_bdevs and that fails in this case.
> 
> Maciek
> 
> -----Original Message-----
> From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Harris, James R
> Sent: Monday, December 10, 2018 5:39 PM
> To: Storage Performance Development Kit <spdk(a)lists.01.org>
> Subject: Re: [SPDK] Snapshot issue when deleting last clone
> 
> Hi Maciek,
> 
> Can you describe the issue in more detail?  Meaning what was the impact of removing the snapshot from the snapshots TAILQ when its number of clones reached 0?
> 
> In general I agree that we should not implicitly make the volume RW after its last clone is removed.
> 
> Thanks,
> 
> -Jim
> 
> 
> On 12/10/18, 3:53 AM, "SPDK on behalf of Szwed, Maciej" <spdk-bounces(a)lists.01.org on behalf of maciej.szwed(a)intel.com> wrote:
> 
>    Hi,
>    One of SPDK clients found issue with deleting last clone of snapshot. After investigation I found out that in such case is we remove the snapshot from snapshots list in function _spdk_bs_blob_list_remove(), but the volume remains read-only as it was still a snapshot.
>    We should correct this, but what would be the appropriate way? Should we NOT remove the snapshot from snapshots list (makes more sense to me), or should we convert it to normal volume by making it RW (that options may confuse user that created snapshot, which was later converted to normal volume and now user cannot create clone from it anymore).
>    Let me know what do you think about it.
> 
>    Thanks,
>    Maciek
> 
> 
>    _______________________________________________
>    SPDK mailing list
>    SPDK(a)lists.01.org
>    https://lists.01.org/mailman/listinfo/spdk
> 
> 
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [SPDK] Snapshot issue when deleting last clone
@ 2018-12-12  6:59 Szwed, Maciej
  0 siblings, 0 replies; 4+ messages in thread
From: Szwed, Maciej @ 2018-12-12  6:59 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 1975 bytes --]

The issue was that volume was listed by get_bdevs as not a snapshot, but it was actually read only, so it still behaves as a snapshot. Client is tracking volumes and snapshots using only output from get_bdevs and that fails in this case.

Maciek

-----Original Message-----
From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Harris, James R
Sent: Monday, December 10, 2018 5:39 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] Snapshot issue when deleting last clone

Hi Maciek,

Can you describe the issue in more detail?  Meaning what was the impact of removing the snapshot from the snapshots TAILQ when its number of clones reached 0?

In general I agree that we should not implicitly make the volume RW after its last clone is removed.

Thanks,

-Jim


On 12/10/18, 3:53 AM, "SPDK on behalf of Szwed, Maciej" <spdk-bounces(a)lists.01.org on behalf of maciej.szwed(a)intel.com> wrote:

    Hi,
    One of SPDK clients found issue with deleting last clone of snapshot. After investigation I found out that in such case is we remove the snapshot from snapshots list in function _spdk_bs_blob_list_remove(), but the volume remains read-only as it was still a snapshot.
    We should correct this, but what would be the appropriate way? Should we NOT remove the snapshot from snapshots list (makes more sense to me), or should we convert it to normal volume by making it RW (that options may confuse user that created snapshot, which was later converted to normal volume and now user cannot create clone from it anymore).
    Let me know what do you think about it.
    
    Thanks,
    Maciek
    
    
    _______________________________________________
    SPDK mailing list
    SPDK(a)lists.01.org
    https://lists.01.org/mailman/listinfo/spdk
    

_______________________________________________
SPDK mailing list
SPDK(a)lists.01.org
https://lists.01.org/mailman/listinfo/spdk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [SPDK] Snapshot issue when deleting last clone
@ 2018-12-10 16:38 Harris, James R
  0 siblings, 0 replies; 4+ messages in thread
From: Harris, James R @ 2018-12-10 16:38 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

Hi Maciek,

Can you describe the issue in more detail?  Meaning what was the impact of removing the snapshot from the snapshots TAILQ when its number of clones reached 0?

In general I agree that we should not implicitly make the volume RW after its last clone is removed.

Thanks,

-Jim


On 12/10/18, 3:53 AM, "SPDK on behalf of Szwed, Maciej" <spdk-bounces(a)lists.01.org on behalf of maciej.szwed(a)intel.com> wrote:

    Hi,
    One of SPDK clients found issue with deleting last clone of snapshot. After investigation I found out that in such case is we remove the snapshot from snapshots list in function _spdk_bs_blob_list_remove(), but the volume remains read-only as it was still a snapshot.
    We should correct this, but what would be the appropriate way? Should we NOT remove the snapshot from snapshots list (makes more sense to me), or should we convert it to normal volume by making it RW (that options may confuse user that created snapshot, which was later converted to normal volume and now user cannot create clone from it anymore).
    Let me know what do you think about it.
    
    Thanks,
    Maciek
    
    
    _______________________________________________
    SPDK mailing list
    SPDK(a)lists.01.org
    https://lists.01.org/mailman/listinfo/spdk
    


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [SPDK] Snapshot issue when deleting last clone
@ 2018-12-10 10:46 Szwed, Maciej
  0 siblings, 0 replies; 4+ messages in thread
From: Szwed, Maciej @ 2018-12-10 10:46 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

Hi,
One of SPDK clients found issue with deleting last clone of snapshot. After investigation I found out that in such case is we remove the snapshot from snapshots list in function _spdk_bs_blob_list_remove(), but the volume remains read-only as it was still a snapshot.
We should correct this, but what would be the appropriate way? Should we NOT remove the snapshot from snapshots list (makes more sense to me), or should we convert it to normal volume by making it RW (that options may confuse user that created snapshot, which was later converted to normal volume and now user cannot create clone from it anymore).
Let me know what do you think about it.

Thanks,
Maciek



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-12 13:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 13:24 [SPDK] Snapshot issue when deleting last clone Harris, James R
  -- strict thread matches above, loose matches on Subject: below --
2018-12-12  6:59 Szwed, Maciej
2018-12-10 16:38 Harris, James R
2018-12-10 10:46 Szwed, Maciej

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.