Attaching an EBS Volume to an Instance
- Last Updated: April 14, 2026
- 2 minute read
- MarkLogic Server
- Version 11.0
- Documentation
This section describes how to use the EC2 Dashboard to attach a volume to an instance.
-
Select Volumes from the left-hand navigation section.
-
Select Attach Volume from the Actions menu.
-
In the Attach Volume window, specify the instance you launched from the MarkLogic Server AMI. For the Device selection, use
/dev/sdf. Click Yes, Attach when you are finished. Locate the reference to this volume in the right-hand section of the management console and verify that the status is "in-use". If the status is not “in-use,” continue to click Refresh until the status changes to “in-use.” -
SSH into the instance, and mount the attached volume by executing the init-volumes-from-system command. You can execute the init-volumes-from-system command to create a filesystem for the volume, mount the attached volume, and update the Metadata Database with the new volume configuration. The init-volumes-from-system command will output a detailed report of what it is doing. Note the mount directory of the volume from this report. Alternatively, you can stop and then start MarkLogic Server to mount the attached volume. Execute the
/sbin/service MarkLogic stopcommand to stop MarkLogic Server and then the/sbin/service MarkLogic startcommand to start MarkLogic Server. To learn more about stopping and starting MarkLogic Server, see Stopping MarkLogic Server and Starting MarkLogic Server in Administrate MarkLogic Server. -
Once the volume is attached and mounted to the instance, log into the Administrator Interface on that host and create a forest, specifying host name of the instance and the mount directory of the volume as the forest Data Directory. For details on how to create a forest, see Creating a Forest in Administrate MarkLogic Server.