
ownCloud is an open-source file hosting server on the cloud that enables secure storage, collaboration, and sharing. This guide explains how to use ownCloud with Vultr's Block Storage and Object Storage.
Deploy a one-click ownCloud Application cloud server instance from Vultr Marketplace Apps
Add Block Storage to your account
Note: Your cloud server instance must be in the same server location with your Vultr Block Storage, or you will not be able to attach your block storage to your server instance otherwise.
Vultr's Cloud Block Storage technology is ideal for ownCloud because of its scalability and high-performance SSDs. You can deploy volumes as large as 10,000GB, which is perfect for file hosting.
SSH to your ownCloud server instance as root.
List all block storage devices to verify the new device name. The first block storage device is connected to your server as /dev/vdb.
Create a new disk label using parted.
Make a primary partition to fill the entire disk.
Create an EXT4 filesystem on the primary partition and format it.
Make a mount point. This is also where your ownCloud files will be stored.
Add a blank line and a mount entry to /etc/fstab. This will automatically mount the block storage at /owncloud/data at reboot.
You can also manually mount the block storage without rebooting.
On your browser, navigate to your server's IP Address.
Log in to your ownCloud file server using the credentials that can be found on your cloud instance's control panel.
After you are logged in, go to Settings by clicking your username on the upper-right corner.
On the Admin section, click Storage.
Enable the external storage by clicking the checkbox.
Enter a Folder name. This folder is where you save your files, which will then be stored in your block storage.
Click the Add Storage dropdown menu under the External Storage column, then select SFTP.
For the authentication, select Username and password.
Enter your server's IP address on the Host text box.
Enter /owncloud/data on the Root text box. Notice that the /owncloud/data directory is where you mount your Block Storage.
Enter your cloud server instance's username and password on the Username and Password text boxes.
A green dot will appear beside the Folder name to confirm that ownCloud is now connected to your mounted block storage via SFTP through the mount point /owncloud/data.
Test if everything works fine. Create a test file using touch on your SSH terminal.
Check if testfile.txt appears in the folder that you have created on your ownCloud file server.
For more information about ownCloud, Vultr Block Storage, and Vultr Object Storage, please see these resources:
0 Comments
Be the first to comment and share your perspective with the community.