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 5th August 2008, 10:48
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default VMware use hda5 instade of hda6 for the VM's

Firstly, I'll try to make my question as clearly as possible, despite my poor English and thanks for making the great howto's! After strictly follow this and this howto, saves VMware Server (2.0 Release Candidate 1) the VM's on hda5 as I set hda6. And I see nowhere (with fdisk-l or df -h) /dev/drbd0...

Here what I've done:
Befor the installation of VMware, I have created a new directory as in the aforementioned how to was described by:
Code:
mkdir /var/vm
To save the VM's on that location. During the installation of VMware Server I also changed the Datastore default in /var/vm. (So from here it is obvious that the VM's to be saved on hda5.)
But because DRBD is set at hda6 (see drbd.conf) and I enter
Code:
mount-t ext3 /dev/drbd0 /var/vm
what the location changes from /var/vm on hda5 to /var/vm on hda6, right?

My partition scheme is as follows:
/dev/hda1 | 0.01 GB | boot (primary, ext3, bootable flag: on)
/dev/hda5 | 3.80 GB | / (logical, ext3)
/dev/hda6 | 25.4 GB | unmounted (logical, ext3, will contain the /var/vm directory)
/dev/hda7 | 1.00 GB | swap (logical, swap)

But hda6 should be well formatted with ext3 or just created?

The output from fdisk -l shows:
Code:
Disk /dev/hda: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2              13        3738    29929095    5  Extended
/dev/hda5              13         474     3710983+  83  Linux
/dev/hda6             475        3611    25197921   83  Linux
/dev/hda7            3612        3738     1020096   82  Linux swap / Solaris
And df -h:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             3.5G  3.2G  197M  95% /
tmpfs                 380M     0  380M   0% /lib/init/rw
udev                   10M   44K   10M   1% /dev
tmpfs                 380M     0  380M   0% /dev/shm
/dev/hda1              92M   12M   75M  14% /boot
My drbd.conf:
Code:
resource vm1 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    wfc-timeout 10;             # 10 seconds
    degr-wfc-timeout 30;        # 30 seconds
  }
  disk {
    on-io-error detach;
  }
  net {
    max-buffers 20000;          # Play with this setting to achieve highest possible performance
    unplug-watermark 12000;     # Play with this setting to achieve highest possible performance
    max-epoch-size 20000;       # Should be the same as max-buffers
  }
  syncer {
    rate 10M;           # Use more if you have a Gigabit network, speed is in Kylobytes. e.g.: 10M = 10Megabytes
    group 1;
    al-extents 257;
  }
  on server1.home {                   # Use the exact hostname of your server as give by the command "uname -n"
    device     /dev/drbd0;              # Drbd device ID
    disk       /dev/hda6;               # physical disk device, check your partitioning scheme!
    address    192.168.1.15:7789;       # Fixed IP address of Sproetjuh.home
    meta-disk  internal;                # I use internal metadata storage
  }
  on server2.home {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.17:7789;
    meta-disk  internal;
  }
}
I hope you can help me because I really do not know where I should start right now..

Last edited by Bart van Kleef; 5th August 2008 at 16:48. Reason: To clarify my problem
Reply With Quote
Sponsored Links
  #2  
Old 6th August 2008, 12:50
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default

81 views and no answer? Come on I really need your help
Reply With Quote
  #3  
Old 6th August 2008, 13:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I haven't tried the VMware replication howto, but have you tried to contact the author?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Bart van Kleef (6th August 2008)
  #4  
Old 6th August 2008, 19:09
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thank you for your reply Falko, I'll follow your suggestion right now!

Greetings from The Netherlands!
Reply With Quote
  #5  
Old 8th August 2008, 23:20
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 Bart,

It seems that your DRBD device is not started. Did you start DRBD ? You should not be able to see /dev/hda6. Please let me know at what point of the tutorial you are, as I think you have skipped some steps.

Grtz from Belgica
Groeten uit Antwerpen.
Reply With Quote
The Following User Says Thank You to thanis For This Useful Post:
Bart van Kleef (11th August 2008)
  #6  
Old 11th August 2008, 22:45
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thank you for taking your time thanis, and others who reading this reply right now! I've followed your how to (step for step) again and again with a new installation on both servers. But whatever I do after a reboot of the two servers drbd0 isn't mounted. Not even when I run /etc/init.d/drbd stop/start/restart.
When I try to mount it again (mount -t ext3 /dev/drbd0 /var/vm) I get the following: mount: block device /dev/drbd0 is write-protected, mounting read-only mount: /dev/drbd0 already mounted or /var/vm busy
I have no idea what I'm doing wrong, I hope you do!!

Friendly greetings,

Bart van Kleef
Reply With Quote
  #7  
Old 12th August 2008, 16:34
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

Bart, your main issue is the not starting of the DRBD volume. What error do you get when running /etc/init.d/drbd start ? Can you post your drbd.conf for both servers ?

thanks,
Thanis
Reply With Quote
  #8  
