Bobcares

Add additional drive in proxmox | How to?

by | Sep 2, 2022

Let’s take a deeper look at how we can Add additional drive in proxmox. Bobcares, as part of our Server management support services, guides you on how to install a new hard disk and configure it on the Proxmox server.

 

Additional Hard Drive to Proxmox

 

First, make sure you connect the hard drive to your server and then log in to the Proxmox console or even you can connect it via SSH from another computer.

Add additional drive in proxmox

You can identify the new disk by the given command:

lsblk
 

This will give results with the “sda NAME, MAJ:MIN, RM, SIZE, RO, TYPE, MOUNTPOINT” output. The disks are sda and sdb. We will be working on the drive which has a higher size.

 

Format the drive:

 

We will now format the drive using parted. Before proceeding further make sure you have installed parted. If you have not installed then you can simply use the below command to install:

apt policy parted
apt install parted

 

Create a new partition table of type GPT. Instead of using MBR, it is suggested to use GPT because it is the latest and also supports more than 2 TB disk.

parted /dev/sda mklabel gpt

 

You will be getting permission to execute regarding the existing disk label on /dev/sda if you want to continue or not, click on Yes to proceed further.

Next, we will make a new primary partition with Ext4 filesystem and use 100% of the disk.

parted -a opt /dev/sda mkpart primary ext4 0% 100%

 

Now, to check the new layout run the command: ” lsblk “.

 

From the result, you can now see a new partition sda1. This means we are good to go. Further, let’s create an ext4 filesystem on the sda1.

mkfs.ext4 -L storage2 /dev/sda1

 

Mount the New Disk

 

 To mount a new partition let’s create a new directory:

mkdir -p /mnt/storage2

 

Modify the /etc/fstab so can mount automatically upon system boots.

nano /etc/fstab

 

Add the following line

LABEL=storage2 /mnt/storage2 ext4 defaults 0 2

 

Mount the drive

mount -a

 

Now check with lsblk command again. As you can see, the /dev/sda1 is mounted as /mnt/storage2.

 

Prepare for Proxmox VM Backup

 

Let’s move further by preparing the disk to store the VM backups. create a backup directory using the below command:

mkdir /mnt/storage2/vm_backup

 

Next open the Proxmox web management console and access to Datacenter >> Storage >> Add>>Directory. Enter the required information there. Finally, click Add and you are good to go.

 

[Need assistance with similar queries? We are here to help]

 

Conclusion

 

By this Add additional drive in proxmox step by step procedure article, you will learn how a driver can auto mount after reboot and that can serve as storage space for your Proxmox installation. You can select it as storage when performing backups of CTs and VMs.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

2 Comments

  1. Gabriel Oliveira

    So, what would be the difference between adding the directory at the data centre level vs at the server level?

    Reply
    • Hiba Razak

      Hi,
      Please contact our support team through live chat (click on the icon at right-bottom).

      Reply

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF