Linux-BTRFS Archive on lore.kernel.org
 help / color / Atom feed
* Unable to delete or change ro flag on subvolume/snapshot
@ 2019-08-07  8:37 Jon Ander MB
  2019-08-07  9:04 ` Hugo Mills
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Ander MB @ 2019-08-07  8:37 UTC (permalink / raw)
  To: linux-btrfs

Hi!
I have a snapshot with the read only flag set and I'm currently unable
to delete it or change the ro setting
btrfs property set -ts /path/t/snapshot ro false
ERROR: failed to set flags for /path/t/snapshot: Operation not permitted

Deleting the snapshot is also a no-go:

btrfs subvolume delete /path/t/snapshot
Delete subvolume (no-commit): '/path/t/snapshot'
ERROR: cannot delete '/path/t/snapshot': Operation not permitted


The snapshot information:

btrfs subvolume show /path/t/snapshot
/path/t/snapshot
        Name:                   snapshot
        UUID:                   66a145da-a20d-a44e-bb7a-3535da400f5d
        Parent UUID:            f1866638-f77f-e34e-880d-e2e3bec1c88b
        Received UUID:          66a145da-a20d-a44e-bb7a-3535da400f5d
        Creation time:          2019-07-31 12:00:30 +0200
        Subvolume ID:           23786
        Generation:             1856068
        Gen at creation:        1840490
        Parent ID:              517
        Top level ID:           517
        Flags:                  readonly
        Snapshot(s):


Any idea of what can I do?

Regards!

-- 
--- Jon Ander Monleón Besteiro ---

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

* Re: Unable to delete or change ro flag on subvolume/snapshot
  2019-08-07  8:37 Unable to delete or change ro flag on subvolume/snapshot Jon Ander MB
@ 2019-08-07  9:04 ` Hugo Mills
  2019-08-07  9:33   ` Jon Ander MB
  0 siblings, 1 reply; 4+ messages in thread
From: Hugo Mills @ 2019-08-07  9:04 UTC (permalink / raw)
  To: Jon Ander MB; +Cc: linux-btrfs

On Wed, Aug 07, 2019 at 10:37:43AM +0200, Jon Ander MB wrote:
> Hi!
> I have a snapshot with the read only flag set and I'm currently unable
> to delete it or change the ro setting
> btrfs property set -ts /path/t/snapshot ro false
> ERROR: failed to set flags for /path/t/snapshot: Operation not permitted
> 
> Deleting the snapshot is also a no-go:
> 
> btrfs subvolume delete /path/t/snapshot
> Delete subvolume (no-commit): '/path/t/snapshot'
> ERROR: cannot delete '/path/t/snapshot': Operation not permitted

   First question: are you running those commands as root?

   Second question: has the FS itself gone read-only for some reason?
(e.g. corruption detected).

   Hugo.

> 
> The snapshot information:
> 
> btrfs subvolume show /path/t/snapshot
> /path/t/snapshot
>         Name:                   snapshot
>         UUID:                   66a145da-a20d-a44e-bb7a-3535da400f5d
>         Parent UUID:            f1866638-f77f-e34e-880d-e2e3bec1c88b
>         Received UUID:          66a145da-a20d-a44e-bb7a-3535da400f5d
>         Creation time:          2019-07-31 12:00:30 +0200
>         Subvolume ID:           23786
>         Generation:             1856068
>         Gen at creation:        1840490
>         Parent ID:              517
>         Top level ID:           517
>         Flags:                  readonly
>         Snapshot(s):
> 
> 
> Any idea of what can I do?
> 
> Regards!
> 

-- 
Hugo Mills             | I'm all for giving people enough rope to shoot
hugo@... carfax.org.uk | themselves in the foot.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |                                        Andreas Dilger

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

* Re: Unable to delete or change ro flag on subvolume/snapshot
  2019-08-07  9:04 ` Hugo Mills
@ 2019-08-07  9:33   ` Jon Ander MB
  2019-08-07 16:04     ` Chris Murphy
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Ander MB @ 2019-08-07  9:33 UTC (permalink / raw)
  To: Hugo Mills, Jon Ander MB, linux-btrfs

Hi! Thanks for the reply!
First: I am (g)root,, yes :)
Second: The snapshot was taken in ro mode, the fs is not ro and the
rest of the snapshots and volumes work as intended (rw)

Thanks

