- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: need to use blkid's UUID in fstab
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 01:54 PM
тАО01-26-2011 01:54 PM
Thanks
Mike.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 10:37 PM
тАО01-26-2011 10:37 PM
Re: need to use blkid's UUID in fstab
It depends on your definition of "better".
In general, the advantage is that it should work even if your device name changes.
Even the fstab(5) man page tells you:
This will make the system more robust: adding or removing a SCSI disk changes the disk device name but not the filesystem volume label.
Regards,
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 10:53 PM
тАО01-26-2011 10:53 PM
Solution(If a Linux distribution provides special GUI tools that rely on filesystem UUIDs in /etc/fstab, those might obviously be broken if you revert to traditional names. However, if you care about the difference, you probably prefer not to use GUI "wizards" anyway...)
UUIDs are better if you won't always know what the exact device name will be. For example, if your system uses traditional partitions (instead of LVM) on SAN devices, or your portable demo system uses external Firewire disks you might not always plug in in the exact same order, or when you're preparing to swap your disk controller to a different model.
When you use UUIDs in /etc/fstab, the mount command will go through all disk devices known to the system (as listed in /proc/partitions) and look for the specified UUID.
UUIDs are not so good if you have multiple clones (copies made with Ghost, dd or a similar tool) of a single filesystem available and you must ensure a particular one is chosen.
In short, UUIDs are just one more tool. It's the responsibility of the system administrator to understand when UUIDs are helpful, and when they are not.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 06:19 AM
тАО01-27-2011 06:19 AM
Re: need to use blkid's UUID in fstab
One very solid erason I can think of is to pinpoint without doubt that a disk has the correct filesystem on it or an LVOL really belongs to a particular VG and that is what you really want.
The UUID is a very "unique" representation that it is utterly impossible another server willl have a blkid/UUID that will be the same. It is a VERY large randomly generated values whose duplication by the planets 1 Billion Linux machines could possibly duplicate by chance...
So there ya go --- Ease in identifcation....
It is and always has been my standard. We do have strict fstab standards though as follows:
#/dev/mapper/lnx0001-oracle:
UUID="c9d7f33c-4621-44d9-b3c2-90fe5e7ad62e" /oracle ext3 defaults 1 2
#/dev/mapper/XPLUN00a04dp1:
UUID="4e953ee6-3351-43be-886d-86a600d01687" /oraback ocfs2 defaults 1 2
We always add the underlying device lvol or disk name following the UUID fstab entry.
CHeers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 08:21 AM
тАО01-27-2011 08:21 AM
Re: need to use blkid's UUID in fstab
Thanks
Mike.