LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2006, 01:10 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,298

Rep: Reputation: 52
raid 1 question


We need to set up a database system (flat files only) for international members with the need to make these databases inaccessible per time zone for about half an hour between 2 am and 2.30 am every night for every time zone, for maintenance purposes.

It seems we need 6 disks holding a number of time zones each and possibly 2 time zones needing 2 disks each or one very large disk (>300G). This has to be doubled for raid 1 and trebled for a hot swap.

The question we have is how to set this up for a hardware raid 1 environment and be able to automatically disconnect every time zone (24) at the correct time. We're using Debian Sarge 3.1 and Apache2 although it seems, may be, we should use apache 1.3 instead.

Thank you for your views.
 
Old 01-11-2006, 02:08 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Looks like a job for software RAID

With software RAID, you could pull a partition or DRIVE out ot the array at the appointed time, treat it as a snapshot, do maintenance, put it back in the array and let it re-sync. This would require no interruption of service. If you have a commandline/script interface to the hardware controller, you may be able to do this with hardware RAID, but I doubt that would work with the GUI interfaces I have seen. If mainenance is more than a backup, it gets complicated because you will want to merge data from the wandering drive, with the stationary drive. Staying coherent would require intelligent software.<p>
If you have a way of breaking connections safely, you could just change file permissions on the affected directories to allow access from the maintaining user only.
 
Old 01-11-2006, 08:32 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,298

Original Poster
Rep: Reputation: 52
Thank you for your answer.
The maintenance involves us update the member files as well as backup and we need the system automated.
We would prefer very much to have the system unavailable for a short time rather than exposing ourselves to the lack of raid 1 while one drive is removed for backup.
I don't know much about raid and I was tempted to think that hardware raid was more versatile than software raid, your answer seems to indicate the opposite. There are those hardware cards that are really software raid to complicate matters.
We were planning to use a true hardware card like 3ware 9500. The system would have to deal with a fair bit of encryption and I wonder if adding software raid would be too much although I have nothing against implementing a software raid if that's the solution.
Is it an option to use rsync to keep a hot swap (or similar) as a ready backup (ready to be removed and saved)?
 
Old 01-11-2006, 11:14 AM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
"Is it an option to use rsync to keep a hot swap (or similar) as a ready backup (ready to be removed and saved)?"
-------
That should preserve the data but I do not think you could just put the rsynced volume back in the RAID array. Magic numbers and all that... What about doing RAID over the LAN? If your system is not too busy, and the link is gigabit/s it could keep up. See

http://www.it.uc3m.es/~ptb/nbd/#Introduction
This would have the advantage that your backup function would already be done when you interrupt service. The update is likely quick and you could be back on line sooner.

The original question of how to handle the interruption remains. You could reload the server configuration to deny remote access or you could change the routing or file system to give a polite message. This could be rude treatment for existing connections. Some sort of continuous mode of operation would be better. If your system is truly multi-user, perhaps the file locks it has would permit the updates to occur during normal operation.
 
Old 01-12-2006, 08:12 AM   #5
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,298

Original Poster
Rep: Reputation: 52
It looks like disconnection of the system for maintenance is not a good idea and more difficult to implement than I envisaged, so I think we'll follow your idea to keep the system available continuously. The maintenance still has to be implemented so that's no problem.

I was unaware of NBD and RAID1 configuration, I've read the article you mentioned and another I found but I can't figure out what benefit there is in it compared to plain raid1 with 2 disks on the same machine. Is it the fact that if one machine misbehave, the other has the necessary data?

Thank you very much for your advises, this will probably be my last question.
 
Old 01-12-2006, 10:09 AM   #6
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Yes, RAID over LAN gives you two of everything so you get greater redundancy. The two parts can be in separate locations to preserve data/operation in the event of serious tragedy. Gigabit/s is good to 100m so separate buildings are feasible. Power supply/drive/mobo failures will not cause loss of data. You can route things so that both boxes can serve in a fail-over mode.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID Question sunra Linux - Hardware 2 01-12-2006 11:51 AM
Another RAID question 5 vs 1 kvtournh Linux - Hardware 1 12-14-2005 09:54 PM
RAID Question cootetom Linux - Hardware 2 02-16-2005 11:10 AM
Raid question PaulSpn1 Linux - Hardware 4 08-06-2004 04:25 AM
RAID question dominant Linux - Hardware 1 07-19-2004 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration