* fstab: use UUID or labe? @ 2015-05-05 1:42 Rory Jaffe 2015-05-05 6:56 ` Chris Murphy 2015-05-05 15:44 ` Austin S Hemmelgarn 0 siblings, 2 replies; 3+ messages in thread From: Rory Jaffe @ 2015-05-05 1:42 UTC (permalink / raw) To: linux-btrfs 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? Thanks Rory ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fstab: use UUID or labe? 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 1 sibling, 0 replies; 3+ messages in thread From: Chris Murphy @ 2015-05-05 6:56 UTC (permalink / raw) To: Rory Jaffe; +Cc: Btrfs BTRFS On Mon, May 4, 2015 at 7:42 PM, Rory Jaffe <rsjaffe@gmail.com> wrote: > 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? A Btrfs volume has one label and one UUID. All member drives contain this information. So the answer is, it doesn't matter whether you use label or UUID in fstab, except that with UUID there's a lower chance of collision. -- Chris Murphy ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fstab: use UUID or labe? 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 1 sibling, 0 replies; 3+ messages in thread From: Austin S Hemmelgarn @ 2015-05-05 15:44 UTC (permalink / raw) To: Rory Jaffe, linux-btrfs [-- 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 --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-05 15:44 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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.