Lumen Cloud supports the ability to add additional disks to Linux machines, and the operation can be monitored in the deployment queue of the control portal. The job can fail for various reasons, resulting in the error "manual intervention required". These are the manual steps required to detect and mount the new disk.
The new disk will be detected, formatted, and mounted.
- basic Linux knowledge
- root access to the machine in question
- understanding of the format and options for FSTab in Linux
Log in to the machine as Root.
List all current devices on the machine. In most cases, the newly added disk isn't yet detected and won't show up here.
Identify the host bus name. This can vary, depending on the type of controller used on any particular system, so try the command under the appropriate scenario below.
Scenario 1: The server is using the LSI parallel controller. This is usually the case when the server was built from one of our Linux templates.
host_bus_name=$(grep mptspi /sys/class/scsi_host/host?/proc_name | grep -o 'host[^/]')
Scenario 2: Another SCSI controller type is in use (e.g. the VMware para-virtual controller would be named "vmw_pvscsi").
host_bus_name=$(grep scsi /sys/class/scsi_host/host?/proc_name | grep -o 'host[^/]')
Re-scan the host bus.
echo "- - -" /sys/class/scsi_host/$host_bus_name/scan
List the current devices again, and make note of the new device's name (e.g. "/dev/sdd").
While advanced users may use any partition styles they like, only single-partition disks are fully compatible with platform automation and reporting. In the example command below, an EXT4 single-partition file system will be formatted directly on the disk (replace "NAME" with the new device name you just found).
mkfs -t ext4 NAME
Make a new directory where you want the the disk to be mounted (e.g. "/data"). In the command below, replace "PATH" with the absolute path to the desired directory.
The platform mounts new disks by UUID. Run the following command, and take note of the UUID for the new drive.
Edit the FSTab. Add the UUID, mount point, and necessary options as per the normal FSTab format (e.g. "
<mount_point> <file_system_type> <FSCK_order>").
Mount the disk using the new entry in the FSTab.
Confirm everything looks correct by checking the free space on the disks.