Storm Block Storage (SBS) provides additional hard drive space for your Storm Server with just a few clicks. The space is not pre-formatted; rather, it is a raw block device. The simplicity of providing a raw block device on the cloud means that you can mount and format the space on your server however you would like, with whatever filesystem is appropriate for your needs. This does entail a small amount of work getting the space into a usable state.
First, in your manage interface, hit “Create” and then select “Storm Block Storage”.
You will have to name your volume, which you can do in the
You will be asked to confirm your selection; click
The volume will soon be created and mounted to the server.
If you click on the volume itself, you will see a detail page for that volume. Each volume created has a
Mounting the Volume
Although the volume is now attached to the server as a device, the volume still needs to be formatted with a filesystem and mounted before it can be used.
Storm puts the device in /dev/sbs:
[root@core ~]# ls /dev/sbs/
Note: the device name is listed as the ID of volume. Not all operating systems will have this listed here. If it is not, you may need to check “dmesg” to discover the name of the device.
Next, use “mkfs” to add a filesystem to the device:
[root@core sbs]# mkfs -t ext4 /dev/sbs/C1HBX2
mke2fs 1.41.12 (17-May-2010)
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
9830400 inodes, 39321600 blocks
1966080 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1200 block groups
If you wish to mount the device to multiple servers, make sure to pick a filesystem type that supports clustering, such as OCFS (Oracle Clustered File System). Adding a device to multiple servers is beyond the scope of this guide.
You will need a directory to mount the device on:
Mount the device:
mount /dev/sbs/C1HBX2 /mnt/sbs/
Now on most systems, you could mount the device directly in /etc/fstab:
/dev/sbs/C1HBX2 /mnt/sbs ext4 defaults 0 0
On Ubuntu 10 and Debian 6 systems, you will need to grab the UUID of the device using the blkid command:
[root@core ~]# blkid
/dev/vda1: LABEL="/boot" UUID="32e7f110-e8c0-40a2-8a4a-6c9e7c2dfe83" TYPE="ext3"
/dev/vda2: LABEL="SWAP-vda2" UUID="f7e08f56-f003-4aed-abd5-bda36ab20c6e" TYPE="swap"
/dev/vda3: LABEL="/" UUID="d84078bb-5766-4de2-b5b5-7a478359469b" TYPE="ext3"
/dev/vdb: UUID="ea1bc733-1491-4759-b8d5-052b091538ed" TYPE="ext4"
(/dev/vdb is the actual mountpoint of the device; the ID in /dev/sbs is a symlink.)
Add the following to /etc/fstab:
UUID=ea1bc733-1491-4759-b8d5-052b091538ed /mnt/sbs ext4 nofail,defaults 0 0
Your volume will now mount to the /mnt/sbs directory every reboot.
When using SBS, there are a few things to look out for:
- SBS is currently limited to Zone B – US Central and Zone C – US Central.
- If you are used to Amazon’s Elastic Block Store (EBS), you may be tempted to RAID 0 multiple volumes in order to speed up reads and writes. While that technique is useful for Amazon’s product, it is not needed with SBS. SBS’s backend is fully distributed to prevent the issues that individual EBS volumes can run into. If you do RAID 0 multiple SBS volumes together, it will not have the desired effect. It will create additional complexity, and could interfere with the consistency of SBS snapshots (a planned future feature).
- Ubuntu 10 and Debian 6 servers will have to mount the UUID of the device in fstab. All others will find the ID in /dev/sbs
- If you are having trouble attaching a volume to a server, the server may need to be rebooted from manage in order to attach a volume.
- Before you detach a volume from an instance in your manage interface, you MUST first unmount the device from within the server.
Using SBS with Windows
The first step when adding block storage to Windows is the same as with a Linux server: create the volume, and attach it to the server in the manage interface.
Right click on the new Disk and select “online”.
Right click again on the new Disk and select “Initialize”. If you are using a disk larger than 2TB you will want to choose GPT; otherwise you can simply confirm to initialize the disk.
Right click on the partition and select “New Simple Partition”.
Click “next” through the welcome page. On “Specify Volume Size” you can specify a volume size other than the default. By default, it selects the entire disk.
Select the drive letter for the new volume.
Now you can assign a label and other settings. Apart from specifying a Volume Label, the default settings should suffice.
Click “Finish”. Your SBS volume will now be available in Windows Explorer as the drive letter you specified.
Detaching a Windows Drive
As with Linux, your volume must be unmounted before it can be detached in the manage interface. Make sure you are unmounting the correct drive by running the following command from the terminal (accessible at Start > Run Command):
RunDll32.exe shell32.dll,Control_RunDLL HotPlug.dll
Here check “Display device components” and click Stop for the “Red Hat VirtIO SCSI controller” that corresponds to the drive you want to unmount. (Note: the system will prevent you from removing the C: SCSI controller.) Approve the “Safe to Remove Hardware” popup. It is now safe to detach the SBS from your manage interface.
Note: It is important to not remove the Intel® Network Connection. Removing that connection will take your server offline and require a full reboot to bring back online.
As always, if you have any questions about this or any other Liquid Web product, do not hesitate to contact our Heroic Support at the information below.