Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th May 2008, 13:08
Zingaro2002 Zingaro2002 is offline
Junior Member
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Machine Replication & Failover with VMWare Server & Debian Etch - 2 questions

Hi,
I'm following
Virtual Machine Replication & Failover with VMWare Server & Debian Etch (4.0) howto.
I have not yet completed it, but I have to say that it's wonderful!
Thanks to Francis Theys, Falko Timme, Till Brehm!!!

Now my question...
I am arrived at the point in which I write
mount -t ext3 /dev/drbd0 /var/vm
on both servers.

On server1 the command executes correctly.

On server2 it says:
mount: block device /dev/drbd0 is write-protected, mounting read-only
mount: /dev/drbd0 already mounted or /var/vm busy

And of course if I put a "df -h" command I have:
On server1:
Filesystem Dimens. Used Avail. Usage% Mounted on
/dev/hda2 7,0G 1,2G 5,5G 18% /
tmpfs 475M 0 475M 0% /lib/init/rw
udev 10M 56K 10M 1% /dev
tmpfs 475M 0 475M 0% /dev/shm
/dev/hda1 464M 17M 423M 4% /boot
/dev/drbd0 450G 199M 427G 1% /var/vm

and on server2
Filesystem Dimens. Used Avail. Usage% Mounted on
/dev/hda2 7,0G 1,2G 5,6G 17% /
tmpfs 475M 0 475M 0% /lib/init/rw
udev 10M 56K 10M 1% /dev
tmpfs 475M 0 475M 0% /dev/shm
/dev/hda1 464M 15M 425M 4% /boot

Is it right?

***************

Another question.
If I write "cat /proc/drbd" I have:

On server 1:
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@server1, 2008-05-08 11:30:30
0: cs:Connected st:Primary/Secondary ld:Consistent
ns:24 nr:0 dw:7641924 dr:273 al:7259 bm:0 lo:0 pe:0 ua:0 ap:0
1: cs:Unconfigured

On server 2:
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@server2, 2008-05-08 11:30:31
0: cs:Connected st:Secondary/Primary ld:Consistent
ns:0 nr:24 dw:7641924 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
1: cs:Unconfigured

Is it right?

If I create a simple text file on /var/vm in server1 I would expect to find it also on server 2 but... nothing!
Am I missing something?

I'd like to have clearer ideas before going further with this very useful howto.

Thanks to the authors (I hope some of them can help me!!!)


Can anyone help me?

Last edited by Zingaro2002; 8th May 2008 at 13:12.
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2008, 12:37
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Hi, this is "normal" as you can't mount the DRBD volume on both servers at once. You should mount it on one server, and then use it for the VM creation. DRBD will replicate is.

If you "unmount" the DRBD volume and then put the primary server "offline", you will be able to mount the DRBD volume on your second server.

Kind regards,
Thanis

PS: I should be more active here, it has been ages since my last visit
Reply With Quote
  #3  
Old 12th May 2008, 11:08
Zingaro2002 Zingaro2002 is offline
Junior Member
 
Join Date: May 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much...

and what about my second question? (see above)
Reply With Quote
  #4  
Old 13th May 2008, 16:14
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
 
Default

As for question 2: YEs, that is a correct output It says your DRBD volume is replicated and consistent .
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Virtual hosting with vsftpd and mysql on Debian Etch Bill.A HOWTO-Related Questions 6 21st March 2008 16:06
Just a Couple of Questions brainz Installation/Configuration 9 2nd March 2006 11:02
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 11:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 09:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.