
01-30-2001, 12:55 AM
|
|
Complete Newbie
|
|
Join Date: Nov 2000
Location: CT
Posts: 1,621
|
|
In the process of setting up my web server, I have to decide how I would like to do my backup. For sure I will just throw in a second HD to do my backup. Now, what is better (in terms of stability, easiness, etc) to do software RAID or just to mount the second HD as /backup and do cron job backup? BTW, I will be running RH Linux Server 7.0
cheers,

|

01-30-2001, 10:45 AM
|
|
Web Hosting Master
|
|
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
|
|
Well, RAID will really just mirror the drive. It isn't what I'd call back up exactly. This means that if you screw up something, you have another drive with the screw up. If someone cracks the box, the changes they made are on two drives.
In other words, RAID is good in that if the drive fials, there is another one. I'm not sure that's what you want or mean by 'backup'.
__________________
HostHideout.com - Where professionals discuss web hosting.
• Chicken
|

01-31-2001, 09:45 PM
|
|
Complete Newbie
|
|
Join Date: Nov 2000
Location: CT
Posts: 1,621
|
|
Thanks Chicken. yea... I should have known that RAID is not a real backup solution. I guess I was thinking different when I typed that
What I'm really looking is a backup mechanism which will allow you to easily recover the system when the drive fails. RAID allows you to recover easily but it's not actually a backup solution. Having an extra HD as backup (as in http://webhostingtalk.com/showthread.php?threadid=3338) is good but it won't give you the ability to recover easily/instantenously when the primary drive fails. So how do you combine the two functionality here?
I can see it with using 3 HDs, 2 being RAID the third one as backup HD. So when the first HD fails, I have a mirror that will replace the failed HD. Clearly the backup HD will kick in when it is needed.
Anyhow.... If I use only two HDs, one being the primary and the other as backup, then if the primary HD fails, though I have the backup, still I will have down-time to replace the primary HDs (install the OS again, configuring all settings, etc on a new HD). How do you minimize the down time or even no down time (as in RAID)?
cheers,
|

02-01-2001, 12:30 AM
|
|
Web Hosting Master
|
|
Join Date: Aug 2000
Posts: 2,750
|
|
hmmm.. couldnt something like this be possible... you setup to hard drives. take back up on regular intervals on the other... not as a RAID.. but just access the second when backups are to be taken.. make the 2 like images of each other... so when one fails.. you can just enable the other... i think this is possible.. this would reduce the downtime to 0..
__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...
|

02-01-2001, 03:44 AM
|
|
Complete Newbie
|
|
Join Date: Nov 2000
Location: CT
Posts: 1,621
|
|
Kunal.... I was thinking about that too. So I assume the way to do it is to install the OS on the two drives (separately but identically) and then to mount the second HD as needed (to do backup). But I am wonderring, when you mount the second HD, will Linux allow you to have 2 root directories? Well, I just can't see why not....
This will reduce down time but it won't eliminate it since when the first HD fails you still need to go inside your box to make the server boot on the second HD. Whereas using three HDs you can practically eliminate your server downtime (due to HD failures).
Anyway, thanks...
cheers,

|

02-01-2001, 05:56 AM
|
|
Retired Moderator
|
|
Join Date: Jan 2001
Posts: 2,603
|
|
If you want to periodically backup from one disk to the other without any downtime, use software RAID.
Tell it that you have a RAID 1 system, but with one drive currently disabled; when you want to backup all your data, tell it that you are replacing a hotswap drive, and it will commence "rebuilding the mirror" -- ie, copying all the files across. Then disable the second drive.
If you just mount the second drive separately and copy files across, then you can run into inconsistancy problems (especially with databases) if files are being written at the same time as they are being copied across. RAID solves this problem by sending all disk writes to the second drive as well.
|

02-02-2001, 02:11 AM
|
|
WHT Addict
|
|
Join Date: Jul 2000
Posts: 101
|
|
Just remember, if you store your backups on the same server... Even if you unmount the HD, a malicious individual can still destroy all your data. Just look at this thread http://www.webhostingtalk.com/showth...?threadid=5286 If he would not of had tape backups then everything would of been lost.
I know for a fact most hosts do this but I would not be willing to take the chance.
Scott
|

02-02-2001, 02:54 AM
|
|
Retired Moderator
|
|
Join Date: Jan 2001
Posts: 2,603
|
|
Well, that is why you have the backups performed automatically and protected by immutable files, while running the entire system at BSD securelevel 2.
Someone breaking root doesn't have to give them the ability to trash your system if you set it up properly.
|

02-02-2001, 10:32 PM
|
|
WHT Addict
|
|
Join Date: Jul 2000
Posts: 101
|
|
Cperciva,
Immutable files? I have never herd of them but I am not a system admin... Can you explain a little more about this it should interesting.
Scott
|

02-03-2001, 12:00 AM
|
|
Retired Moderator
|
|
Join Date: Jan 2001
Posts: 2,603
|
|
man chflags
Basically, an immutable file is one which cannot be altered; append-only files can (duh!) only have data appended to them.
These are primarily useful in combination with securelevel>=1 which makes it impossible to remove the immutable and append-only flags.
Generally speaking, a good way to make a system secure is to make all important files immutable and set securelevel=2 during the boot scripts, and when you want to upgrade your system boot off of a floppy (assuming of course that you are the unique person with physical access to the machine) remove the flags, upgrade, replace all the flags, and then reboot back into normal (secure) operation.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|