Re: tips setting up DRBD and hearbeat to create high-availability virtual machines

2010-06-13 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ante Karamatić @ 06/06/2010 08:00 PM:
> On 07.06.2010 00:27, scar wrote:
> 
>> we have two identical, physical servers with identical hardware.  i
>> wanted to set them up with several virtual machines (www, ftp, mail,
>> etc.) and then use DRBD and Heartbeat to make the VM's highly available.
> 
> You can't use heartbeat as a cluster resource manager any more. You 
> should use pacemaker or redhat-cluster-suite for that. Tutorial for 
> pacemaker:
> 
> https://wiki.ubuntu.com/ClusterStack/LucidTesting
> 
> These examples does't cover managing VMs with pacemaker, but they will 
> get you started with drbd.

thanks so much!  i will get DRBD set up with pacemaker, instead.

can anyone comment on any extra care or knowledge that may be needed to
cluster virtual machines, or should it not be any different than
clustering 'regular' partitions?

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwVonoACgkQXhfCJNu98qAtjwCghm4Ansh3tvjueV15X8x9m70H
OD8AoL1tPuvn4inobavS4J/gOHYfABkO
=styG
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-06-13 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

scar @ 06/13/2010 05:21 PM:
> wonder if it's related to bug #551965?

ah, success!  adding the 'partman/alignment=cylinder' boot parameter worked!

although, i am still puzzled why this parameter was not needed in order
for server #1 to work properly...

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwVodQACgkQXhfCJNu98qAE9wCfZMxF4+Me3jl88mhI85uIhe02
q2sAoPlcg9xF9a1uNvbraplsS0yH8qOw
=XiIu
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-06-13 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

scar @ 06/06/2010 11:22 PM:
> perhaps it is some updated package that the installer is grabbing?  i am
> inclined to try the installation without network access to see what
> happens

installing with the network cable unplugged didn't change anything

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwVg2YACgkQXhfCJNu98qBlxwCgxDmYOPZKYwBLc4eikAFslR5p
MyUAoJQretSS4twjAjjuUmmUYQB5x/3w
=Rcbs
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-06-13 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

scar @ 05/15/2010 08:18 PM:
> i have two identical servers with identical hardware.  the servers are
> sun fire x2250's with two 1 TB hard disks.  on server #1, i installed
> ubuntu-server a couple weekends ago.  in the BIOS i configured the disks
> to use AHCI mode.  everything works great.  i created two RAID-1 md
> devices.  on md0 i formatted ext4 and put /boot.  on md1 i put LVM with
> logical volumes for / and swap.
> 
> then, last weekend, i did the same thing (AFAIK) for server #2.  only
> this time, after rebooting, the hard disks are no longer detected; the
> BIOS just hangs at "auto-detecting SATA PORT 0".  if i change, in the
> BIOS, the disks back to IDE mode instead of AHCI, they get detected.
> isn't that strange?

wonder if it's related to bug #551965[1][2]?

1.
https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Partition%20alignment%20changes%20may%20break%20some%20systems
2. https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/551965

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwVdhkACgkQXhfCJNu98qASVgCgufWYTFt0nb0PiObgpQ0fuGBq
Rl8An3PlYi1R/y9yKMoj+ZiH1Rm4JLoo
=56t7
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-06-06 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ante Karamatić @ 06/06/2010 07:57 PM:
> On 07.06.2010 00:42, scar wrote:
> 
>> i am really leaning towards a bug with ubuntu.
> 
> Well if the same setup works on other machines of the same type, except 
> that one, I would suspect that there is a problem with hardware. My 
> personal experience with Sun hardware is actually quite bad, so i I 
> avoid them at all costs.

unfortunately, these are the servers we're stuck with.  they're
essentially brand-new, too, though they've been in their boxes for about
a year.

we have three of the same server, and the setup has worked on one of
them, while the other two have exhibited this strange behavior.

perhaps it is some updated package that the installer is grabbing?  i am
inclined to try the installation without network access to see what
happens


-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwMkAoACgkQXhfCJNu98qA5ogCeKcwEyPMICSOr4lbMkhksB8dg
qOMAoITPYz6K++ZJDpAPtDq5Jqb40Y7l
=xRio
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-06-06 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

i am really leaning towards a bug with ubuntu.

