Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
slab [2021/04/24 12:29] moo created |
slab [2021/04/27 09:41] kobi Convert to use lsblk |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Once you've bought your new storage slab it's pretty simple | + | ====== How to set up your Storage Slab ====== |
- | Step 1: Mount the slab in the Stallion. | + | BuyVM offers storage slabs for all KVM Slice customers |
- | Step 2: Run fdisk -l to find out what the file system | + | Storage slabs cost **$5 per TB** and are running on enterprise 7200RPM hard drives with an NVME cache and a 40Gbit+ InfiniBand to give you near local storage performance. A storage slab is simply like an extra hard drive for your KVM Slice. |
+ | |||
+ | ===== How to setup a storage slab on Linux ===== | ||
+ | // | ||
+ | |||
+ | __** WARNING, please make sure you follow this guide correctly or you risk wiping your boot drive.**__ | ||
+ | |||
+ | **Step 1)** Attach the slab to your desired KVM slice in the Storage Volumes section in [[https:// | ||
+ | |||
+ | **Step 2)** Run '' | ||
< | < | ||
- | $ sudo fdisk -l | + | $ sudo lsblk -o name,vendor, |
- | Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors | + | |
- | Units: sectors of 1 * 512 = 512 bytes | + | |
- | Sector size (logical/ | + | |
- | I/O size (minimum/ | + | |
- | Disklabel type: dos | + | |
- | Disk identifier: 0x19ed42f3 | + | |
- | Device | + | NAME |
- | /dev/vda1 | + | sda BUYVM SLAB 250G |
- | /dev/vda2 39843456 41940607 | + | sr0 QEMU |
+ | vda 0x1af4 | ||
+ | ├─vda1 9.5G | ||
+ | └─vda2 | ||
+ | </code> | ||
+ | In this case, you can see that the '' | ||
- | Disk /dev/sda: 256 GiB, 274877906944 bytes, 536870912 sectors | + | **Step 3)** Now that you've identified your slab's device path, you need to create a partition on your slab. To do this, you will be using '' |
- | Disk model: SLAB | + | |
- | Units: sectors of 1 * 512 = 512 bytes | + | |
- | Sector size (logical/ | + | |
- | I/O size (minimum/ | + | |
- | Disklabel type: dos | + | |
- | Disk identifier: 0x716cfadf | + | |
- | Device | + | First, we're going to create the GUID Partition Table (GPT). To do this, run the following command: |
- | /dev/sda1 2048 536870911 536868864 | + | < |
+ | parted | ||
</ | </ | ||
- | You should see your boot drive, which we don't have to touch. We want to find the slabs filesystem. | + | This will create the GPT on /dev/sda. |
+ | |||
+ | Now, you're going to create the actual partition. To do this, run the following command: | ||
+ | |||
+ | < | ||
+ | parted /dev/sda mkpart primary 0% 100% | ||
+ | </ | ||
+ | |||
+ | This will create a partition using the entire slab's storage capacity. | ||
+ | |||
+ | **Step 4)** Run '' | ||
+ | < | ||
+ | $ sudo lsblk -o name, | ||
+ | NAME | ||
+ | sda BUYVM SLAB 1T | ||
+ | └─sda1 | ||
+ | sr0 QEMU QEMU DVD-ROM | ||
+ | vda 0x1af4 | ||
+ | ├─vda1 | ||
+ | └─vda2 | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | **Step 5)** Now, you need to format the slab to have an actual | ||
+ | < | ||
+ | mkfs.ext4 /dev/sda1 | ||
+ | </ | ||
+ | |||
+ | This might take a few seconds depending | ||
+ | |||
+ | **Step 6)** Now you are going to prepare to mount the slab. To do this, you're going to need to run a few commands to figure out the UUID of the device. | ||
+ | |||
+ | First, you need to determine the slab's UUID. You can do that by running: | ||
+ | < | ||
+ | |||
+ | In this case, the device you're looking for is /dev/sda1. The line should look like: | ||
+ | < | ||
+ | |||
+ | Now, you're going to add the slab's UUID to ''/ | ||
+ | < | ||
+ | UUID=1cb43a43-105c-46f1-9d7f-1c736c10ffdf /mnt/slab ext4 defaults 0 0 | ||
+ | </ | ||
+ | |||
+ | This tells the system that ''/ | ||
+ | |||
+ | < | ||
+ | # /etc/fstab: static file system information. | ||
+ | # | ||
+ | # Use ' | ||
+ | # device; this may be used with UUID= as a more robust way to name devices | ||
+ | # that works even if disks are added and removed. See fstab(5). | ||
+ | # | ||
+ | # <file system> <mount point> | ||
+ | # / was on /dev/vda1 during installation | ||
+ | UUID=813b9d75-c617-4db0-b0f2-6758d17b31f4 / | ||
+ | # swap was on /dev/vda2 during installation | ||
+ | UUID=a1103972-6b3e-49d1-ac18-d6bf16ea0f68 none swap sw 0 0 | ||
+ | #SLAB | ||
+ | UUID=1cb43a43-105c-46f1-9d7f-1c736c10ffdf /mnt/slab ext4 defaults 0 0 | ||
+ | </ | ||
+ | |||
+ | |||
+ | **Step 7)** Creating the mount point | ||
+ | |||
+ | You're almost there! One of the last things you need to do is create the mount point. In this guide, ''/ | ||
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | </ | ||
+ | |||
+ | This will create the directory for the slab to be mounted at and it will be the path you use to access the slab. | ||
+ | |||
+ | |||
+ | **Step 8)** Mounting the Slab! | ||
+ | < | ||
+ | This will mount the device you just added in /etc/fstab at /mnt/slab/. You can check out the newly mounted slab with ''df -h'' | ||
+ | |||
+ | < | ||
+ | $ df -h | ||
+ | Filesystem | ||
+ | [...] | ||
+ | / | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== How to setup a Storage Slab on Microsoft Windows ===== | ||
+ | ** WARNING, please make sure you follow this guide correctly or you risk wiping your boot drive.** | ||
+ | |||
+ | **This guide should work on Windows Server 2012 R2, 2016 and 2019.** | ||
+ | |||
+ | To setup your storage slab on Windows you need to make sure that the Slab is attached on the Stallion. | ||
+ | |||
+ | Once you have attached it follow these steps. | ||
+ | |||
+ | - Go to the Start Menu (Windows logo on the taskbar) | ||
+ | - Type "Disk Management" | ||
+ | - You will see a Window that pops up that says " | ||
+ | - Select the disk, and click OK | ||
+ | - The disk will then show up on Disk Management | ||
+ | - Right click on the unallocated space where your storage slab is and click "New Simple Volume" | ||
+ | - After you've clicked "New Simple Volume" | ||
+ | - Click next, format the drive as NTFS, quick format and you can label the drive whatever you want to then click next. | ||
+ | - After that the drive should be formatted and will show up in File Explorer | ||
- | Step 3: Run < | ||