Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Adding new storage



Threaded Mode | Print  

 Adding new storage, KVM (6 Replies, Read 6961 times)
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
I need a little help adding storage for my VM's I have looked here but I'm not sure that my partition are set right.

this is the schema of my drives, they are in raid1
Code
NAME    MAJ:MIN RM    SIZE RO TYPE  MOUNTPOINT
sdb      8:16  0    2.7T  0 disk
├─sdb4    8:20  0    1.7T  0 part
│ └─md3  9:3    0    1.7T  0 raid1 /home
├─sdb2    8:18  0    512M  0 part
│ └─md1  9:1    0    511M  0 raid1 /boot
├─sdb5    8:21  0      1M  0 part
├─sdb3    8:19  0      1T  0 part
│ └─md2  9:2    0 1023.9G  0 raid1 /
└─sdb1    8:17  0    16G  0 part
  └─md0  9:0    0    16G  0 raid1 [SWAP]
sda      8:0    0    2.7T  0 disk
├─sda4    8:4    0    1.7T  0 part
│ └─md3  9:3    0    1.7T  0 raid1 /home
├─sda2    8:2    0    512M  0 part
│ └─md1  9:1    0    511M  0 raid1 /boot
├─sda5    8:5    0      1M  0 part
├─sda3    8:3    0      1T  0 part
│ └─md2  9:2    0 1023.9G  0 raid1 /
└─sda1    8:1    0    16G  0 part
  └─md0  9:0    0    16G  0 raid1 [SWAP]


So I am asking which would be the best way to add the storage?

-----------------------
Buildz Hosting
IP: --   

Adding new storage
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
Which Storage? Which Virtualization Platform?
IP: --   

Adding new storage
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Quote From : wolke November 26, 2019, 12:05 pm
Which Storage? Which Virtualization Platform?


LVM Based Storage for KVM

-----------------------
Buildz Hosting
IP: --   

Adding new storage
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
you root partition is generously big but you have 1.7TB left on /homeThis is what you should create the VG on. When using LVM it needs an empty VG and it´s best to have a separate HDD, at least a complete partition. When using this VG as storage, Virtualizor eats up and controls the complete storage available for the vm. While possible, it is not advised to store any other LV (manually created for example) in this VG.

just create the VG on the /home partition and give Virtualizor the name of the VG,
IP: --   

Adding new storage
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Quote From : wolke November 26, 2019, 12:20 pm


just create the VG on the /home partition and give Virtualizor the name of the VG,


What would the command be to do that, or just add a new VG directory inside /home?

-----------------------
Buildz Hosting
IP: --   

Adding new storage
wolke
Group: NOC
Post Group: Elite Member
Posts: 437
Status:
You can´t create that inside a folder. It´s not a mountpoint.You need the complete partition and create a PV (physical volume ) with it:
Code
pvcreate /dev/md2


Then create the VG with this PV (you can add more PV later if you need to expand)

Code

vgcreate vgStorage /dev/md2


(Replace vgStorage with your desired name for the VG if you like)

You can check with the following commands:

pvdisplay (gives information about your PV and the created VG inside)

vgdisplay (gives information about your VG´s)

In this example vgStorage is the name to enter in Virtualizor add storage page.


IP: --   

Adding new storage
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Got this after trying pvcreate /dev/md2
Can't open /dev/md2 exclusively.  Mounted filesystem?

-----------------------
Buildz Hosting
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 1, 2025, 3:59 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.030