On Wed, Aug 7, 2019 at 11:04 AM Hugo Mills <hugo@carfax.org.uk> wrote:
>
> On Wed, Aug 07, 2019 at 10:37:43AM +0200, Jon Ander MB wrote:
> > Hi!
> > I have a snapshot with the read only flag set and I'm currently unable
> > to delete it or change the ro setting
> > btrfs property set -ts /path/t/snapshot ro false
> > ERROR: failed to set flags for /path/t/snapshot: Operation not permitted
> >
> > Deleting the snapshot is also a no-go:
> >
> > btrfs subvolume delete /path/t/snapshot
> > Delete subvolume (no-commit): '/path/t/snapshot'
> > ERROR: cannot delete '/path/t/snapshot': Operation not permitted
>
>    First question: are you running those commands as root?
>
>    Second question: has the FS itself gone read-only for some reason?
> (e.g. corruption detected).
>
>    Hugo.
>
> >
> > The snapshot information:
> >
> > btrfs subvolume show /path/t/snapshot
> > /path/t/snapshot
> >         Name:                   snapshot
> >         UUID:                   66a145da-a20d-a44e-bb7a-3535da400f5d
> >         Parent UUID:            f1866638-f77f-e34e-880d-e2e3bec1c88b
> >         Received UUID:          66a145da-a20d-a44e-bb7a-3535da400f5d
> >         Creation time:          2019-07-31 12:00:30 +0200
> >         Subvolume ID:           23786
> >         Generation:             1856068
> >         Gen at creation:        1840490
> >         Parent ID:              517
> >         Top level ID:           517
> >         Flags:                  readonly
> >         Snapshot(s):
> >
> >
> > Any idea of what can I do?
> >
> > Regards!
> >
>
> --
> Hugo Mills             | I'm all for giving people enough rope to shoot
> hugo@... carfax.org.uk | themselves in the foot.
> http://carfax.org.uk/  |
> PGP: E2AB1DE4          |                                        Andreas Dilger



-- 
--- Jon Ander Monleón Besteiro ---

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

* Re: Unable to delete or change ro flag on subvolume/snapshot
  2019-08-07  9:33   ` Jon Ander MB
@ 2019-08-07 16:04     ` Chris Murphy
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Murphy @ 2019-08-07 16:04 UTC (permalink / raw)
  To: Jon Ander MB; +Cc: Hugo Mills, Btrfs BTRFS

On Wed, Aug 7, 2019 at 3:33 AM Jon Ander MB <jonandermonleon@gmail.com> wrote:
>
> Hi! Thanks for the reply!
> First: I am (g)root,, yes :)
> Second: The snapshot was taken in ro mode, the fs is not ro and the
> rest of the snapshots and volumes work as intended (rw)
>
> Thanks
>
> On Wed, Aug 7, 2019 at 11:04 AM Hugo Mills <hugo@carfax.org.uk> wrote:
> >
> > On Wed, Aug 07, 2019 at 10:37:43AM +0200, Jon Ander MB wrote:
> > > Hi!
> > > I have a snapshot with the read only flag set and I'm currently unable
> > > to delete it or change the ro setting
> > > btrfs property set -ts /path/t/snapshot ro false
> > > ERROR: failed to set flags for /path/t/snapshot: Operation not permitted
> > >
> > > Deleting the snapshot is also a no-go:
> > >
> > > btrfs subvolume delete /path/t/snapshot
> > > Delete subvolume (no-commit): '/path/t/snapshot'
> > > ERROR: cannot delete '/path/t/snapshot': Operation not permitted
> >
> >    First question: are you running those commands as root?
> >
> >    Second question: has the FS itself gone read-only for some reason?
> > (e.g. corruption detected).
> >
> >    Hugo.
> >
> > >
> > > The snapshot information:
> > >
> > > btrfs subvolume show /path/t/snapshot
> > > /path/t/snapshot
> > >         Name:                   snapshot
> > >         UUID:                   66a145da-a20d-a44e-bb7a-3535da400f5d
> > >         Parent UUID:            f1866638-f77f-e34e-880d-e2e3bec1c88b
> > >         Received UUID:          66a145da-a20d-a44e-bb7a-3535da400f5d
> > >         Creation time:          2019-07-31 12:00:30 +0200
> > >         Subvolume ID:           23786
> > >         Generation:             1856068
> > >         Gen at creation:        1840490
> > >         Parent ID:              517
> > >         Top level ID:           517
> > >         Flags:                  readonly
> > >         Snapshot(s):
> > >
> > >
> > > Any idea of what can I do?

Maybe strace the failing command, and see if that provides a hint
what's going on?

-- 
Chris Murphy

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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-07  8:37 Unable to delete or change ro flag on subvolume/snapshot Jon Ander MB
2019-08-07  9:04 ` Hugo Mills
2019-08-07  9:33   ` Jon Ander MB
2019-08-07 16:04     ` Chris Murphy

Linux-BTRFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-btrfs/0 linux-btrfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-btrfs linux-btrfs/ https://lore.kernel.org/linux-btrfs \
		linux-btrfs@vger.kernel.org linux-btrfs@archiver.kernel.org
	public-inbox-index linux-btrfs


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-btrfs


AGPL code for this site: git clone https://public-inbox.org/ public-inbox