<br><font size=2 face="sans-serif">You need to either shrink the Filesystem
within LVM to make space for the Metadata, or create another LV to accommodate
it (external metadata). I would adwise to use the latter approach.</font>
<br><font size=2 face="sans-serif">Use a different Port number for each
resource<br>
</font><font size=2 color=#5f5f5f face="sans-serif">Mit freundlichen Grüßen
/ Best Regards<b><br>
</b></font>
<br><font size=2 color=#5f5f5f face="sans-serif">Robert Koeppl<br>
<br>
Systemadministration<br>
<b><br>
KNAPP Systemintegration GmbH</b><br>
Waltenbachstraße 9<br>
8700 Leoben, Austria <br>
Phone: +43 3842 805-910<br>
Fax: +43 3842 82930-500<br>
robert.koeppl@knapp.com <br>
www.KNAPP.com <br>
<br>
Commercial register number: FN 138870x<br>
Commercial register court: Leoben<br>
</font><font size=1 color=#d2d2d2 face="sans-serif"><br>
The information in this e-mail (including any attachment) is confidential
and intended to be for the use of the addressee(s) only. If you have received
the e-mail by mistake, any disclosure, copy, distribution or use of the
contents of the e-mail is prohibited, and you must delete the e-mail from
your system. As e-mail can be changed electronically KNAPP assumes no responsibility
for any alteration to this e-mail or its attachments. KNAPP has taken every
reasonable precaution to ensure that any attachment to this e-mail has
been swept for virus. However, KNAPP does not accept any liability for
damage sustained as a result of such attachment being virus infected and
strongly recommend that you carry out your own virus check before opening
any attachment.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Bernie Wu <Bernard_Wu@ncci.com></b>
</font>
<br><font size=1 face="sans-serif">Gesendet von: drbd-user-bounces@lists.linbit.com</font>
<p><font size=1 face="sans-serif">18.08.2010 21:10</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">An</font></div>
<td><font size=1 face="sans-serif">"drbd-user@lists.linbit.com"
<drbd-user@lists.linbit.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Kopie</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Thema</font></div>
<td><font size=1 face="sans-serif">[DRBD-user] How to convert existing
lvm2 filesystem to use drbd</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3 face="Calibri">Hi Listers,</font>
<br><font size=3 face="Calibri">We currently have one guest with an existing
VG ( vgora_dbms ) with 2 LV’s ( lvdbms01 and lvdbms02 ) and some free
space. Before I create another guest with identical VG attributes,
I would like to convert the current VG to be used and controlled by drbd.</font>
<br><font size=3 face="Calibri">My listing of vgdisplay and /etc/drbd.conf
follows:</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"># vgdisplay -v vgora_dbms</font>
<br><font size=3 face="Calibri"> Using volume group(s) on
command line</font>
<br><font size=3 face="Calibri"> Finding volume group "vgora_dbms"</font>
<br><font size=3 face="Calibri"> --- Volume group ---</font>
<br><font size=3 face="Calibri"> VG Name
vgora_dbms</font>
<br><font size=3 face="Calibri"> System ID</font>
<br><font size=3 face="Calibri"> Format
lvm2</font>
<br><font size=3 face="Calibri"> Metadata Areas
2</font>
<br><font size=3 face="Calibri"> Metadata Sequence No 3</font>
<br><font size=3 face="Calibri"> VG Access
read/write</font>
<br><font size=3 face="Calibri"> VG Status
resizable</font>
<br><font size=3 face="Calibri"> MAX LV
0</font>
<br><font size=3 face="Calibri"> Cur LV
2</font>
<br><font size=3 face="Calibri"> Open LV
0</font>
<br><font size=3 face="Calibri"> Max PV
0</font>
<br><font size=3 face="Calibri"> Cur PV
2</font>
<br><font size=3 face="Calibri"> Act PV
2</font>
<br><font size=3 face="Calibri"> VG Size
44.98 GB</font>
<br><font size=3 face="Calibri"> PE Size
4.00 MB</font>
<br><font size=3 face="Calibri"> Total PE
11516</font>
<br><font size=3 face="Calibri"> Alloc PE / Size
10240 / 40.00 GB</font>
<br><font size=3 face="Calibri"> Free PE / Size
1276 / 4.98 GB</font>
<br><font size=3 face="Calibri"> VG UUID
cNHE4P-v5Kj-H208-9NyQ-h80D-yuT8-aBA3JX</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> --- Logical volume ---</font>
<br><font size=3 face="Calibri"> LV Name
/dev/vgora_dbms/lvdbms01</font>
<br><font size=3 face="Calibri"> VG Name
vgora_dbms</font>
<br><font size=3 face="Calibri"> LV UUID
Pud0a0-pVfZ-GmE2-d2hp-8Zg7-Mcls-YvsopX</font>
<br><font size=3 face="Calibri"> LV Write Access
read/write</font>
<br><font size=3 face="Calibri"> LV Status
available</font>
<br><font size=3 face="Calibri"> # open
0</font>
<br><font size=3 face="Calibri"> LV Size
20.00 GB</font>
<br><font size=3 face="Calibri"> Current LE
5120</font>
<br><font size=3 face="Calibri"> Segments
1</font>
<br><font size=3 face="Calibri"> Allocation
inherit</font>
<br><font size=3 face="Calibri"> Read ahead sectors
0</font>
<br><font size=3 face="Calibri"> Block device
253:2</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> --- Logical volume ---</font>
<br><font size=3 face="Calibri"> LV Name
/dev/vgora_dbms/lvdbms02</font>
<br><font size=3 face="Calibri"> VG Name
vgora_dbms</font>
<br><font size=3 face="Calibri"> LV UUID
MnPYDM-tAUT-f1w3-m52o-pXnX-66jx-2sm16U</font>
<br><font size=3 face="Calibri"> LV Write Access
read/write</font>
<br><font size=3 face="Calibri"> LV Status
available</font>
<br><font size=3 face="Calibri"> # open
0</font>
<br><font size=3 face="Calibri"> LV Size
20.00 GB</font>
<br><font size=3 face="Calibri"> Current LE
5120</font>
<br><font size=3 face="Calibri"> Segments
1</font>
<br><font size=3 face="Calibri"> Allocation
inherit</font>
<br><font size=3 face="Calibri"> Read ahead sectors
0</font>
<br><font size=3 face="Calibri"> Block device
253:3</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> --- Physical volumes ---</font>
<br><font size=3 face="Calibri"> PV Name
/dev/dasdg1</font>
<br><font size=3 face="Calibri"> PV UUID
OkAxDf-YvdA-ehru-yb0S-8ytw-6uHH-DsfH8F</font>
<br><font size=3 face="Calibri"> PV Status
allocatable</font>
<br><font size=3 face="Calibri"> Total PE / Free PE 5758
/ 638</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> PV Name
/dev/dasdh1</font>
<br><font size=3 face="Calibri"> PV UUID
rVqwHH-P8jl-yfAt-jqeL-7Sx9-RziQ-E4eTb1</font>
<br><font size=3 face="Calibri"> PV Status
allocatable</font>
<br><font size=3 face="Calibri"> Total PE / Free PE 5758
/ 638</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"># cat drbd.conf</font>
<br><font size=3 face="Calibri">global {</font>
<br><font size=3 face="Calibri"> disable-ip-verification;</font>
<br><font size=3 face="Calibri">}</font>
<br><font size=3 face="Calibri">common {</font>
<br><font size=3 face="Calibri"> protocol C;</font>
<br><font size=3 face="Calibri">}</font>
<br><font size=3 face="Calibri">resource dbms01 {</font>
<br><font size=3 face="Calibri"> device /dev/drbd01;</font>
<br><font size=3 face="Calibri"> disk /dev/vgora_dbms/lvdbms01;</font>
<br><font size=3 face="Calibri"> meta-disk internal;</font>
<br><font size=3 face="Calibri"> on lnocsrq1 {</font>
<br><font size=3 face="Calibri"> address 172.27.100.211:7788;</font>
<br><font size=3 face="Calibri"> }</font>
<br><font size=3 face="Calibri"> on lnocsrq2 {</font>
<br><font size=3 face="Calibri"> address 172.27.100.212:7788;</font>
<br><font size=3 face="Calibri"> }</font>
<br><font size=3 face="Calibri">}</font>
<br><font size=3 face="Calibri">resource dbms02 {</font>
<br><font size=3 face="Calibri"> device /dev/drbd02;</font>
<br><font size=3 face="Calibri"> disk /dev/vgora_dbms/lvdbms02;</font>
<br><font size=3 face="Calibri"> meta-disk internal;</font>
<br><font size=3 face="Calibri"> on lnocsrq1 {</font>
<br><font size=3 face="Calibri"> address 172.27.100.211:7788;</font>
<br><font size=3 face="Calibri"> }</font>
<br><font size=3 face="Calibri"> on lnocsrq2 {</font>
<br><font size=3 face="Calibri"> address 172.27.100.212:7788;</font>
<br><font size=3 face="Calibri"> }</font>
<br><font size=3 face="Calibri">}</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">When I run “drbdadm -c /etc/drbd.conf
create-md all “ I get the following error:</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">/etc/drbd.conf:23: conflicting use of IP
'172.27.100.211:7788' ...</font>
<br><font size=3 face="Calibri">/etc/drbd.conf:12: IP '172.27.100.211:7788'
first used here.</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">Any ideas on how to :</font>
<br><font size=3 face="Calibri">1. convert an existing
lvm2 filesystem to use drbd ?</font>
<br><font size=3 face="Calibri">2. create several resources
in /etc/drbd.conf</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri">TIA</font>
<br><font size=3 face="Calibri">Bernie Wu</font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> </font>
<br><font size=3 face="Calibri"> </font>
<p><font size=3><br>
</font>
<hr><font size=1 color=#808080 face="Arial">The information contained in
this e-mail message is intended only for the personal and confidential
use of the recipient(s) named above. This message may be an attorney-client
communication and/or work product and as such is privileged and confidential.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any review,
dissemination, distribution, or copying of this message is strictly prohibited.
If you have received this communication in error, please notify us immediately
by e-mail, and delete the original message.</font><tt><font size=2>_______________________________________________<br>
drbd-user mailing list<br>
drbd-user@lists.linbit.com<br>
http://lists.linbit.com/mailman/listinfo/drbd-user<br>
</font></tt>
<p>