LISTSERV mailing list manager LISTSERV 16.0

Help for LINUX-L Archives


LINUX-L Archives

LINUX-L Archives


LINUX-L@LISTS.UFL.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LINUX-L Home

LINUX-L Home

LINUX-L  2007

LINUX-L 2007

Subject:

Re: /dev/shm

From:

Arthur Sherman <[log in to unmask]>

Reply-To:

Platform Independent Linux List! <[log in to unmask]>

Date:

Tue, 6 Mar 2007 01:38:13 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (90 lines)

Lot of thanks!


Best,

--
Arthur Sherman

+972-52-4878851
http://www.cpt.co.il/ 

> -----Original Message-----
> From: Platform Independent Linux List! 
> [mailto:[log in to unmask]] On Behalf Of Daniel Franke
> Sent: Tuesday, March 06, 2007 1:27 AM
> To: [log in to unmask]
> Subject: Re: /dev/shm
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sun, Mar 04, 2007 at 11:29:44PM +0200, Arthur Sherman wrote:
> > This is a bit farer than I ment to go :) , but it sounds 
> interesting.
> > I'll give it a try in my leisure time.
> > 
> > BTW, how changes, such as to mysql db or new virus defs, 
> would be saved in
> > this image?
> > How do you create such image and load it at a boot time?
> 
> For the database you can use MySQL Cluster:
> 
> http://mysql.com/products/database/cluster
> 
> You build a network of database servers which operate 
> strictly out of main
> memory, with automatic failover if some servers go down.  
> Obviously you
> should make occasional backups in case they all go down at once.
> 
> For virus defs, have your bootscripts download and install the latest
> definitions when you boot up.  Start over with a new image 
> when the download
> gets unwieldly.
> 
> To set it all up:
> 
> 1. Create and mount a loopback filesystem that's no bigger 
> than your RAM.
> 
> 2. Do a minimal install of your favorite distro onto the loopback
> FS (use debootstrap for Debian or something analogous for others 
> distros) plus whatever software you need to run on the server.
> 
> 3. Chroot into it, configure everything the way you want it, 
> and add the
> logic I mentioned above into the boot scripts.
> 
> 4. Set up an initrd which creates a ramdisk (this is 
> different from tmpfs,
> see /usr/src/linux/Documentation/ramdisk.txt) the same size 
> as your loopback
> fs, dds the loopback image onto the ramdisk, mounts it, and 
> then pivot_roots
> to it.
> 
> 5. Add an appropriate initrd= option to your kernel command line.
> 
> This will all take some doing!  Don't expect much help from 
> your distro.
> I suggest using Slackware because it will stay out of your 
> way.  You might
> want to practice all this in VMWare before you start ripping 
> the guts out
> of a production box.
> 
> - -- 
> Daniel Franke         [log in to unmask]         http://www.dfranke.us
> |----| =|\     \\\\    
> || * | -|-\---------   Man is free at the instant he wants to be. 
> - -----| =|  \   ///     --Voltaire
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFF7KdTKTA17JAC/eYRApPVAJ9aY8kyTRRTg7Do5rOHIBEdFK4/1QCcDi0J
> +h024eNAx8GnaYw5kRONkig=
> =/DeQ
> -----END PGP SIGNATURE-----
> 

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997

ATOM RSS1 RSS2



LISTS.UFL.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager