23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.2.1.3 Filesystem Name<br />

The filesystem name is limited to 8 characters. We have encoded the filesystem and<br />

target information in the disk label, so that you can mount by label. This allows<br />

system administrators to move disks around without worrying about issues such as<br />

SCSI disk reordering or getting the /dev/device wrong for a shared target. Soon,<br />

filesystem naming will be made as fail-safe as possible. Currently, Linux disk labels<br />

are limited to 16 characters. To identify the target within the filesystem, 8 characters<br />

are reserved, leaving 8 characters for the filesystem name:<br />

myfsname-MDT0000 or myfsname-OST0a19<br />

An example of mount-by-label:<br />

$ mount -t lustre -L testfs-MDT0000 /mnt/mdt<br />

Caution – Mount-by-label should NOT be used in a multi-path environment.<br />

Although the filesystem name is internally limited to 8 characters, you can mount<br />

the clients at any mount point, so filesystem users are not subjected to short names:<br />

mount -t lustre uml1@tcp0:/shortfs /mnt/my-long-filesystem-name<br />

4.2.1.4 Starting a Server Automatically<br />

Starting <strong>Lustre</strong> only involves the mount command. <strong>Lustre</strong> servers can be added to<br />

/etc/fstab:<br />

$ mount -l -t lustre<br />

/dev/sda1 on /mnt/test/mdt type lustre (rw) [testfs-MDT0000]<br />

/dev/sda2 on /mnt/test/ost0 type lustre (rw) [testfs-OST0000]<br />

192.168.0.21@tcp:/testfs on /mnt/testfs type lustre (rw)<br />

Add to /etc/fstab:<br />

LABEL=testfs-MDT0000 /mnt/test/mdt lustre defaults,_netdev,noauto 0 0<br />

LABEL=testfs-OST0000 /mnt/test/ost0 lustre defaults,_netdev,noauto 0 0<br />

In general, it is wise to specify noauto and let your high-availability (HA) package<br />

manage when to mount the device. If you are not using failover, make sure that<br />

networking has been started before mounting a <strong>Lustre</strong> server. RedHat, SuSe, Debian<br />

(maybe others) use the _netdev flag to ensure that these disks are mounted after<br />

the network is up.<br />

4-8 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!