[opensuse-factory] Controlling the snapshot id number in snapper
Hello List Mates, Is it possible to use the same snapshot id number after deleting a range of snapshots? Example I have a range of snapshots from 1 > 20 If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing. Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number. There is no explanation for this in any documentation. Cheers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
В Mon, 08 Dec 2014 16:21:38 -0500 Roman Bysh <rbtc1@rogers.com> пишет:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
There is no API to explicitly assign subvolume ID in btrfs when creating it.
Example I have a range of snapshots from 1 > 20
If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing.
Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number.
There is no explanation for this in any documentation.
Cheers!
Roman
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Dec 09, 2014 at 06:35:22AM +0300, Andrei Borzenkov wrote:
В Mon, 08 Dec 2014 16:21:38 -0500 Roman Bysh <rbtc1@rogers.com> пишет:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
There is no API to explicitly assign subvolume ID in btrfs when creating it.
AFAIU Roman is referring to the snapshot number in snapper not the btrfs subvolume id. Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Mon, Dec 08, 2014 at 04:21:38PM -0500, Roman Bysh wrote:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
Example I have a range of snapshots from 1 > 20
If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing.
Snapper should reuse the numbers from 11 on. Please check if after deleting a snapshot the corresponding directory in /.snapshots still exists and if it does whether it is empty. Maybe there's a file from grub left behind.
Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number.
There is a feature request to *not* reuse numbers since that can cause race conditions, see https://github.com/openSUSE/snapper/issues/131. Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/09/2014 03:52 AM, Arvin Schnell wrote:
On Mon, Dec 08, 2014 at 04:21:38PM -0500, Roman Bysh wrote:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
Example I have a range of snapshots from 1 > 20
If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing.
Snapper should reuse the numbers from 11 on. Please check if after deleting a snapshot the corresponding directory in /.snapshots still exists and if it does whether it is empty. Maybe there's a file from grub left behind.
Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number.
There is a feature request to *not* reuse numbers since that can cause race conditions, see https://github.com/openSUSE/snapper/issues/131.
Regards, Arvin Good point. I was unaware about this. I realize that Snapper is still new and we'll probably see more refinements.
Shouldn't Snapper's delete button have a dual function of deleting any and all files in /.snapper related to snapshot 11? Could it just be a limitation of Snapper? Cheers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tue, Dec 09, 2014 at 03:45:06PM -0500, Roman Bysh wrote:
On 12/09/2014 03:52 AM, Arvin Schnell wrote:
On Mon, Dec 08, 2014 at 04:21:38PM -0500, Roman Bysh wrote:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
Example I have a range of snapshots from 1 > 20
If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing.
Snapper should reuse the numbers from 11 on. Please check if after deleting a snapshot the corresponding directory in /.snapshots still exists and if it does whether it is empty. Maybe there's a file from grub left behind.
Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number.
There is a feature request to *not* reuse numbers since that can cause race conditions, see https://github.com/openSUSE/snapper/issues/131.
Regards, Arvin Good point. I was unaware about this. I realize that Snapper is still new and we'll probably see more refinements.
Shouldn't Snapper's delete button have a dual function of deleting any and all files in /.snapper related to snapshot 11?
Snapper only deletes it's "own" files. Scripts creating files in the directories have to cleanup themselfs. Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/09/2014 05:02 PM, Arvin Schnell wrote:
On Tue, Dec 09, 2014 at 03:45:06PM -0500, Roman Bysh wrote:
On 12/09/2014 03:52 AM, Arvin Schnell wrote:
On Mon, Dec 08, 2014 at 04:21:38PM -0500, Roman Bysh wrote:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
Example I have a range of snapshots from 1 > 20
If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing.
Snapper should reuse the numbers from 11 on. Please check if after deleting a snapshot the corresponding directory in /.snapshots still exists and if it does whether it is empty. Maybe there's a file from grub left behind.
Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number.
There is a feature request to *not* reuse numbers since that can cause race conditions, see https://github.com/openSUSE/snapper/issues/131.
Regards, Arvin Good point. I was unaware about this. I realize that Snapper is still new and we'll probably see more refinements.
Shouldn't Snapper's delete button have a dual function of deleting any and all files in /.snapper related to snapshot 11?
Snapper only deletes it's "own" files. Scripts creating files in the directories have to cleanup themselfs.
Regards, Arvin
Using btrfs and Snapper is definitely a learning process. After experiencing a csum error with my first installation, I reinstalled a second time and everything is working great. Hopefully over the next year, we can create a great wiki on btrfs. I know many users on the openSUSE forums are struggling with btrfs. Thank you, Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/09/2014 05:02 PM, Arvin Schnell wrote:
On Tue, Dec 09, 2014 at 03:45:06PM -0500, Roman Bysh wrote:
On 12/09/2014 03:52 AM, Arvin Schnell wrote:
On Mon, Dec 08, 2014 at 04:21:38PM -0500, Roman Bysh wrote:
Hello List Mates,
Is it possible to use the same snapshot id number after deleting a range of snapshots?
Example I have a range of snapshots from 1 > 20
If I delete snapshot ids 11 to 20, I want to create a new snapshot id 11? Snapper automatically starts at 21 and keeps increasing.
Snapper should reuse the numbers from 11 on. Please check if after deleting a snapshot the corresponding directory in /.snapshots still exists and if it does whether it is empty. Maybe there's a file from grub left behind.
Since the old snapshot id 11 no longer exists, I should be able to create a new one with the same id number.
There is a feature request to *not* reuse numbers since that can cause race conditions, see https://github.com/openSUSE/snapper/issues/131.
Regards, Arvin Good point. I was unaware about this. I realize that Snapper is still new and we'll probably see more refinements.
Shouldn't Snapper's delete button have a dual function of deleting any and all files in /.snapper related to snapshot 11?
Snapper only deletes it's "own" files. Scripts creating files in the directories have to cleanup themselfs.
Regards, Arvin
Which script is leaving the grub-snapshot.cfg file behind? -- Cheers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Thu, Dec 11, 2014 at 07:24:37PM -0500, Roman Bysh wrote:
Which script is leaving the grub-snapshot.cfg file behind?
The script in grub2-snapper-plugin.rpm. Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/13/2014 03:08 PM, Arvin Schnell wrote:
On Thu, Dec 11, 2014 at 07:24:37PM -0500, Roman Bysh wrote:
Which script is leaving the grub-snapshot.cfg file behind?
The script in grub2-snapper-plugin.rpm.
Regards, Arvin
Mostly likely Michael will have to edit the 80_suse_btrfs_snapshot file and modify it so that if snapshot is not there. Read grub-snapshot.cfg to find id number, delete grub-snapshot.cfg delete folder. Just an idea ;-) Cheers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Arvin Schnell
-
Roman Bysh