23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 1: Simple <strong>Lustre</strong> configuration with CSV (use the following command):<br />

$ lustre_config -v -a -f lustre_config.csv<br />

This command starts the execution and configuration on the nodes or targets in<br />

lustre_config.csv, prompting you for the password to log in with root access<br />

to the nodes. To avoid this prompt, configure a shell like pdsh or SSH.<br />

After completing the above steps, the script makes <strong>Lustre</strong> target entries in the<br />

/etc/fstab file on <strong>Lustre</strong> server nodes, such as:<br />

/dev/sdb /mnt/mdtlustre defaults 0 0<br />

/dev/sda /mnt/ostlustre defaults 0 0<br />

2. Run mount /dev/sdb and mount /dev/sda to start the <strong>Lustre</strong> services.<br />

Note – Use the /usr/sbin/lustre_createcsv script to collect information on<br />

<strong>Lustre</strong> targets from running a <strong>Lustre</strong> cluster and generating a CSV file. It is a reverse<br />

utility (compared to lustre_config) and should be run on the MGS node.<br />

Example 2: More complicated <strong>Lustre</strong> configuration with CSV:<br />

For RAID and LVM-based configuration, the lustre_config.csv file looks like<br />

this:<br />

# Configuring RAID 5 on mds16.clusterfs.com<br />

mds16.clusterfs.com,MD,/dev/md0,,-c 128,5,/dev/sdb /dev/sdc<br />

/dev/sdd<br />

# configuring multiple RAID5 on oss161.clusterfs.com<br />

oss161.clusterfs.com,MD,/dev/md0,,-c 128,5,/dev/sdb /dev/sdc<br />

/dev/sdd<br />

oss161.clusterfs.com,MD,/dev/md1,,-c 128,5,/dev/sde /dev/sdf<br />

/dev/sdg<br />

# configuring LVM2-PV from the RAID5 from the above steps on<br />

oss161.clusterfs.com<br />

oss161.clusterfs.com,PV,/dev/md0 /dev/md1<br />

# configuring LVM2-VG from the PV and RAID5 from the above steps on<br />

oss161.clusterfs.com<br />

oss161.clusterfs.com,VG,oss_data,,-s 32M,/dev/md0 /dev/md1<br />

# configuring LVM2-LV from the VG, PV and RAID5 from the above steps<br />

on oss161.clusterfs.com<br />

oss161.clusterfs.com,LV,ost0,,-i 2 -I 128,2G,oss_data<br />

oss161.clusterfs.com,LV,ost1,,-i 2 -I 128,2G,oss_data<br />

Chapter 6 Configuring <strong>Lustre</strong> - Examples 6-11

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

Saved successfully!

Ooh no, something went wrong!