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:16] 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 |
- | / | + | sda |
- | / | + | sr0 QEMU QEMU DVD-ROM |
- | + | vda 0x1af4 | |
- | + | ├─vda1 | |
- | Disk /dev/sda: 256 GiB, 274877906944 bytes, 536870912 sectors | + | └─vda2 |
- | Disk model: | + | |
- | 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 | + | In this case, you can see that the '' |
+ | |||
+ | **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 '' | ||
- | **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 | + | |
- | + | **Step 4)** Run '' | |
- | 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 (''/ | + | |
< | < | ||
- | $ fdisk -l | + | $ sudo lsblk -o name, |
- | [... your boot drive ...] | + | NAME |
- | + | sda | |
- | Disk /dev/sda: 256 GiB, 274877906944 bytes, 536870912 sectors | + | └─sda1 |
- | Disk model: | + | sr0 QEMU QEMU DVD-ROM |
- | Units: sectors of 1 * 512 = 512 bytes | + | vda 0x1af4 |
- | Sector size (logical/ | + | ├─vda1 |
- | I/O size (minimum/ | + | └─vda2 |
- | 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. | ||
Line 163: | Line 132: | ||
- Type "Disk Management" | - Type "Disk Management" | ||
- You will see a Window that pops up that says " | - You will see a Window that pops up that says " | ||
- | - Select the disk, click GPT and click OK | + | - Select the disk, and click OK |
- The disk will then show up on Disk Management | - 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" | - Right click on the unallocated space where your storage slab is and click "New Simple Volume" | ||
- | - Then go to File Explorer | + | - After you've clicked "New Simple Volume" |
+ | - Click next, format the drive as NTFS, quick format | ||
+ | - After that the drive should | ||