Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
slab [2021/04/24 16:22] cubebuilder |
slab [2024/07/28 12:30] (current) kobi |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====How to set up your Storage Slab===== | + | ====== How to set up your Storage Slab ====== |
BuyVM offers storage slabs for all KVM Slice customers in all locations. | BuyVM offers storage slabs for all KVM Slice customers in all locations. | ||
- | Storage slabs cost **$5 per TB** and are running on enterprise 7200RPM hard drives with an NVME cache. A storage slab is simply like an extra hard drive for your KVM Slice. | + | 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.**__ | __** WARNING, please make sure you follow this guide correctly or you risk wiping your boot drive.**__ | ||
Line 9: | Line 11: | ||
**Step 1)** Attach the slab to your desired KVM slice in the Storage Volumes section in [[https:// | **Step 1)** Attach the slab to your desired KVM slice in the Storage Volumes section in [[https:// | ||
- | **Step 2)** Run '' | + | **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 | + | |
- | </ | + | |
- | + | ||
- | In this case, there are 2 drives. One of them is the boot drive which is usually | + | |
- | **Step 3)** Now, you need to create | + | First, you're going to create |
< | < | ||
- | Welcome to fdisk (util-linux 2.33.1). | + | parted /dev/sda mklabel gpt |
- | Changes will remain in memory only, until you decide to write them. | + | |
- | Be careful before using the write command. | + | |
- | + | ||
- | + | ||
- | Command (m for help): | + | |
</ | </ | ||
- | Type the letter **g** to create | + | This will create |
- | Type the letter **n** to create | + | Now, you're going to create the actual |
- | + | ||
- | You can now quit fdisk by typing | + | |
< | < | ||
- | $ sudo fdisk /dev/sda | + | parted |
+ | </ | ||
- | Welcome to fdisk (util-linux 2.33.1). | + | This will create a partition |
- | Changes | + | |
- | Be careful before | + | |
- | + | ||
- | + | ||
- | Command (m for help): g | + | |
- | Created a new GPT disklabel (GUID: ECA757E9-5304-594C-A9CA-17E061B2E516). | + | |
- | The old dos signature will be removed by a write command. | + | |
- | + | ||
- | Command (m for help): n | + | |
- | Partition number (1-128, default 1): 1 | + | |
- | First sector (2048-536870878, | + | |
- | Last sector, +/-sectors or +/ | + | |
- | + | ||
- | Created a new partition 1 of type 'Linux filesystem' | + | |
- | + | ||
- | Command (m for help): w | + | |
- | </ | + | |
- | **Step 4)** Run fdisk -l again to see the new partition you just created (''/ | + | **Step 4)** Run '' |
< | < | ||
- | $ fdisk -l | + | $ sudo lsblk -o name, |
- | [... your boot drive ...] | + | NAME |
+ | sda BUYVM SLAB 250G | ||
+ | └─sda1 | ||
+ | sr0 QEMU QEMU DVD-ROM | ||
+ | vda 0x1af4 | ||
+ | ├─vda1 | ||
+ | └─vda2 | ||
- | Disk /dev/sda: 256 GiB, 274877906944 bytes, 536870912 sectors | ||
- | Disk model: SLAB | ||
- | Units: sectors of 1 * 512 = 512 bytes | ||
- | Sector size (logical/ | ||
- | I/O size (minimum/ | ||
- | Disklabel type: dos | ||
- | Disk identifier: 0x716cfadf | ||
- | |||
- | Device | ||
- | / | ||
</ | </ | ||
- | **Step 5)** Now, you need to format the slab to have an actual filesystem. The most common filesystem is ext4 so we will be using that in this guide. To create an ext4 filesystem on your slab, run | + | **Step 5)** Now, you need to format the slab to have an actual filesystem. The most common filesystem is ext4 so I will be using that in this guide. To create an ext4 filesystem on your slab, run |
< | < | ||
mkfs.ext4 /dev/sda1 | mkfs.ext4 /dev/sda1 | ||
Line 155: | Line 120: | ||
- | ===== Setting up a Storage Slab on Windows ===== | + | ===== How to setup a Storage Slab on Microsoft |
+ | ** 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. | To setup your storage slab on Windows you need to make sure that the Slab is attached on the Stallion. | ||