Proxmox OpenVZ BK Disk Setup, help request

raid

Member
Jul 25, 2010
102
0
16
Italy
Anyone with experience in proxmox able to point me in the right direction for setting up the following.
I have the following physical disks:
250gb
250gb
1000gb
and the following RAID Controller:
ADAPTEC RAID 2405
------------------------
I am trying to achieve the following, but am unsure how to proceed..
1 - Install Proxmox on the first 250gb disk - RAID Mirrored (RAID1 or RAID 10)
2 - Use the second 1000gb disk for backups
-------------------------
The server will run only one OpenVZ container (LAMP) and will be as similar as possible to an HA server, (in the next months we plan to add a second cluster).
I'm new to Linux system, so any hints or tips, would be very welcome, step-to-step instruction will be much appreciated.
thanks
 
Anyone with experience in proxmox able to point me in the right direction for setting up the following.
I have the following physical disks:
250gb
250gb
1000gb
and the following RAID Controller:
ADAPTEC RAID 2405
------------------------
I am trying to achieve the following, but am unsure how to proceed..
1 - Install Proxmox on the first 250gb disk - RAID Mirrored (RAID1 or RAID 10)
2 - Use the second 1000gb disk for backups
-------------------------
The server will run only one OpenVZ container (LAMP) and will be as similar as possible to an HA server, (in the next months we plan to add a second cluster).
I'm new to Linux system, so any hints or tips, would be very welcome, step-to-step instruction will be much appreciated.
thanks

Hi,
with your disks you can only run a raid1 over the two 250gb-disk - not fast but save...
I don't know the raidcontroller (i use them long time ago), perhaps you can also use the 1TB-disk as passtrough-disk to benefit from the cache.
The backup-disk can you mount to a directory (in /etc/fstab) e.g. /backup and define this directory in the gui (storage).
If you wan't to use HA - drbd is perhaps interesting - but this works (without hacks) only for kvm-guests.

Udo
 
thank for your help.
could you give me more info about the steps for mounting the 1Tb HD?
I tryed with no success the following step:
1) create directory: mkdir /BACKUP (ok)
2) mount HD: mount /dev/sdb1 /BACKUP (ko) error unrecognised lvm2pv filesystem.
May be I have a wrong filesystem, so I tryed to change it using FDISK, but which filesytem I have to use? I tryed 83 and 8e with no succes.
---------------
I tryed also:
1) mkdir /BACKUP1 (ok)
2) pvcreate dev/sdb1 (ok)
2 vgcreate BK-disk (ok)
3) added the LVM group to the storage list via web interface (ok)
4) When try to schedule the backup I didn't found any valid backup dir.
I suppose I cannot backup on LVM group
----------------------
Any tips?
 
Don't use pvcreate!
Repartition and reformat your 1TB hd, with ext3 filesystem, let's say that will become /dev/sdb1
Edit fstab so you have it automatically mounted in /BACKUP, but you can simply stry from command line like you did, should work
In web interface, storage, choose "add directory" and point to /BACKUP. In Content field choose "VZDump Backups"
That's all :)
 
It's gone.
I did the following steps:
1. Create directory: mkdir /BACKUP
1. Create FS #: mkfs.ext3 /dev/sdb1
2. Mount the drive to Directory: mount -t ext3 /dev/sdb1 /BACKUP
4. In proxmox storage web interface I chose "add directory", pointed it to /BACKUP and chose "VZDump BACKUP"

that's all
thanks a lot
 
It's gone.
I did the following steps:
1. Create directory: mkdir /BACKUP
1. Create FS #: mkfs.ext3 /dev/sdb1
2. Mount the drive to Directory: mount -t ext3 /dev/sdb1 /BACKUP
4. In proxmox storage web interface I chose "add directory", pointed it to /BACKUP and chose "VZDump BACKUP"

that's all
thanks a lot
Hi,
add also an entry in /etc/fstab, to mount the disk automaticly at reboot.

Udo
 
NOW I'LL TRY TO RECOVER.
CASE: The server has exploded, I saved only the backup disk! (don't worry, is only a simulation)
On the backup disk I have the last snapshot backup and the /root and /etc dir backup.
------
1. Install PROXMOX on a new server (ok in 5 min)
2. Connect the 1TB HD to the server
3. mount the 1TB HD: mount -t ext3 /dev/deb1 /BACKUP
4. recover the proxmox configuration: untar /etc e /root stored in the /BACKUP dir
5. revover the VM: vzrestore /BACKUP/vzdump-openvz-101-2010_08_02-10_00_02.tgz 101
6. restart the server
------------------------------
RESULT:
I have the VM again on-line in just 15 min (and this is very nice)
I lost the Appliance Templates (the page is empty)
I lost the System Config DNS, Admin email, Options
I lost the storage list
I lost the Backup Job list
I don't know about the certificate (I didn' istalled yet)
I lost the system logs
--------
Looks like the step 4 didn't its job
Any tips having the Proxmox full restored?
thanks


Hi,
add also an entry in /etc/fstab, to mount the disk automaticly at reboot.

Udo
Do you mean adding this row to /etc/fstab: /dev/sdb1 /BACKUP ext3 defaults 0 1
 
Looks like the step 4 is not a good idea!
the previous recovery has been successful thanks to the non-execution of step 4
When I ran back to point 4, on the first reboot the server crashed and the reasons seem obvious.
I suppose that only some /etc subdir can be retrieved
 
Looks like the step 4 is not a good idea!
the previous recovery has been successful thanks to the non-execution of step 4
When I ran back to point 4, on the first reboot the server crashed and the reasons seem obvious.
I suppose that only some /etc subdir can be retrieved
Hi,
perhaps you don't have anything saved?
You wrote that you missed Admin email - this email was stored in /root/.forward (hidden file due the beginning point).
To store the templates and disks-isos you must also save /var/lib/vz/template.
If you have a backup of all VMs you need after a fresh install imho the network-config (/etc/network/interfaces) and the storage-config (/etc/pve/storage.cfg). In /etc/pve are also the certificates...

Udo
 
So to summarize, this is the list of folders that should keep:
  • /root/.forward (admin email)
  • /var/lib/vz/template (templates)
  • /etc/network/interfaces (network interface)
  • /etc/pve/storage.cfg (storage-config)
  • /etc/vzdump.conf (backup setting)
  • /etc/fstab (Not restored but contains useful information)
 
Last edited: