Adding a hard drive to the virtual machine

You add a hard drive to the virtual machine for two reasons: 1) Before adding a cache device to the NAS Bridge, you must have an available virtual machine hard drive. 2) If you are upgrading the NAS Bridge, you must add a hard drive.

Before you begin

You must be familiar with VMware vSphere and ESXi, and you must have experience managing virtual machines in this environment.

Steps

  1. Before adding a hard drive to use as a cache device, view a list of the drives already in the system so that you will recognize the name of the new drive.
    Attention: You must know the name of the new hard drive when you add it as a cache device. If you select the wrong drive, you lose access to your NAS Bridge file systems.
    1. At the command line on the administrative server, run the following command:lsblk
      Example
      A list of hard drives appears. For each drive, details such as the name and the capacity (size) are shown.
      lsblk Command Results
    2. Take a screen shot or make a note of the output of the lsblk command.
  2. Sign in to the VMware vSphere Web Client.
  3. Locate the NAS Bridge virtual machine.
  4. Edit the virtual machine settings and add a new hard drive.
  5. Select the location for the hard drive and click OK.
  6. Scan the host bus to ensure that the new drive is recognized by the Linux operating system.echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan
  7. Run the lsblk command again to verify that the new hard drive is listed.
    Example
    The hard drive named sdb has been added.
    lsblk Command Results - Device Added
  8. If you will be using this hard drive as a cache device, record the name of the hard drive you added so that you can select the correct drive when you add a cache device.
    The hard drive name is listed as /dev/name in the NAS Bridge web interface's Cache Devices page.