[DRBD-user] Problem with drbd and lvm

Alireza Nematollahi alirezan at redback.com
Thu Oct 16 19:33:47 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


You can do BASH scripting...You can easily write a script to load DRBD module on startup and set it up (i.e. start the process and resources...)
Should be fairly simple. I've done it before.

thanks

________________________________
From: Hracek, Petr [mailto:petr.hracek at siemens.com]
Sent: Thursday, October 16, 2008 3:49 AM
To: Alireza Nematollahi; drbd-user at lists.linbit.com
Subject: RE: [DRBD-user] Problem with drbd and lvm

Sorry for my mistake
I thought experiences instead of exercise.

regards / S pozdravem

Petr Hráček


________________________________
From: drbd-user-bounces at linbit.com [mailto:drbd-user-bounces at linbit.com] On Behalf Of Hracek, Petr
Sent: Thursday, October 16, 2008 12:23 PM
To: Alireza Nematollahi; drbd-user at lists.linbit.com
Subject: RE: [DRBD-user] Problem with drbd and lvm
Thanks for your information.

vgchange -ay is done in initrd during the booting.
Do you have some exercise with the script which should be written?
What should be written in this script?

Thank you in advance

regards / S pozdravem

Petr Hráček


________________________________
From: Alireza Nematollahi [mailto:alirezan at redback.com]
Sent: Wednesday, October 15, 2008 7:25 PM
To: Hracek, Petr; drbd-user at lists.linbit.com
Subject: RE: [DRBD-user] Problem with drbd and lvm
I think it's because LVM volumes don't get activated on start up automatically. If you do lvscan after restart, you'll see that all volumes are inactive. I don't know if there's any way to activate them automatically, but you can do:         vgchange -ay

Then you can use your DRBD. One more thing. If you want, you can write a small BASH script to do the initializations for DRBD and LVM and put it as part of your Linux startup programs...

Hope this helps



________________________________
From: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Hracek, Petr
Sent: Wednesday, October 15, 2008 3:05 AM
To: drbd-user at lists.linbit.com
Subject: [DRBD-user] Problem with drbd and lvm

Hello *,

on my system I've partition which is called /DBS (used for database)
I would like to activate DRBD with LVM for online replication.

HDD-> LVM-> DRBD is layout of usage LVM together with DRBD
Problem is that after restart drbd is not started automatically

Output from /proc/drbd is:
david:~ # cat /proc/drbd
version: 0.7.22 (api:79/proto:74)
SVN Revision: 2572 build by lmb at dale<mailto:lmb at dale>, 2006-10-25 18:17:21
 0: cs:Unconfigured
 1: cs:Unconfigured
david:~ #
Could you please help me what can I do?

regards
Petr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20081016/85c80d56/attachment.htm>


More information about the drbd-user mailing list