Let’s see the steps to add storage on Virtualizor. At Bobcares, with our Server Management Services, we can handle your Virtualizor storage issues.
Adding storage on Virtualizor
A user can deploy and manage VPS on servers with just one click using the robust web-based VPS Control Panel, Virtualizor. In order to add the storage from the dashboard, we have to go to Virtualizor Admin Panel >> Storage >> Add Storage. We can add different types of storage such as LVM, File, Thin LVM, Openvz, ZFS Pool, ZFS Thin, ZFS Compressed, and Ceph Block Device.
Multiple servers can share storage space. In this article, we are mainly discussing four types of storage, namely, LVM, File, and Thin LVM.
Adding types of storage on Virtualizor
Adding LVM storage on Virtualizor
1. Creating the storage: In the below example, the disks at /dev/sda1, /dev/sdb1, and /dev/sdc1 are combined to form an LVM logical volume called new_logical_volume
. Firstly, creating the Physical Volumes to use disks in a volume group. We must label them as LVM physical volumes:
root> pvcreate /dev/sda1 /dev/sdb1 /dev/sdc1
Physical volume "/dev/sda1" successfully created
Physical volume "/dev/sdb1" successfully created
Physical volume "/dev/sdc1" successfully created
Then create the Volume Group group vg1 using the below code:
root> vgcreate vg1 /dev/sda1 /dev/sdb1 /dev/sdc1
Volume group "vg1" successfully created
The new volume group’s attributes can be seen by using the vgs
command.
root> vgs
VG #PV #LV #SN Attr VSize VFree
vg1 3 0 0 wz--n- 51.45G 51.45G
2. Adding the storage: After creating, we must add the storage to the panel.
Storage Type: LVM should be used for storage.
Path: Specify the Volume Group path /dev/VG_NAME in the case of LVM.
Adding File storage on Virtualizor
1. Creating the storage: We should create the storage before adding it in Virtualizor. We just need to create a folder on the target node:
root> mkdir /vms # You can create any path as per your choice.
2. Adding the storage: After creating, we must add the storage to the panel.
Storage Type: The file should be the storage type.
Path: Specify the full name of the directory created in the above step.
File format: We can select the format as RAW or QCOW2 for File-based storage.
Adding Thin LVM storage on Virtualizor
1. Creating the storage: We need to use an existing Volume Group to create a Thin Pool on the main node. In the below example, we will create a thin pool in the volume group “MyVolumeGroup” that is 100GB in size.
root> lvcreate --size 100G --type thin-pool --thinpool thin_pool MyVolumeGroup
2. Adding the storage: After creating, we must add the storage to the panel.
Storage Type: Thin LVM should be the storage type.
Path: Specify the full path of the thin pool /dev/VGName/THINPOOLNAME.
[Need more help with another query? We’re just a click away.]
Conclusion
The article provides details on three storage modes on Virtualizor and the methods to add each of the storage on the Virtualizor.
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.
0 Comments