Skip to content

34_File_Systems_Configuration

Marc A. Smith edited this page Mar 3, 2017 · 3 revisions

Back-End Storage File Systems

Once you have your back-end storage block device(s) configured, either using the basic methods described above, or an advanced block device (DRBD, LVM2, etc.) configured, you can then create a file system on these devices if you choose. The purpose of doing this would then allow you to use the SCST FILEIO mode for your devices. The FILEIO mode has a couple differences from the SCST BLOCKIO mode: 1) FILEIO mode takes full advantage of the Linux page cache, and 2) allows you to have multiple "virtual disk" devices on a single back-end storage block device.

While you may see better I/O performance when using FILEIO mode on systems with slower back-end storage, a big advantage is the ability to have multiple virtual disk files on a single block device (eg, RAID logical drive, DRBD device, md device, LVM2 device, etc.) in which each appear and function as an independent volume to the remote initiators.

Here is an example of such a configuration:

  • A RAID5 volume is configured consisting of (4) 3 TB disks giving you less than 9 TB of usable disk space.
  • You can now create a file system on this new logical drive (volume) and you have less than 9 TB of space to create various virtual disks.
  • Then you decide to create (3) 50 GB virtual disk files for your three new servers (eg, boot_host1, boot_host2, boot_host3).
  • Now you want some data volumes for each server: (2) 500 GB data volumes (eg, host2_data1, host2_data2); (3) 100 GB data volumes (eg, host3_data1, host3_data2, host3_data3).
  • You'll then have (8) virtual disk files (volumes) available to your servers with a single back-end storage block device.

Obviously your specific I/O requirements (performance, space, etc.) will all come into play on how many virtual disk files you can create on each back-end storage block device, but that should give you the general idea of this FILEIO mode concept.

Now, to create a file system on your newly configured back-end storage block device, go to the create-file-system dialog in the TUI (File Systems -> Add File System). You'll be prompted to select a block device, and then on the next dialog screen you'll be shown the current disk label layout (partition table) if any exists. Type a useful FS label name for the new file system, and choose the file system type (typically 'xfs' provides the best performance). Then hit 'OK' and a new GPT partition (disk label) will be created on the block device spanning the entire device and the new file system will be created on the first (only) partition. If prompted to mount the new file system, do so; your new file system is ready for virtual disk files, continue below.

You can also easily remove/delete file systems in the TUI (File Systems -> Remove File System). The file system will be unmounted and removed from the '/etc/fstab' file.


Virtual Disk Files

Now that you have a file system created/mounted and available (described in the section above) you can create virtual disk files. These virtual disk files are independent storage volumes that can be shared with initiators, which is described in the subsequent ESOS wiki pages.

Adding virtual disks is quite easy; in the TUI open the dialog (File Systems -> Add VDisk File). You'll be shown the total disk space on the file system, and the available disk space. You'll need to pick a meaningful name for the virtual disk file and the new virtual disk size -- this will be the actual virtual disk size that is presented to the initiators. Hit 'OK' can your new virtual disk will be created; the file needs to be zero'd out, so it may take a while depending on the speed of your back-end storage and the size of the new file.

When you no longer need a virtual disk, use the TUI to delete it (File Systems -> Remove VDisk File). Be sure to end all I/O associated with the virtual disk and remove the SCST device first.

Next Steps

After you have added your virtual disk files, continue with the 35_Hosts_and_Initiators wiki page to configure your security groups and initiators (servers). Or if you've already configured your security groups, continue with the 36_Devices_and_Mappings to map the new virtual disk file to a LUN on your remote initiators.