Adding a second disk

digilink

Renowned Member
Jul 31, 2010
9
0
66
Loving Proxmox so far... it's the best solution I've found to fit my needs,great job devs! :)

I have two disks in my system, one is an 80gb (which proxmox is installed on) and I have another 160gb drive that I want to use for storage of ISO's and virtual machines.

I have referenced the instructions here: http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups_with_Local_Backing

However, that appears to allocate the entire drive. I am only vaguely familiar with LVM. I partitioned the drive using fdisk:

chrislynn:~# fdisk -l /dev/sdb1

Disk /dev/sdb1: 160.0 GB, 160039960576 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcde62990

Device Boot Start End Blocks Id System
/dev/sdb1p1 1 12159 97667136 83 Linux
/dev/sdb1p2 12160 19457 58621185 83 Linux

When I attempt to create the physical volume, I get this error:
chrislynn:~# pvcreate /dev/sdb1p1
Device /dev/sdb1p1 not found (or ignored by filtering).

Am I approaching this wrong?

Thanks for any assistance...
 
Loving Proxmox so far... it's the best solution I've found to fit my needs,great job devs! :)

I have two disks in my system, one is an 80gb (which proxmox is installed on) and I have another 160gb drive that I want to use for storage of ISO's and virtual machines.

I have referenced the instructions here: http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups_with_Local_Backing

However, that appears to allocate the entire drive. I am only vaguely familiar with LVM. I partitioned the drive using fdisk:

chrislynn:~# fdisk -l /dev/sdb1

Disk /dev/sdb1: 160.0 GB, 160039960576 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcde62990

Device Boot Start End Blocks Id System
/dev/sdb1p1 1 12159 97667136 83 Linux
/dev/sdb1p2 12160 19457 58621185 83 Linux

When I attempt to create the physical volume, I get this error:
chrislynn:~# pvcreate /dev/sdb1p1
Device /dev/sdb1p1 not found (or ignored by filtering).

Am I approaching this wrong?

Thanks for any assistance...
Hi,
you create a partiontable inside a partition...
try to use "fdisk /dev/sdb"
Change the type of the lvm-partition to 8e, and then use pvcreate /dev/sdb1 (or /dev/sdb2...)

Udo