2nd hdd

  • Thread starter Thread starter Lanuser
  • Start date Start date
L

Lanuser

Guest
Hello guys
I having trouble to mount 2nd local HDD to ProxMox

fdisk -l
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 30394 243615485 8e Linux LVM
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/dm-0: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 62.2 GB, 62277025792 bytes
255 heads, 63 sectors/track, 7571 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 166.7 GB, 166786498560 bytes
255 heads, 63 sectors/track, 20277 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table


As you see i have 2 hard drives
1) HDD 250GB has Proxmox
2) HDD 1TB spare and would like to use for VM's
Problem is that I can't see 1TB HDD in proxmox GUI
How do I Mount , partition , format etc... to make 2nd HDD visable in GUI ?
Can someone help me with this situation?
I need step by steap if you don't mind.
 
If you have a loot at this howto:
http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups_with_Local_Backing
you will find step by step instructions.
You can substitute /dev/sdb1 with /dev/sdb if you want to use the whole 1TB had (remove any previous partitions first).
After following the instructions, you will have from Proxmox web interface the additional storage where you can put new KVM vm. This is the most efficient setup for I/O.
 
I just want to make sure this steps I need to make internal hdd visable in GUI in proxmox.

LVM Groups with Local Backing


First create the physical volume (pv):


proxmox-ve:~# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
proxmox-ve:~#

Second, create a volume group (vg):

proxmox-ve:~# vgcreate usb-stick /dev/sdb1 Volume group "usb-stick" successfully createdproxmox-ve:~#


And finally: Add the LVM Group to the storage list via the web interface:

"Storage name: usb", "Base storage: Existing volume groups", "Volume Group Name: usb-stick"


Where USB or USB-STICK I replace with what ever name I want?


How to remove any previous partitions first?

Thanks
 
Last edited by a moderator:
If you have a loot at this howto:
http://pve.proxmox.com/wiki/Storage_Model#LVM_Groups_with_Local_Backing
you will find step by step instructions.
You can substitute /dev/sdb1 with /dev/sdb if you want to use the whole 1TB had (remove any previous partitions first).
After following the instructions, you will have from Proxmox web interface the additional storage where you can put new KVM vm. This is the most efficient setup for I/O.


Done as you told me and seems working.
Now question is:
When i used instead usb-stick a 1TB

when in GUI i was trying add name it said illigal characters.
Why is that?
Thanks again.
 
Don't know your GNU/Linux skill, but to remove partitions you can use
proxmox-ve:~# fdisk /dev/sdb
use 'p' to have a partition list, and 'd' to delete partitions (of course you will loose everything you have on /dev/sdb!) and finally 'w' to write partition table and exit
then:
create the physical volume:
proxmox-ve:~# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
proxmox-ve:~#

Second, create a volume group (vg):

proxmox-ve:~# vgcreate second-lvm /dev/sdb
Volume group "second-lvm" successfully created
proxmox-ve:~#

And finally: Add the LVM Group to the storage list via the web interface:

"Storage name: newstorage", "Base storage: Existing volume groups", "Volume Group Name: second-lvm"

The "second-lvm" and "newstorage" are fantasy names you can choose whatever you want (of course, with plain [a-z][0-9] and '-', not fancy characters!

Experiment, google, and experiment! :)
If you have further questions, or you think the wiki page could be more clear, feel free to ask and suggest
 
Be more specific.
How do you called the pv? Output of command # pvs
What name are you going to assign it in Web interface? Keep it plain, and of course different from the one used for pv
 
Thank you for your time and help!
I am gonna create VM to test performance.