• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System BSD

Vultr Block Storage For FreeBSD

How VPS by How VPS
September 1, 2019
in BSD
0
0
SHARES
23
VIEWS
Share on FacebookShare on Twitter

Contents

  1. How to identify your Vultr Block Storage devices
  2. How to partition and mount your new Vultr Block Storage devices
  3. Want to contribute?


Information in this article deals with modifying disks, partitions and filesystems and should be fully understood before following any examples as data loss or an inoperable system may otherwise result.

How to identify your Vultr Block Storage devices

Vultr block storage shows up as /dev/vtbd* devices (VirtIO Block Device)

View current /dev/vtbd entries with ls -al /dev/vtbd*

# ls -al /dev/vtbd*
crw-r-----  1 root  operator  0x43 Mar 25 09:55 /dev/vtbd0
crw-r-----  1 root  operator  0x45 Mar 25 09:55 /dev/vtbd0p1
crw-r-----  1 root  operator  0x46 Mar 25 05:55 /dev/vtbd0p2
crw-r-----  1 root  operator  0x44 Mar 25 09:55 /dev/vtbd1

vtbd0 and vtbd1 are individual devices. vtbd0p1 and vtbd0p2 are two partitions on the vtbd0 device.

Which is the new Vultr Block Storage device?

Since the newly added block storage hasn’t been partitioned yet, it’s probably vtbd1, but let’s verify.

View current GPT partitions with gpart show (or gpart list for more details) to show all GPT partitions on all devices.

# gpart show
=>       34  335544253  vtbd0  GPT  (160G)
         34         94      1  freebsd-boot  (47K)
        128  335544159      2  freebsd-ufs  (160G)

So we see the two existing partitions and their filesystems on vtbd0. vtbd0 contains our existing boot device and root filesystem.

We can also verify this by running mount to see what partition is mounted as /. This confirms that vtbd0 contains the root filesystem.

# mount
/dev/vtbd0p2 on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)

How to partition and mount your new Vultr Block Storage devices

To use a new Vultr block storage, it must be partitioned and a filesystem initialized and then mounted.

In this example we’re creating one partition (with a GPT partition scheme) for the entire block storage (50GB). We’ve already determined the name of our new block storage device (vtbd1 in this example), so use the gpart create -s GPT vtbd1 command.

# gpart create -s GPT vtbd1
vtbd1 created

Now add one partition with label ‘vultrblockstorage’ and set it to freebsd-ufs.

# gpart add -t freebsd-ufs -l vultr/_block/_storage vtbd1
vtbd1p1 added

This should have created a new device called /dev/vtbd1p1 and and can be verified by running gpart list vtbd1p1

Initialize the UFS2 filesystem on the new partition.

# newfs -U vtbd1p1
/dev/vtbd1p1: 51200.0MB (104857528 sectors) block size 32768, fragment size 4096
    using 82 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
    with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792, 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472, 29491712,
 30773952, 32056192, 33338432, 34620672, 35902912, 37185152, 38467392, 39749632, 41031872, 42314112, 43596352, 44878592, 46160832, 47443072, 48725312, 50007552, 51289792, 52572032, 53854272, 55136512, 56418752, 57700992, 58983232,
 60265472, 61547712, 62829952, 64112192, 65394432, 66676672, 67958912, 69241152, 70523392, 71805632, 73087872, 74370112, 75652352, 76934592, 78216832, 79499072, 80781312, 82063552, 83345792, 84628032, 85910272, 87192512, 88474752,
 89756992, 91039232, 92321472, 93603712, 94885952, 96168192, 97450432, 98732672, 100014912, 101297152, 102579392, 103861632

Now you’re ready to mount the new device for use!

Create a mount point

# mkdir /mnt/blockstorage

Add en entry to the /etc/fstab file for easy mounting (and automounting at startup).

# echo /dev/vtbd1p1 /mnt/blockstorage ufs rw,noatime 0 2 >> /etc/fstab 

Mount the new block storage device

# mount /mnt/blockstorage

The storage is now available and ready for use at /mnt/blockstorage

# df -h /mnt/blockstorage/
Filesystem      Size    Used   Avail Capacity  Mounted on
/dev/vtbd1p1     48G    8.0K     45G     0%    /mnt/blockstorage

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install CMS Made Simple 2.2 on a FreeBSD 11 FAMP VPS

Next Post

Using Let’s Encrypt on OpenBSD 6.1

Next Post

Using Let's Encrypt on OpenBSD 6.1

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet