2. Example: add a file system to a volume

After you have made an EVMS or compatibility volume, add a file system to the volume before mounting it. You can add a file system to a volume through the EVMS interface of your choice.

Example 13.1. Add a JFS File System to a Volume

This example creates a new JFS file system, named jfs_vol, on volume /dev/evms/my_vol.


2.1. Using the EVMS GUI

Follow these steps to create a JFS file system with the EVMS GUI:

  1. Select ActionsFile SystemsMake.

  2. Select JFS File System Interface Module.

  3. Click Next.

  4. Select /dev/evms/my_vol.

  5. Click Next.

  6. Type jfs_vol in the "Volume Label" field. Customize any other options you are interested in.

  7. Click Make.

  8. The operation is completed when you save.

Alternatively, you can perform some of the steps to create a file system with the GUI context sensitive menu:

  1. From the Volumes tab, right click /dev/evms/my_vol.

  2. Click Make Filesystem...

  3. Continue creating the file system beginning with step 2 of the GUI instructions. You can skip steps 4 and 5 of the GUI instructions.

2.2. Using Ncurses

Follow these steps to create a JFS file system with Ncurses:

  1. Select ActionsFile SystemsMake.

  2. Select JFS File System Interface Module.

  3. Activate Next.

  4. Select /dev/evms/my_vol.

  5. Activate Next.

  6. Scroll down using the down arrow until Volume Label is highlighted.

  7. Press Spacebar.

  8. At the "::" prompt enter jfs_vol.

  9. Press Enter.

  10. Activate Make.

Alternatively, you can perform some of the steps to create a file system with the context sensitive menu:

  1. From the Volumes view, press Enter on /dev/evms/my_vol.

  2. Activate the Make Filesystem menu item.

  3. Continue creating the file system beginning with step 2 of the Ncurses instructions.

2.3. Using the CLI

Use the mkfs command to create the new file system. The arguments to mkfs include the FSIM type (in our example, JFS), followed by any option pairs, and then the volume name. The command to accomplish this is:

mkfs: JFS={vollabel=jfs_vol}, /dev/evms/my_vol

The command is completed upon saving.

If you are interested in other options that mkfs can use, look at the results of the following query:

query: plugins, plugin=JFS, list options