Old 12th August 2008, 17:33
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanis, thanks again! The rare thing is, I get no error when I run "/etc/init.d/drbd start"

Code:
sproetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ ].
sproetjuh:~# /etc/init.d/drbd stop
Stopping all DRBD resources.
sproetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 s0 n0 ].
Code:
kimmetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ ].
kimmetjuh:~# /etc/init.d/drbd stop
Stopping all DRBD resources.
kimmetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 s0 n0 ].
And here are the configs:

Code:
sproetjuh:~# cat /etc/drbd.conf
resource vm1 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    wfc-timeout  10;            # 10 seconds
    degr-wfc-timeout 30;    # 30 seconds
  }
  disk {
    on-io-error   detach;
  }
  net {
    max-buffers   20000;                # Play with this setting to achieve highest possible performance
    unplug-watermark   12000;           # Play with this setting to achieve highest possible performance
    max-epoch-size 20000;               # Should be the same as max-buffers
  }
  syncer {
    rate 10M;           # Use more if you have a Gigabit network. Speed is in Kylobytes. e.g.: 10M = 10Megabytes
    group 1;
    al-extents 257;
  }
  on sproetjuh {                # Use the EXACT hostname of your server as give by the command "uname -n"
    device     /dev/drbd0;              # drbd device ID
    disk       /dev/hda6;               # physical disk device , check your partitioning scheme !!
    address    192.168.1.13:7789;       # Fixed IP address of server1
    meta-disk  internal;                # I use internal metadata storage
  }
  on kimmetjuh {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.15:7789;
    meta-disk  internal;
  }
}
Code:
kimmetjuh:~# cat /etc/drbd.conf
resource vm1 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    wfc-timeout  10;            # 10 seconds
    degr-wfc-timeout 30;    # 30 seconds
  }
  disk {
    on-io-error   detach;
  }
  net {
    max-buffers   20000;                # Play with this setting to achieve highest possible performance
    unplug-watermark   12000;           # Play with this setting to achieve highest possible performance
    max-epoch-size 20000;               # Should be the same as max-buffers
  }
  syncer {
    rate 10M;           # Use more if you have a Gigabit network. Speed is in Kylobytes. e.g.: 10M = 10Megabytes
    group 1;
    al-extents 257;
  }
  on sproetjuh {                # Use the EXACT hostname of your server as give by the command "uname -n"
    device     /dev/drbd0;              # drbd device ID
    disk       /dev/hda6;               # physical disk device , check your partitioning scheme !!
    address    192.168.1.13:7789;       # Fixed IP address of server1
    meta-disk  internal;                # I use internal metadata storage
  }
  on kimmetjuh {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.15:7789;
    meta-disk  internal;
  }
}
Code:
sproetjuh:~# cat /proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@sproetjuh, 2008-08-11 23:40:44
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
Code:
kimmetjuh:~# cat /proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@kimmetjuh, 2008-08-12 16:54:02
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
Code:
sproetjuh:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             4.5G  1.6G  2.7G  38% /
tmpfs                1015M     0 1015M   0% /lib/init/rw
udev                   10M   44K   10M   1% /dev
tmpfs                1015M     0 1015M   0% /dev/shm
/dev/hda1              92M   12M   75M  14% /boot
Code:
kimmetjuh:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             4.5G  1.6G  2.7G  38% /
tmpfs                1015M     0 1015M   0% /lib/init/rw
udev                   10M   44K   10M   1% /dev
tmpfs                1015M     0 1015M   0% /dev/shm
/dev/hda1              92M   12M   75M  14% /boot
Code:
sproetjuh:~# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2              13        9729    78051802+   5  Extended
/dev/hda5              13         596     4690948+  83  Linux
/dev/hda6             597        9483    71384796   83  Linux
/dev/hda7            9484        9729     1975963+  82  Linux swap / Solaris
Code:
kimmetjuh:~# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2              13        9729    78051802+   5  Extended
/dev/hda5              13         596     4690948+  83  Linux
/dev/hda6             597        9483    71384796   83  Linux
/dev/hda7            9484        9729     1975963+  82  Linux swap / Solaris

Isn't this the problem:

Code:
sproetjuh:~# cat /proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@sproetjuh, 2008-08-11 23:40:44
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
And again you're my only hope..

Cordial greetings and thanks for your help,

Bart van Kleef

Last edited by Bart van Kleef; 12th August 2008 at 20:01.
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
Ubuntu 8.04 Server LTS and VMware Server 1.05 Ken Lee Suggest HOWTO 3 10th June 2008 16:03
VMware Server and Linux Mint 5 waellerbe HOWTO-Related Questions 1 2nd June 2008 10:42
VMWARE server 1.0.3 from 1.0.1 gone bad rjn456 Installation/Configuration 2 13th June 2007 08:13
vmware server setup with multiple users handband2 HOWTO-Related Questions 3 19th April 2007 14:44
VMWare Server Free License - Invalid bardgd HOWTO-Related Questions 6 19th November 2006 17:50


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


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