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.

Difference between revisions of "Working with File System Labels"

From Obsolete Lustre Wiki
Jump to navigationJump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
<small>''(Updated: Sep 2009)''</small>
 +
 
The file system name is limited to 8 characters so that file system and
 
The file system name is limited to 8 characters so that 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.  

Latest revision as of 12:22, 22 February 2010

(Updated: Sep 2009)

The file system name is limited to 8 characters so that 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>

Here 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>