WARNING: This is the _old_ Lustre wiki, and it is in the process of being retired. The information found here is all likely to be out of date. Please search the new wiki for more up to date information.

Working with File System Labels: Difference between revisions

From Obsolete Lustre Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
A file system name is limited to 8 characters so that the file system and
The file system name is limited to 8 characters so that the file system and
target information can be encoded in the disk label. This allows system administrators to "mount by label", reducing the risk of SCSI disk reordering or getting the /dev/device wrong for a shared target.  
target information can be encoded in the disk label. This allows system administrators to "mount by label", reducing the risk of SCSI disk reordering or getting the /dev/device wrong for a shared target.  



Revision as of 15:38, 22 September 2009

The file system name is limited to 8 characters so that the file system and target information can be encoded in the disk label. This allows system administrators to "mount by label", reducing the risk of SCSI disk reordering or getting the /dev/device wrong for a shared target.

Linux disk labels are limited to 16 characters. To identify the target within the file system, 8 characters are reserved, leaving 8 characters for the file system name:

<fsname>-MDT0000 or <fsname>-OST0a19

To mount by label, use this command:

$ mount -t lustre -L <file system label> <mount point>

This is an example of mounting by label:

$ mount -t lustre -L testfs-MDT0000 /mnt/mdt

Caution: Mounting by label should NOT be used in a multi-path environment.

Although the file system name is internally limited to 8 characters, you can mount the clients at any mount point, so file system users are not limited to using short names. Here is an example:

mount -t lustre uml1@tcp0:/shortfs /mnt/<long-file_system-name>