- CLI command examples

# CLI command examples

Contents

This section includes examples of common operations executed using the CLI.

Note: Operations that modify the file system configuration can only be executed by a file system superuser. For a convenient way to access login information in a configuration file, see Creating a configuration file containing login information. If a configuration file containing the superuser’s login information does not exist, include the --username and --password parameters in the CLI command.

To add the file system jovian to Intel® Manager for Lustre* , enter:

# chroma fs-add jovian --mgt autonoe:/dev/mapper/LustreVG-mgs --mdt autonoe:/dev/mapper/

LustreVG-mdt --ost thyone:/dev/mapper/LustreVG-ost0 --ost thyone:/dev/mapper/LustreVG-ost1 --ost thyone:/dev/mapper/

LustreVG-ost2 --ost thyone:/dev/mapper/LustreVG-ost3

To add a new server to be monitored and managed:

# chroma server-add thyone.jovian.private --server_profile base_managed

Setting up host thyone.jovian.private: Finished

To add a new server to be monitored only:

# chroma server-add thyone.jovian.private --server_profile base_monitored

Setting up host thyone.jovian.private: Finished

To list known servers:

# chroma server-list

| id | fqdn | state | nids | last_contact |

| 4 | autonoe.jovian.private | lnet_up | 10.141.255.2@tcp0 | 20:10:46 |

| 5 | thyone.jovian.private | lnet_up | 10.141.255.3@tcp0 | 20:10:46 |

To list known OSTs:

# chroma ost-list

| id | name | state | primary_path |

| 3 | jovian-OST0002 | mounted | thyone.jovian.private:/dev/mapper/LustreVG-ost0 |

| 4 | jovian-OST0001 | mounted | thyone.jovian.private:/dev/mapper/LustreVG-ost1 |

| 5 | jovian-OST0000 | mounted | thyone.jovian.private:/dev/mapper/LustreVG-ost2 |

| 6 | jovian-OST0003 | mounted | thyone.jovian.private:/dev/mapper/LustreVG-ost3 |

To list targets on a given server, limiting to primary targets:

# chroma server autonoe target-list --primary

| id | name | state | primary_path |

| 1 | MGS | mounted | autonoe.jovian.private:/dev/mapper/LustreVG-mgs |

| 2 | jovian-MDT0000 | mounted | autonoe.jovian.private:/dev/mapper/LustreVG-mdt |

To obtain client mount information:

# chroma filesystem-mountspec jovian

10.141.255.2@tcp0:/jovian

To detect existing (non-managed) Lustre file systems on servers that have been added to the Command Center, enter:

# chroma filesystem-detect