# Configure a Local Disk Storage on Commvault Flex Open

Use a local disk attached to a Commvault Flex Open node as storage for a disk library. During this procedure, the disk is formatted, mounted, and configured for automatic mounting after system restarts.

## Requirements

- Log on to the Commvault Flex Open node with root or `sudo` privileges.

- Verify that the target disk isn't in use. This procedure formats the disk and permanently deletes all existing data on the disk.

Caution

Formatting the disk permanently deletes all existing data on the device.

## Procedure

1. Open the Commvault Base directory.

       cd /opt/Commvault/Base

2. Identify the disk that you want to use for the disk library.

   Run either of the following commands:

       lsblk

   Or:

       fdisk -l

   Record the device name, for example, `/dev/sdc`.

3. Create a mount point.

       mkdir -p /disk1

4. Format and mount the disk.

       ./CVSDS -W -l <device_name> -w <mount_path> [-j <filesystem_type>]

   Parameter | Description
   --- | ---
   `-W` | Formats and mounts the device.
   `-l <device_name>` | Specifies the device to format, for example, `/dev/sdc`.
   `-w <mount_path>` | Specifies the mount point, for example, `/disk1`.
   `-j <filesystem_type>` | Optional. Specifies the file system type. The default is `xfs`.

   Example:

       ./CVSDS -W -l /dev/sdc -w /disk1 -j xfs

   The utility:

   - Formats the disk.

   - Mounts the file system.

   - Creates an entry in `/etc/fstab`.

   - Temporarily pauses SELinux and ransomware protection during formatting and automatically resumes protection after the operation completes. This behavior is supported only on Commvault Flex Open.

5. Verify that an entry similar to the following exists in `/etc/fstab`:

       /dev/sdc /disk1 xfs defaults,nofail 0 0

   The entry allows the file system to mount automatically after a reboot.

6. Create the disk storage in Command Center by using the steps in Configuring Disk Storage.

   When you add the backup location, select the Commvault Flex Open node as the MediaAgent and enter the mount path that you configured in this procedure, for example, `/disk1`.

×

Loading...