linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex MacCuish <alex@maccuish.de>
To: linux-btrfs@vger.kernel.org
Subject: Adding a UUID to the top level subvol on an existing filesystem
Date: Sun, 9 Jan 2022 11:11:40 +0100	[thread overview]
Message-ID: <61b5cb09-8bd4-8b25-fbda-73b866a36fd5@maccuish.de> (raw)

For use of send/receive, I need my subvolume id 5 to have a UUID. I see 
here (https://www.spinics.net/lists/linux-btrfs/msg76016.html) that it 
was discussed to add this feature to say btrfstune, but I can't find any 
option to do it. What's the best way to do this and ensure current 
subvolumes have the correct parent ID?

---

Linux xxx.xxx.xxx 5.15.11-051511-generic #202112220937 SMP Wed Dec 22 
10:04:02 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

btrfs-progs v5.4.1

btrfs fi show

Label: 'storage'  uuid: 61538bc8-fc27-4818-9cc9-133938e252da
         Total devices 4 FS bytes used 2.35TiB
         devid    1 size 1.82TiB used 1.63TiB path /dev/sdd
         devid    2 size 1.82TiB used 1.63TiB path /dev/sdc
         devid    3 size 1.82TiB used 744.03GiB path /dev/sdb
         devid    4 size 931.51GiB used 738.03GiB path /dev/sde

btrfs fi df /mnt/storage
Data, RAID1: total=2.35TiB, used=2.34TiB
System, RAID1: total=32.00MiB, used=368.00KiB
Metadata, RAID1: total=5.00GiB, used=4.32GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

btrfs subvolume show /mnt/storage/
/
         Name:                   <FS_TREE>
         UUID:                   -
         Parent UUID:            -
         Received UUID:          -
         Creation time:          -
         Subvolume ID:           5
         Generation:             4620363
         Gen at creation:        0
         Parent ID:              0
         Top level ID:           0
         Snapshot(s):
                                 CN_IMGS
                                 CN_PKGS
                                 CN_PKGS/.snapshots
                                 CN_SHARE
                                 CN_SHARE/.snapshots
                                 CN_MEDIA
                                 CN_MEDIA/.snapshots
                                 CN_HOMES
                                 CN_HOMES/.snapshots
                                 CN_BACKUPS


             reply	other threads:[~2022-01-09 10:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09 10:11 Alex MacCuish [this message]
2022-01-10 11:38 ` Adding a UUID to the top level subvol on an existing filesystem Andrei Borzenkov
2022-01-11  7:31   ` Alex MacCuish

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=61b5cb09-8bd4-8b25-fbda-73b866a36fd5@maccuish.de \
    --to=alex@maccuish.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).