<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>On 06/03/2014 17:05, Frederic Van
Espen wrote:</tt><tt><br>
</tt></div>
<blockquote class=" cite"
id="mid_CAJPacsfUyk_f2LTGSgp0T1TA_kwzPuDd9dTynWXWLua7rTftzQ_mail_gmail_com"
cite="mid:CAJPacsfUyk+f2LTGSgp0T1TA+kwzPuDd9dTynWXWLua7rTftzQ@mail.gmail.com"
type="cite"><tt>Our requirements:
- easily create snapshots
- easily create backups (perhaps on another external storage)
- in case of hardware failure ability to restore on a newly
installed node
I'd like the list's recommendations and experiences for what to
use
for the local filesystem. Should we put the disk images in an
LVM
group? Maybe better to just put them on an ext4 filesystem with
qcow
images? What about all the fuss around ZFS? Keep in mind we'd
like to
use both CT's and VM's.
</tt><tt><br>
</tt></blockquote>
<tt><br>
<br>
</tt><tt>- Use Raid10 (4+ disks)</tt><tt>. Avoid Raid5 for these
reasons:
<a class="moz-txt-link-freetext" href="http://community.spiceworks.com/topic/356486-why-is-raid5-so-bad">http://community.spiceworks.com/topic/356486-why-is-raid5-so-bad</a>)<br>
</tt><tt>- Configure LVM on top of it on the host and configure it
on the pve storage web panel</tt><tt><br>
</tt><tt>- Make simple scripts like this one to create and backup
snapshots (even on mounted nfs):</tt><tt><br>
</tt><tt><br>
</tt><tt><br>
</tt><tt>#!/bin/sh</tt><tt><br>
</tt><tt><br>
</tt><tt><tt><tt># destination backup path (even NFS or other
network fs mounted)<br>
</tt>DESTBACKUP=/<dest</tt><tt>ination</tt><tt>mountpoint><br>
<br>
# LVM Volume Group path<br>
</tt><tt>
</tt><tt>LVMCLUSTER=/dev/<</tt><tt>lvmvolumegroup></tt><tt><br>
</tt><tt><br>
</tt># we want to be sure that all the LV's are up and available<br>
</tt><tt>/sbin/vgchange -ay</tt><tt><br>
</tt><tt><br>
</tt><tt>#backup vm 101 disk 1</tt><tt><br>
</tt><tt>/sbin/lvcreate -L4G -s -n backup-101-1
${LVMCLUSTER}/vm-101-disk-1 </tt><tt><br>
</tt><tt>/bin/dd bs=65536 if=${LVMCLUSTER}/backup-101-1 | gzip >
${DESTBACKUP}/backup-101-1.img.gz</tt><tt><br>
</tt><tt>/sbin/lvremove -f ${LVMCLUSTER}/backup-101-1 </tt><tt><br>
</tt><tt><br>
</tt><tt>[...]</tt><tt><br>
</tt><tt><br>
</tt><tt><br>
</tt><tt>B</tt><tt>rgds,</tt><tt><br>
</tt><tt><br>
</tt><tt>Massimo Santoro</tt><tt><br>
</tt><tt><br>
</tt>
</body>
</html>