noobs question about adding harddriv

edina

Member
Nov 26, 2014
4
0
21
Hi all

this is a bit of a noob question i gues :D

How do i add my 3 drives that i just took from my old linux
to the new VM linux,

Or how to migrate them over, they run Sata and EXT4
 
passtrough i guess, my /etc/qemu-server/102.conf was empty
so i created the file with this contect

sata1: /dev/sde1

and it does not show up on my debian box when i do fdisk -l
 
Sorry I meant /etc/pve/qemu-server/102.conf.
That should be the correct path and it should have already content.
Try to put whole drive not only the partition.Also make sure that /dev/sde is not occupied by another process.

Example:

sata1: /dev/sde
or
ide1: /dev/sde
 
bootdisk: ide0
cores: 1
ide0: local:102/vm-102-disk-1.qcow2,format=qcow2,size=64G
ide2: local:iso/debian-live-7.7.0-amd64-gnome-desktop.iso,media=cdrom
memory: 2000
net0: e1000=EA:55:4E:49:5C:71,bridge=vmbr1
ostype: l26
smbios1: uuid=3a08d989-cc73-4657-895e-9aea9926b74b
sockets: 1
sata1: /dev/sde


And now when i run mount -a i get unknown filesystem type "LVM"_member"
:confused:
 
And now when i run mount -a i get unknown filesystem type "LVM"_member"
:confused:
You mean inside VM right?

Probably your disk is LVM member and cannot be directly mounted.
You should give:
pvscan
vgscan
lvscan

What does:

lvdisplay

shows?
You should mount that LV. For example:

mount /dev/mapper/vg0/lv0 /mnt
 
pvscan

PV /dev/sda1 VG 1tb lvm2 [465.76 GiB / 465.76 GiB free]
Total: 1 [465.76 GiB] / in use: 1 [465.76 GiB] / in no VG: 0 [0 ]


vgscan

Reading all physical volumes. This may take a while...
Found volume group "1tb" using metadata type lvm2


lvscan
does nothing

lvdisplay
does nothing
 
lvscan
does nothing

lvdisplay
does nothing

Maybe you had two disks in LVM group (2x500gb)?
If yes, then you should attach the other too on VM like you did with this one.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!