Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Virtualizor KVM how to work storage?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Virtualizor KVM how to work storage?

Hello. I am looking for setting up my server at home for visualisation with KVM to run different things and different OS. Before I use Virtualizor with internal 192.168 home network.

Now when adding storage options its always 0% used 0% free size 00 I tried LVM with /dev/vg and /dev/vg-kvm

ID  Storage Name    Servers UUID    Type    Path    Primary Size    Free    Oversell    Alert Threshold Manage  
3   diska   localhost   7wo9ewdz1vc7lyni    File    /kvm    Yes 0.00 GB 0.00 GB 0 GB    90.00%          

I have partition /kvm and LVM group /dev/

[root@dsk ~]# lsblk
NAME                MAJ:MIN RM    SIZE RO TYPE  MOUNTPOINT
sdb                   8:16   0    1.8T  0 disk  
├─sdb1                8:17   0 1004.5K  0 part  
├─sdb2                8:18   0    100G  0 part  
│ └─md2               9:2    0    100G  0 raid1 /
├─sdb3                8:19   0      4G  0 part  [SWAP]
└─sdb4                8:20   0    1.7T  0 part  
  └─md4               9:4    0    1.7T  0 raid1 
    └─vg-kvm (dm-0) 253:0    0    1.7T  0 lvm   /kvm
sda                   8:0    0    1.8T  0 disk  
├─sda1                8:1    0 1004.5K  0 part  
├─sda2                8:2    0    100G  0 part  
│ └─md2               9:2    0    100G  0 raid1 /
├─sda3                8:3    0      4G  0 part  [SWAP]
└─sda4                8:4    0    1.7T  0 part  
  └─md4               9:4    0    1.7T  0 raid1 
    └─vg-kvm (dm-0) 253:0    0    1.7T  0 lvm   /kvm
[root@dsk ~]# df -h
Filesystem          Size  Used Avail Use% Mounted on
rootfs               99G  2.9G   91G   4% /
devtmpfs             16G  236K   16G   1% /dev
tmpfs                16G     0   16G   0% /dev/shm
/dev/md2             99G  2.9G   91G   4% /
/dev/mapper/vg-kvm  1.7T   68M  1.7T   1% /kvm

Comments

  • installed with

    ./install.sh [email protected] kernel=kvm lvg=vg
  • What does the output of "vgdisplay" say?

  • @linuxthefish said:
    What does the output of "vgdisplay" say?

    thx

      --- Volume group ---
      VG Name               vg
      System ID             
      Format                lvm2
      Metadata Areas        1
      Metadata Sequence No  2
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                1
      Open LV               0
      Max PV                0
      Cur PV                1
      Act PV                1
      VG Size               1.72 TiB
      PE Size               4.00 MiB
      Total PE              450306
      Alloc PE / Size       450306 / 1.72 TiB
      Free  PE / Size       0 / 0   
      VG UUID               ztbFFc-6ojS-z1SW-cQYa-AebL-IRrM-PAH3Sb
  • umount /kvm ; fdisk /dev/mapper/vg-kvm

    Disk /dev/mapper/vg-kvm: 1888.7 GB, 1888720257024 bytes
    255 heads, 63 sectors/track, 229623 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x982e2382
    
                 Device Boot      Start         End      Blocks   Id  System
    
    Command (m for help): d
    No partition is defined yet!
  • @deepreflect said:
    VG UUID ztbFFc-6ojS-z1SW-cQYa-AebL-IRrM-PAH3Sb

    You need to delete /dev/mapper/vg-kvm (/kvm) and remove from the fstab file for future reboots.

    You need to provide virtualizor with an empty vg yours being called vg, however It currently has no space as has the vg-kvm using all 1.72TB~

Sign In or Register to comment.