<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I've changed my setup, I know have:<br>
<br>
Disk -> DRBD -> LVM -> OCFS2<br>
<br>
I have clvm and lvm2 running (both clones) and things seem to work
fine. (After some fiddeling, I'm new to LVM. I needed cLVM to get
things working smooth).<br>
<br>
I can create a snapshot volume, but I fail to succesfully change the
UUID / volume label:<br>
<br>
root@scan1:~# lvcreate -s -L 50G -n SS /dev/r0/scans<br>
Logical volume "SS" created<br>
root@scan1:~# tunefs.ocfs2 --cloned-volume -L SS /dev/r0/SS<br>
Updating the UUID and label on cloned volume "/dev/r0/SS".<br>
DANGER: THIS WILL MODIFY THE UUID WITHOUT ACCESSING THE CLUSTER
SOFTWARE. YOU MUST BE ABSOLUTELY SURE THAT NO OTHER NODE IS USING
THIS FILESYSTEM BEFORE MODIFYING ITS UUID.<br>
Update the UUID and label? y<br>
tunefs.ocfs2: OCFS2 inode is not a directory while opening device
"/dev/r0/SS"<br>
<br>
Anyone familiar with this setup / error message?<br>
<br>
Thank you in advance,<br>
<br>
Dirk<br>
<br>
Op 4-4-2012 14:16, Kaloyan Kovachev schreef:
<blockquote cite="mid:f7e1fb76b82ae316dc75a50a136105ee@mx.varna.net"
type="cite">
<pre wrap="">
If you are using DRBD on top of LVM you can make use of snapshots and
mount the snapshot with local locking. Here is an example from my backup
script:
lvcreate -s -L 100G -n LVMsnapshot /dev/vg0/lv0
tunefs.ocfs2 -y -L LVMsnapshot --cloned-volume /dev/vg0/LVMsnapshot
mount -o ro,localflocks /dev/vg0/LVMsnapshot /mnt/LVMsnapshot/
rsync -a --delete /mnt/LVMsnapshot/ ${BACKUP_LOCATION}
umount /mnt/LVMsnapshot
lvremove -f /dev/vg0/LVMsnapshot
</pre>
<br>
</blockquote>
<div class="moz-signature"><br>
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="20"><br>
</td>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
<td><br>
</td>
</tr>
<tr>
<td colspan="2"><br>
</td>
</tr>
<tr>
<td colspan="2"><br>
</td>
</tr>
</tbody>
</table>
<br>
</div>
</body>
</html>