From: don fisher <hdf3@comcast.net>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: nube trying to backup my systems
Date: Thu, 19 Mar 2015 16:31:47 -0700 [thread overview]
Message-ID: <550B5C63.6010401@comcast.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 3058 bytes --]
I am new to btrfs, being introduced under openSuse 3.2 as the root file
system. In the past I always made backups of my disks using rsync. I now
have two versions of the OS on the same system. I was trying to mount
the second btrfs system as well as the first. I edited my /etc/fstab
(attached) to add a similar set of mounts as the existing system. Man
mount said I needed to use the subvolume ID rather than paths. So I
mounted the root of the dest file system at /usr11, and then executed:
btrfs subvolume list -u /usr11
to obtain the UUID for each subvolume. After some time in emacs I edited
my fstab to include IDs. It appeared successful as the output of df -a
which follows demonstrates:
/dev/sdc2 btrfs 21G 5.9G 14G 30% /
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/tmp
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/spool
/dev/sdc3 xfs 910G 109G 801G 12% /home
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/lib/pgsql
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/opt
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/log
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/lib/named
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/lib/mailman
/dev/sdc2 btrfs 21G 5.9G 14G 30% /tmp
/dev/sdc2 btrfs 21G 5.9G 14G 30% /srv
/dev/sdc2 btrfs 21G 5.9G 14G 30% /opt
/dev/sdc2 btrfs 21G 5.9G 14G 30% /boot/grub2/x86_64-efi
/dev/sdc2 btrfs 21G 5.9G 14G 30% /var/crash
/dev/sdc2 btrfs 21G 5.9G 14G 30% /usr/local
/dev/sdc2 btrfs 21G 5.9G 14G 30% /boot/grub2/i386-pc
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/tmp
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/spool
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/opt
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/log
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/lib/pgsql
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/lib/named
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/lib/mailman
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/var/crash
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/usr/local
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/tmp
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/srv
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/opt
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/boot/grub2/x86_64-efi
/dev/sdb2 btrfs 21G 9.1G 11G 47% /usr11/boot/grub2/i386-pc
I was happy until I tried to perform an ls on /usr11/tmp and found that
it contained the root file system, all the /usr11 files present. My plan
had been to rsync these two systems, from / to /usr11. If I umount
/usr1/tmp subvolume and ls on /usr1/tmp, I obtain the expected results.
Why when I mount the subvolume do I see all of the root files? I have
attached my fstab for reference. I hope this is an easy one.
Thanks,
Don
[-- Attachment #2: fstab --]
[-- Type: text/plain, Size: 4096 bytes --]
UUID=094b906f-2cbe-4241-8adc-0938266023ad swap swap defaults 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae / btrfs defaults 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /boot/grub2/i386-pc btrfs subvol=boot/grub2/i386-pc 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /boot/grub2/x86_64-efi btrfs subvol=boot/grub2/x86_64-efi 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /opt btrfs subvol=opt 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /srv btrfs subvol=srv 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /tmp btrfs subvol=tmp 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /usr/local btrfs subvol=usr/local 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/crash btrfs subvol=var/crash 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/lib/mailman btrfs subvol=var/lib/mailman 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/lib/named btrfs subvol=var/lib/named 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/lib/pgsql btrfs subvol=var/lib/pgsql 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/log btrfs subvol=var/log 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/opt btrfs subvol=var/opt 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/spool btrfs subvol=var/spool 0 0
UUID=5232a076-1062-4b49-a1c3-484a9e785bae /var/tmp btrfs subvol=var/tmp 0 0
UUID=ce7d48a9-c3f6-4a23-8004-5208b8276f85 /home xfs defaults 1 2
# UUID for subvolumes came from btrfs subvolume list -u /usr11 use df -a
#UUID=0af968c4-fbb5-4cde-b5b8-181763170a34 swap swap defaults 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11 btrfs defaults 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/boot/grub2/i386-pc btrfs subvolid=UUID=b62cffe5-32dc-a44f-9117-ed1558feac83 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/boot/grub2/x86_64-efi btrfs subvolid=UUID=df44b847-81ae-a447-9cb1-2e015262125f 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/opt btrfs subvolid=UUID=3c46ec67-442b-a546-8396-0e34ce2cd493 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/srv btrfs subvolid=UUID=dc710aed-4731-ba4f-acc0-8f43e710228a 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/tmp btrfs subvolid=UUID=d3080a7a-b74c-b145-a5dc-fcf80aebda8d 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/usr/local btrfs subvolid=UUID=cab6bc25-db7c-5046-8285-7fb4e17886c9 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/crash btrfs subvolid=UUID=850146e1-8cc8-d84a-8895-26e4bdbf6d63 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/lib/mailman btrfs subvolid=UUID=44e4e9f1-030d-c846-83cb-4897bfb3c77f 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/lib/named btrfs subvolid=UUID=818ed2e9-24f8-3d45-bc75-f356a37167fe 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/lib/pgsql btrfs subvolid=UUID=f25de053-f268-1141-9131-605fde0b9d0d 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/log btrfs subvolid=UUID=33910c4a-88f5-4644-a67a-7e21f3b1ef67 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/opt btrfs subvolid=UUID=9d2dacbd-88ae-b249-a2c6-c6545d107a68 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/spool btrfs subvolid=UUID=5c996dfd-bc3a-314a-a69e-a43f53bde948 0 0
UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/var/tmp btrfs subvolid=UUID=21190cdf-9736-ea4b-abf0-d5e93911891b 0 0
#UUID=7f2bc28a-1c69-49fb-b4a8-d4eec79d2fa5 /home xfs defaults 1 2
#UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /.snapshots btrfs s ubvol=.snapshots 0 0
#/dev/sr0 /cdrom auto users,exec,dev,suid,rw,async,noauto 0 0
#/dev/sdd1 /usr11 auto users,exec,dev,suid,rw,async,noauto 0 0
next reply other threads:[~2015-03-19 23:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 23:31 don fisher [this message]
2015-03-20 0:16 ` nube trying to backup my systems Chris Murphy
2015-03-20 1:49 ` don fisher
2015-03-20 2:15 ` Chris Murphy
2015-03-20 2:34 ` don fisher
2015-03-20 3:04 ` Chris Murphy
2015-03-20 4:34 ` Duncan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=550B5C63.6010401@comcast.net \
--to=hdf3@comcast.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.