* Snapper on Ubuntu
@ 2014-03-15 14:05 Hendrik Friedel
2014-03-15 14:42 ` Michael Schuerig
2014-03-16 12:12 ` Arvin Schnell
0 siblings, 2 replies; 8+ messages in thread
From: Hendrik Friedel @ 2014-03-15 14:05 UTC (permalink / raw)
To: linux-btrfs
Hello,
I am not sure, whether this is the right place to ask this question -if
not, please advise.
Ubuntu installs on btrfs, creating subvolumes for the homes (/home), the
root home (/root) and the root (/) named @home, @root and @ respectively.
When I install snapper I configure it like this
snapper -c rt create-config /
snapper -c home create-config /home
snapper -c root create-config /root
snapper -c Video create-config /mnt/BTRFS/Video/
After executing snapper create several times, this results in
#btrfs subvolume list /
ID 258 gen 2615 top level 5 path @
ID 259 gen 2611 top level 5 path @root
ID 260 gen 2555 top level 5 path @home
ID 281 gen 2555 top level 5 path @home/.snapshots
ID 282 gen 2606 top level 5 path @root/.snapshots
ID 283 gen 2562 top level 5 path @root/.snapshots/1/snapshot
ID 284 gen 2563 top level 5 path @root/.snapshots/2/snapshot
ID 285 gen 2573 top level 5 path @root/.snapshots/3/snapshot
ID 286 gen 2577 top level 5 path @root/.snapshots/4/snapshot
ID 287 gen 2582 top level 5 path @root/.snapshots/5/snapshot
ID 288 gen 2583 top level 5 path @root/.snapshots/6/snapshot
ID 290 gen 2605 top level 258 path .snapshots
ID 291 gen 2599 top level 5 path @root/.snapshots/7/snapshot
ID 292 gen 2600 top level 5 path @root/.snapshots/8/snapshot
ID 293 gen 2605 top level 5 path @root/.snapshots/9/snapshot
#btrfs subvolume list /mnt/BTRFS/Video/
ID 258 gen 4560 top level 5 path Video
ID 259 gen 4557 top level 258 path VDR
ID 275 gen 672 top level 258 path Filme
ID 284 gen 816 top level 258 path Homevideo
ID 288 gen 1048 top level 258 path VideoSchnitt
ID 1874 gen 1288 top level 5 path rsnapshot
ID 1875 gen 4245 top level 5 path backups
ID 2265 gen 4560 top level 258 path .snapshots
So, this all works for @root only, not for the other subvolumes.
Do you have any suggestions, how to find the cause?
Regards,
Hendrik
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Snapper on Ubuntu
2014-03-15 14:05 Snapper on Ubuntu Hendrik Friedel
@ 2014-03-15 14:42 ` Michael Schuerig
2014-03-15 17:47 ` Hendrik Friedel
2014-03-16 12:12 ` Arvin Schnell
1 sibling, 1 reply; 8+ messages in thread
From: Michael Schuerig @ 2014-03-15 14:42 UTC (permalink / raw)
To: linux-btrfs
On Saturday 15 March 2014 15:05:22 Hendrik Friedel wrote:
> Hello,
>
> I am not sure, whether this is the right place to ask this question
> -if not, please advise.
>
> Ubuntu installs on btrfs, creating subvolumes for the homes (/home),
> the root home (/root) and the root (/) named @home, @root and @
> respectively.
>
> When I install snapper I configure it like this
> snapper -c rt create-config /
> snapper -c home create-config /home
> snapper -c root create-config /root
> snapper -c Video create-config /mnt/BTRFS/Video/
>
> After executing snapper create several times, this results in
>
> #btrfs subvolume list /
> ID 258 gen 2615 top level 5 path @
> ID 259 gen 2611 top level 5 path @root
> ID 260 gen 2555 top level 5 path @home
> ID 281 gen 2555 top level 5 path @home/.snapshots
> ID 282 gen 2606 top level 5 path @root/.snapshots
> ID 283 gen 2562 top level 5 path @root/.snapshots/1/snapshot
> ID 284 gen 2563 top level 5 path @root/.snapshots/2/snapshot
> ID 285 gen 2573 top level 5 path @root/.snapshots/3/snapshot
[...]
> So, this all works for @root only, not for the other subvolumes.
>
> Do you have any suggestions, how to find the cause?
I think you may have forgotten to specify the config snapper is supposed
to use. Try
# snapper -c home create
# snapper -c Video create
Michael
--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Snapper on Ubuntu
2014-03-15 14:42 ` Michael Schuerig
@ 2014-03-15 17:47 ` Hendrik Friedel
2014-03-15 18:21 ` David Disseldorp
0 siblings, 1 reply; 8+ messages in thread
From: Hendrik Friedel @ 2014-03-15 17:47 UTC (permalink / raw)
To: Michael Schuerig, linux-btrfs
> I think you may have forgotten to specify the config snapper is supposed
> to use. Try
>
> # snapper -c home create
> # snapper -c Video create
Thanks, that was it. I would have expected an Error-Message though...
Greetings,
Hendrik
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Snapper on Ubuntu
2014-03-15 17:47 ` Hendrik Friedel
@ 2014-03-15 18:21 ` David Disseldorp
2014-03-16 10:27 ` Hendrik Friedel
0 siblings, 1 reply; 8+ messages in thread
From: David Disseldorp @ 2014-03-15 18:21 UTC (permalink / raw)
To: Hendrik Friedel; +Cc: Michael Schuerig, linux-btrfs
On Sat, 15 Mar 2014 18:47:49 +0100
Hendrik Friedel <hendrik@friedels.name> wrote:
> > I think you may have forgotten to specify the config snapper is supposed
> > to use. Try
> >
> > # snapper -c home create
> > # snapper -c Video create
>
> Thanks, that was it. I would have expected an Error-Message though...
Snapper uses the "root" config by default. /root snapshots were created
successfully when you ran "snapper create" without specifying an explicit
config.
Cheers, David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Snapper on Ubuntu
2014-03-15 14:05 Snapper on Ubuntu Hendrik Friedel
2014-03-15 14:42 ` Michael Schuerig
@ 2014-03-16 12:12 ` Arvin Schnell
2014-03-16 16:58 ` Hendrik Friedel
1 sibling, 1 reply; 8+ messages in thread
From: Arvin Schnell @ 2014-03-16 12:12 UTC (permalink / raw)
To: Hendrik Friedel; +Cc: linux-btrfs
On Sat, Mar 15, 2014 at 03:05:22PM +0100, Hendrik Friedel wrote:
> When I install snapper I configure it like this
> snapper -c rt create-config /
> snapper -c home create-config /home
> snapper -c root create-config /root
> snapper -c Video create-config /mnt/BTRFS/Video/
Just a recommendation about the config names. At least on
openSUSE "root" is used for /. I would suggest to use "home_root"
for /root like the pam-snapper module does.
Regards,
Arvin
--
Arvin Schnell, <aschnell@suse.de>
Senior Software Engineer, Research & Development
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Snapper on Ubuntu
2014-03-16 12:12 ` Arvin Schnell
@ 2014-03-16 16:58 ` Hendrik Friedel
2014-03-16 17:45 ` Arvin Schnell
0 siblings, 1 reply; 8+ messages in thread
From: Hendrik Friedel @ 2014-03-16 16:58 UTC (permalink / raw)
To: Arvin Schnell; +Cc: linux-btrfs
Hello,
> Just a recommendation about the config names. At least on
> openSUSE "root" is used for /. I would suggest to use "home_root"
> for /root like the pam-snapper module does.
thanks for the advise.
In fact on a previous try I had -by chance- used exactly this
nomenclature. Then I restarted
Now, can I just rename the files in /etc/snapper/configs and the entries
in /etc/sysconfig/snapper?
Or do I have to start from scratch (remove all snapshots, all
configurations)?
Regards,
Hendrik
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Snapper on Ubuntu
2014-03-16 16:58 ` Hendrik Friedel
@ 2014-03-16 17:45 ` Arvin Schnell
0 siblings, 0 replies; 8+ messages in thread
From: Arvin Schnell @ 2014-03-16 17:45 UTC (permalink / raw)
To: Hendrik Friedel; +Cc: linux-btrfs
On Sun, Mar 16, 2014 at 05:58:10PM +0100, Hendrik Friedel wrote:
> > Just a recommendation about the config names. At least on
> > openSUSE "root" is used for /. I would suggest to use "home_root"
> > for /root like the pam-snapper module does.
>
> thanks for the advise.
>
> In fact on a previous try I had -by chance- used exactly this nomenclature.
> Then I restarted
>
> Now, can I just rename the files in /etc/snapper/configs and the entries in
> /etc/sysconfig/snapper?
Yes, that should work. Just make sure to kill snapperd before.
Regards,
Arvin
--
Arvin Schnell, <aschnell@suse.de>
Senior Software Engineer, Research & Development
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-03-16 17:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-15 14:05 Snapper on Ubuntu Hendrik Friedel
2014-03-15 14:42 ` Michael Schuerig
2014-03-15 17:47 ` Hendrik Friedel
2014-03-15 18:21 ` David Disseldorp
2014-03-16 10:27 ` Hendrik Friedel
2014-03-16 12:12 ` Arvin Schnell
2014-03-16 16:58 ` Hendrik Friedel
2014-03-16 17:45 ` Arvin Schnell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox