From: Austin S Hemmelgarn <ahferroin7@gmail.com>
To: Rory Jaffe <rsjaffe@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: fstab: use UUID or labe?
Date: Tue, 05 May 2015 11:44:42 -0400 [thread overview]
Message-ID: <5548E56A.3040407@gmail.com> (raw)
In-Reply-To: <CAA=o1pmDtxRCgWZjUwazq8G+ch__oMAdXLUhnu3-N7ieASZO_Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]
On 2015-05-04 21:42, Rory Jaffe wrote:
> Question about fault tolerance and choice of ID. I'm running btrfs
> with subvolumes for / and /home. /boot and grub are on a thumb drive.
> I have six drives in the system, running raid1 for both data and
> metadata.
>
> When I run "sudo btrfs fi show" it provides both the label and the
> uuid. The UUID shown is the same as that for the first partition that
> btrfs was installed on.
>
> In fstab, the mount points currently use that UUID to identify the file system.
>
> If the original drive fails, will that UUID still point to the
> filesystem, or is it better to use the label for the filesystem? Will
> the filesystem mount in either case with the failure of the original
> drive?
>
The UUID itself refers to the filesystem as a whole, not that specific
partition, so even if the original drive fails, the UUID will still
properly reference the filesystem (whether or not you can mount it is a
whole separate issue, as a missing device usually means you need some
manual intervention for recovery).
Personally, I prefer to use labels in fstab, as it makes it much more
obvious what is what ( and labels are usually much more compact than
UUID's), although this can cause issues if you aren't careful (multiple
filesystems with the same label gets really interesting when trying to
mount by label). Additionally, on sufficiently recent distributions,
you might be able to use PARTUUID or PARTLABEL to id individual
partitions in /etc/fstab, although the disk needs to have a partition
table format that actually supports this (GPT is the only one I know of,
although there may be others).
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2967 bytes --]
prev parent reply other threads:[~2015-05-05 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 1:42 fstab: use UUID or labe? Rory Jaffe
2015-05-05 6:56 ` Chris Murphy
2015-05-05 15:44 ` Austin S Hemmelgarn [this message]
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=5548E56A.3040407@gmail.com \
--to=ahferroin7@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=rsjaffe@gmail.com \
/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.