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 15:38] kobi UUID Mounting & Clean up |
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 | + | |
- | / | + | |
- | / | + | |
- | Disk /dev/sda: 256 GiB, 274877906944 bytes, 536870912 sectors | + | NAME |
- | Disk model: | + | sda |
- | Units: sectors of 1 * 512 = 512 bytes | + | sr0 QEMU QEMU DVD-ROM |
- | Sector size (logical/ | + | vda 0x1af4 |
- | I/O size (minimum/ | + | ├─vda1 |
- | Disklabel type: dos | + | └─vda2 |
- | 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, you need to create a partition on your slab. Run '' | + | **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 '' |
+ | |||
+ | 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). | + | |
- | Changes will remain in memory only, until you decide to write them. | + | |
- | Be careful before using the write command. | + | |
- | + | ||
- | + | ||
- | 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 | + | This will create a partition using the entire slab's storage capacity. |
- | Partition number (1-128, default 1): 1 | + | |
- | First sector (2048-536870878, | + | |
- | Last sector, +/-sectors or +/ | + | |
- | Created a new partition 1 of type 'Linux filesystem' | + | **Step 4)** Run '' |
- | + | ||
- | 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 153: | Line 118: | ||
[...] | [...] | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== 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 | ||
+ | |||
+ | |||
+ |