after changing the BIOS back to IDE mode and thus detecting the disks, i
booted up a livecd and proceeded to simply delete the partitions on the
disks with gparted.  then, rebooted and changed the BIOS back to AHCI.
the disks are magically detected again.

so, i go and install ubuntu-server again on a third, identical server.
upon rebooting, the disks are no longer detected.  the BIOS just gets
stuck at 'auto-detecting SATA PORT0'

i noticed something interesting in the installation, during the
partitioning.  both disks initially showed up as 'free space' but, as
soon as i carved out the partitions like i did last time, they magically
showed up as raid/lvm paritions.  so, something was still on the disks.
 maybe i need to use dd to write zeroes to the entire surface of both disks?

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwMJF0ACgkQXhfCJNu98qC0LwCfdtzOB509AX3jKtyJYUpwYPR/
3YIAoIuaonNbBUOcOapnCDJ1MeNJCpVy
=BRx7
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


tips setting up DRBD and hearbeat to create high-availability virtual machines

2010-06-06 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

hey list,

i am pretty green to setting up linux servers but, it's what i've fallen
into at the moment.  i really like ubuntu-desktop and it looks like
ubuntu-server has everything we need, so i jumped right in.

we have two identical, physical servers with identical hardware.  i
wanted to set them up with several virtual machines (www, ftp, mail,
etc.) and then use DRBD and Heartbeat to make the VM's highly available.

i have already installed ubuntu-server onto both machines separately,
using similar settings and partitioning.  i tasked both with 'openssh
server' and 'virtual machine host' for now.  i created a RAID-1 set
using md and allocated most of it to LVM.  the rest of the free space on
the volume group i was going to use for the various VM's.  (this is
still the beginning, so i am willing to redo any of that, given there is
good enough reason.)

so, what's next?  do i provision out my VM's on server #1 and then setup
DRBD to mirror those partitions onto server #2?  i understand from the
server manual that DRBD can be used to mirror a partition, but there are
probably more intricacies i need to know about if that partition
(logical volume, in this case) contains a virtual machine, no?

thanks.

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkwMINsACgkQXhfCJNu98qAquACeNEB5A4KfdSkGTz6yX+thVAP8
nZkAn2tZ9OLMHc/zNugAax9M+S5vg9ox
=OKE4
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-05-21 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

this is holding up the project, so any ideas would be appreciated, even
if it is just a suggestion of a better place to ask.

i know it doesn't seem ubuntu-related, so i asked on the sun forums[1].
 no one has helped me there either.  i also asked on another random
forum[2] and i got some suggestions but still no solution.

thanks.


1. http://forums.sun.com/thread.jspa?threadID=5438547
2. http://www.eggxpert.com/forums/thread/624530.aspx


-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkv2m5YACgkQXhfCJNu98qADJgCfeG0sEawAyHc4i3Cy9Z6sXK8T
zx4AoN50l9LucRIDUbaOuqCdVBYMNZzS
=WkgW
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


after installing ubuntu-server, HDD's are not detected in AHCI mode

2010-05-15 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

i have two identical servers with identical hardware.  the servers are
sun fire x2250's with two 1 TB hard disks.  on server #1, i installed
ubuntu-server a couple weekends ago.  in the BIOS i configured the disks
to use AHCI mode.  everything works great.  i created two RAID-1 md
devices.  on md0 i formatted ext4 and put /boot.  on md1 i put LVM with
logical volumes for / and swap.

then, last weekend, i did the same thing (AFAIK) for server #2.  only
this time, after rebooting, the hard disks are no longer detected; the
BIOS just hangs at "auto-detecting SATA PORT 0".  if i change, in the
BIOS, the disks back to IDE mode instead of AHCI, they get detected.
isn't that strange?

i tried to clear and re-setup the BIOS, didn't help.

when i put the disks from server #2 into server #1, server #1 doesn't
detect them either.

i had another pair of disks from identical server #3 that i decided to
try out.  again, initially, they are detected fine in AHCI mode; i go
and setup ubuntu-server on them similarly to the way i did on server #1;
upon rebooting, the BIOS hangs detecting the disks.

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAkvvZBEACgkQXhfCJNu98qAUEwCfQjVJ34TO470RlYyTM4TPsWfu
WyUAoJgfD+uv/9xogEWtQEit+uJVVbRc
=iYP7
-END PGP SIGNATURE-


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam