Need help with storage

  • Thread starter Thread starter piet.pedersen
  • Start date Start date
P

piet.pedersen

Guest
Hello

I've just installt proxmox 1.4 on a HP ML115G1 server, with a HP smart array P400 raid controller, the controller has 5 HDD's 1x500Gb for system and 4x1Tb in raid 5 for storage.

I installed Proxmox on the 500Gb drive, it boots and works fine, but I can't see/find the storage on the 4x1Tb disks.

Is it possible to create it/ mount it to a folder eg. /vm-store/ and then add it to the Proxmox webinterface?

I try to follow the guide for adding usb storage I could see it in the webinterface but still no path to the storage.

any idears?

Best regards
Piet
 
Hello

I've just installt proxmox 1.4 on a HP ML115G1 server, with a HP smart array P400 raid controller, the controller has 5 HDD's 1x500Gb for system and 4x1Tb in raid 5 for storage.

I installed Proxmox on the 500Gb drive, it boots and works fine, but I can't see/find the storage on the 4x1Tb disks.

Is it possible to create it/ mount it to a folder eg. /vm-store/ and then add it to the Proxmox webinterface?

I try to follow the guide for adding usb storage I could see it in the webinterface but still no path to the storage.

any idears?

Best regards
Piet

Hi Piet,
the easiest way is, to expand the volumegroup pve with the raid.
But i see, that your systemdisk is a single disk without raid-protection?
Perhaps it's better to build two raidsets - one mirror for the system and the last three disk as raid-5 for the logical Volume data (this is mountet at /var/lib/vz).

To use the second disk (e.g. sdb) for /var/lib/vz:
First have a backup! Stop all VMs.
Save the content of /var/lib/vz:
Code:
cd /var/lib/vz; tar cvf /root/vz.tar .
cd
umount /var/lib/vz
lvdisplay
vgdisplay
lvremove /dev/pve/data

vgdisplay
# add the whole second disk
pvcreate /dev/sdb
vgextend pve /dev/sdb
vgdisplay # look at free

# create data  - with size that fit on sdb e.g. 1Tera
lvcreate -C y -n data -L 1T pve
# -C y says continous - so the lv go on sdb and not on sda + sdb
mkfs.ext3 /dev/pve/data

mount /var/lib/vz
cd /var/lib/vz
tar xvf /root/vz.tar .
Thats all!

Udo
 
Last edited:
Thank you very much for your help :D

I will try the second option first, after the creation of the VG, how do I mount it to transfer files to it? (I named the VG VM-store)

Best regards
Piet
 
Thank you very much for your help :D

I will try the second option first, after the creation of the VG, how do I mount it to transfer files to it? (I named the VG VM-store)

Best regards
Piet

Hi Piet,
you can't mount a volume group - there is no filesystem. But if you add a disk for a vm, you can select this volumegroup as target - so proxmox make a logical volume on the volumegroup. You must, of course, define the storage with proxmox.

Udo
 
I need to copy some existing VM's to the new VG, how can I do that? :confused: