Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Any experience with HA Ubuntu servers?

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 02-16-11, 09:29 PM Thread Starter   #1
cw823
Honeybadger Moderator

 
cw823's Avatar 

Join Date: Dec 2000
Location: Earth

10 Year Badge
 
Any experience with HA Ubuntu servers?


Two 10tb+ arrays, with expansion to 20tb possible. Two separate machines, same hardware but lower rpm drives in the "backup". Both are running raid6, ext4. Would like to synchronize, and have failover capability if possible. Not necessary, but would be nice to have failover.

I've seen a few options online that are clearly geared toward the expert user, not a ubuntu novice like myself.

Anyone have experience or input? I'd like it to be automatic.

For this example:

server1 - 192.168.9.1
server2 - 192.168.9.2

both have a share mounted @ /mnt/md0
In that folder are about 8 other folders with all my data. Lots of it. Little to nothing exists on server2 right now, it's all on server1

__________________
As of 9/2012 I am semi-inactive

honeybadger moderator smacks the **** out of people that cause issues in the classified section

Heatware: cw823
Paypal: paypal @ cw823 dot com

Adak - My spreader bar was shaped using a pair of vise grips, a hammer, and the tow receiver on my pick up

Support your forum:
http://www.newegg.com/
cw823 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 02-16-11, 09:55 PM   #2
Adragontattoo
Trailer Chasing Senior

 
Adragontattoo's Avatar 

Join Date: Mar 2006
Location: 102 year old Victorian that I am renovat/moderniz-ing and fixing.

 
Ubuntu novice, storage novice, linux novice or what?

You went right over to the deep end and dove to the bottom by the looks.

__________________
Only ISP provided, .EDU, .GOV, .MIL e-mail addresses are Classifieds approved. Are you unable to access the Classifieds?
Click here to find out why!
The Forum Rules FAQ|
Classies Rules and Regs
Prices, slashes and edits
Quality over Quantity Pictures are NOT req.
Adopt an animal if you want one, dont use a breeder!
Adragontattoo is offline Author Profile Heatware Profile   QUOTE Thanks
Old 02-16-11, 10:07 PM   #3
thideras
Banned Neckbeard Moderator
Premium Member #3

 
thideras's Avatar 

Join Date: May 2006
Location: South Dakota

 
How often does the information need to be updated? Weeks? Days? Hours? Instant?
Does it actually need to have a complete failover (server1 goes offline and server2 picks up with no hesitation/user intervention)?

You could do something as simple as a Rsync that copies between the servers and as complicated as a storage cluster/SAN/GFS system that keeps everything live and has HA. Scripts are easy to setup once you get one working and you shouldn't have to touch them unless you need to update folders or add functionality. The script that I wrote for my server has not changed for a very long time and it has been rock solid.

Can you explain exactly what you want this to do?

__________________
Desktop: Gigabyte Z77X-UD5H | 3570k 4.6 GHz | 32 GB GSkill Ares | GTX 570 | 180 GB Intel & 2 TB total | Arch Linux and Windows 7
Main server: 37 TB raw disk | 2x Opteron 6134 | Asus KGPE-D16 | 48 GB RAM | LSI 8708EM2 | CentOS 6.2
VM Server 1: Dell R510 | 2x E5645 | 128 GB RAM | 4x 300 GB Velociraptor | Xen Cloud Platform (XCP)
VM Server 2: Dell R710 | 2x E5645 | 288 GB RAM | 8x 300 GB Velociraptor | Xen Cloud Platform (XCP)
"That's not overkill, or a lot. That's just thiderastic." -txus.palacios

Current projects: Rackmount Overkill (New) | 30/45 hard drive server
Articles: Rack Mounting 101 | Dell Perc 5/i Throughput Benchmarks
Past projects: Software RAID | The Dragon Case
My Website


Want to talk directly to all the moderators at once? Call the Mod Hotline!
thideras is online now Author Profile Benching Profile Heatware Profile   QUOTE Thanks
Old 02-16-11, 10:29 PM   #4
${freak}

 
${freak}'s Avatar 

Join Date: Oct 2010

 
Something with crontab and rsync would probably do the job, unless you want to get more complex

__________________
:w saves

Folding User Stats
${freak} is offline   QUOTE Thanks
Old 02-16-11, 11:00 PM Thread Starter   #5
cw823
Honeybadger Moderator

 
cw823's Avatar 

Join Date: Dec 2000
Location: Earth

10 Year Badge
 
Okay. let's go with the following folders that I'd like synced to both locations

TV
Movies
Files

TV, if I had a weekly "job" that synced files from the main server to the backup, that would be sufficient.
Movies, same as TV
Files, nearly instant backup as this would include family videos, pictures, documents, etc....

I've used ubuntu for f@h and for software raid, that's about it. My knowledge ends shortly thereafter.

It doesn't have to be HA setup, just figured if I could, then why wouldn't I?

Either way it's crucial that this setup work between two software raid arrays on separate ubuntu servers, that ARE attached to the same lan. Both servers have dual NICs, I was planning to have one nic per server to my local lan, then a crossover cable between the other nics to keep the traffic off my regular lan.

There's really no "constant" traffic from these servers, other than using media portal for movies/tv and listening to music.

__________________
As of 9/2012 I am semi-inactive

honeybadger moderator smacks the **** out of people that cause issues in the classified section

Heatware: cw823
Paypal: paypal @ cw823 dot com

Adak - My spreader bar was shaped using a pair of vise grips, a hammer, and the tow receiver on my pick up

Support your forum:
http://www.newegg.com/
cw823 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 02-17-11, 05:54 AM   #6
Stratus_ss
Overclockix Snake Charming Senior
Overclockers AltOS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
It sound like Linux HA is probably more then you want to get into at this time, like freak said, cron job and rsync is the way you probably want to go

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Certifications
Red Hat Certified Engineer
LPIC -1
Novell Certified Linux Administrator/Datacentre Specialist
Ubuntu Certified Professional
Linux +
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 02-17-11, 07:21 AM   #7
mbentley
Gloriously Lead
Overclockix Chief Architect

 
mbentley's Avatar 

Join Date: Sep 2002
Location: indianapolis, indiana

10 Year Badge
 
+1 for using rsync. that is what i use to create a backup of my raid 5 array. i figure running a raid 5 array is pretty safe but keeping the data on another machine as well adds an extra level of protection and with rsync, it couldn't be easier:

Code:
rsync --delete -av /mnt/storage/ /mnt/backups/storage
i just have a cronjob setup on my backup box that pulls the data from a nfs share (/mnt/storage) and it creates a backup on a local drive mounted at /mnt/backups

my backup script also includes a brief email which gives a status report once it has completed the rsync:

Code:
#!/bin/bash

tmp=/tmp/weekly-storage-backup-`date +%F`
touch $tmp && chmod 600 $tmp
echo -e "subject: weekly backup of 'storage' has completed\n" > $tmp
echo -e "weekly backup of '/mnt/storage' has completed at `date`" >> $tmp
echo -e "" >> $tmp
rsync --delete -av /mnt/storage/ /mnt/backups/storage >> $tmp
/usr/sbin/sendmail -f mbentley@mbentley.net root < $tmp
rm $tmp
nothing really fancy but it does the trick.

__________________
intel i5-750 -- msi p55-gd65 -- 4 x 4096mb ddr3 1600 -- msi gtx550 ti cyclone oc 1gb -- antec p182 -- ocz fatal1ty 750w -- win8 x64
intel i5-3330 -- msi z77a-gd65 -- 4 x 8gb ddr3 1600 -- intel hd graphics 2500 -- chieftec bravo ba-01b-b-b -- debian wheezy amd64

forum rules | overclockix | overclockers geforce survey | mbentley.net
mbentley is offline Author Profile Benching Profile Heatware Profile   QUOTE Thanks
Old 02-17-11, 06:41 PM   #8
Shelnutt2
Overclockers Team Content Editor

 
Shelnutt2's Avatar 

Join Date: Jun 2005
Location: /home/

 
You might want to look into inotifywait (/watch) if you want to rsync right after a file change

__________________
Build!.Borg!.Recruit!.Folding.for.Team.32!
Gigabyte P35-DS3R, E6300, 2x512MB Team Group DDR2 667, EVGA 7800GT Heat

Want to run the folding@home gpu client in linux?
www.linuxfah.info

Your teacher is a dumbass. The equation is exact. ~Frodo Baggins
Damn....It's 12:00 AM and I thought my 805 would be a magic pumkin and turn into a conroe.........boy was I fooled:) ~Stilletto
This is what I get for not only being a newb, but also disregarding instructions! ~ShadowPho
I hate women... but im not gay lol. ~MrCrowley
Love can fade but knowledge stays forever (unless you develop alzheimers). ~Constantinos
Shelnutt2 is offline Folding Profile   QUOTE Thanks
Old 02-17-11, 09:46 PM Thread Starter   #9
cw823
Honeybadger Moderator

 
cw823's Avatar 

Join Date: Dec 2000
Location: Earth

10 Year Badge
 
Swapping hardware from dual noconas to dual sossamans Monday or Tuesday, so I'll get everything back up and going then post here asking stupid noob questions.

__________________
As of 9/2012 I am semi-inactive

honeybadger moderator smacks the **** out of people that cause issues in the classified section

Heatware: cw823
Paypal: paypal @ cw823 dot com

Adak - My spreader bar was shaped using a pair of vise grips, a hammer, and the tow receiver on my pick up

Support your forum:
http://www.newegg.com/
cw823 is offline Benching Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 02-18-11, 04:45 AM   #10
mbentley
Gloriously Lead
Overclockix Chief Architect

 
mbentley's Avatar 

Join Date: Sep 2002
Location: indianapolis, indiana

10 Year Badge
 
hopefully you should see a massive drop in power consumption. my noconas ate power plants for breakfast

and thanks shelnutt. i might have to look at inotifywait myself.

__________________
intel i5-750 -- msi p55-gd65 -- 4 x 4096mb ddr3 1600 -- msi gtx550 ti cyclone oc 1gb -- antec p182 -- ocz fatal1ty 750w -- win8 x64
intel i5-3330 -- msi z77a-gd65 -- 4 x 8gb ddr3 1600 -- intel hd graphics 2500 -- chieftec bravo ba-01b-b-b -- debian wheezy amd64

forum rules | overclockix | overclockers geforce survey | mbentley.net
mbentley is offline Author Profile Benching Profile Heatware Profile   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 12:11 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?