Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Creating Lvm in nvme raid 1 array



Threaded Mode | Print  

 Creating Lvm in nvme raid 1 array (1 Replies, Read 4249 times)
TopKiller
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hi,

Today i oredered a dedicated server from hetzner that has 2 nvme disks, 500gb each in software raid1 and i'm strugling creating a lvm storage.
Here's an output of some commands:
[root@CentOS-76-64-minimal etc]# pvs

[root@CentOS-76-64-minimal etc]# vgs

[root@CentOS-76-64-minimal etc]# lvs

[root@CentOS-76-64-minimal etc]# fdisk -l

Disk /dev/nvme0n1: 512.1 GB, 512110190592 bytes, 1000215216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xc111420e

        Device Boot      Start        End      Blocks  Id  System
/dev/nvme0n1p1            2048    67110911    33554432  fd  Linux raid autodetect
/dev/nvme0n1p2        67110912    68159487      524288  fd  Linux raid autodetect
/dev/nvme0n1p3        68159488  1000213167  466026840  fd  Linux raid autodetect

Disk /dev/nvme1n1: 512.1 GB, 512110190592 bytes, 1000215216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x6e596057

        Device Boot      Start        End      Blocks  Id  System
/dev/nvme1n1p1            2048    67110911    33554432  fd  Linux raid autodetect
/dev/nvme1n1p2        67110912    68159487      524288  fd  Linux raid autodetect
/dev/nvme1n1p3        68159488  1000213167  466026840  fd  Linux raid autodetect

Disk /dev/md1: 536 MB, 536281088 bytes, 1047424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md2: 477.1 GB, 477077241856 bytes, 931791488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md0: 34.3 GB, 34326183936 bytes, 67043328 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Can someone help me out?

Tanks,
Tomas
IP: --   

Creating Lvm in nvme raid 1 array
m9shyamalan
Group: Member
Post Group: Newbie
Posts: 19
Status:
Quote From : TopKiller August 27, 2019, 5:06 pm
Hi,

Today i oredered a dedicated server from hetzner that has 2 nvme disks, 500gb each in software raid1 and i'm strugling creating a lvm storage.
Here's an output of some commands:
[root@CentOS-76-64-minimal etc]# pvs

[root@CentOS-76-64-minimal etc]# vgs

[root@CentOS-76-64-minimal etc]# lvs

[root@CentOS-76-64-minimal etc]# fdisk -l

Disk /dev/nvme0n1: 512.1 GB, 512110190592 bytes, 1000215216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xc111420e

        Device Boot      Start        End      Blocks  Id  System
/dev/nvme0n1p1            2048    67110911    33554432  fd  Linux raid autodetect
/dev/nvme0n1p2        67110912    68159487      524288  fd  Linux raid autodetect
/dev/nvme0n1p3        68159488  1000213167  466026840  fd  Linux raid autodetect

Disk /dev/nvme1n1: 512.1 GB, 512110190592 bytes, 1000215216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x6e596057

        Device Boot      Start        End      Blocks  Id  System
/dev/nvme1n1p1            2048    67110911    33554432  fd  Linux raid autodetect
/dev/nvme1n1p2        67110912    68159487      524288  fd  Linux raid autodetect
/dev/nvme1n1p3        68159488  1000213167  466026840  fd  Linux raid autodetect

Disk /dev/md1: 536 MB, 536281088 bytes, 1047424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md2: 477.1 GB, 477077241856 bytes, 931791488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/md0: 34.3 GB, 34326183936 bytes, 67043328 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Can someone help me out?

Tanks,
Tomas


Fromhere you would need to create a volume group:

vgcreate volumegroupname /dev/md2
If you are looking to use LVM storage for VPS, that is all you would need to do. In the storage section of Virtualizor, you would select LVM storage, and point it to /dev/volumegroupname
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 29, 2024, 12:43 am.

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