Re: [SLUG] Network Real-Time Hot Filesystem Replication?

2008-04-07 Thread Jamie Wilkinson
This one time, at band camp, Amos Shapira wrote:
1. You CAN'T mount a non-cluster-aware file system even read-only on the
secondary node since the primary will change FS-structs under the feet of
the read-only node and cause it to crash (because non-cluster-aware
filesystems assume that they are the only ones who touch that partition).
2. You CAN mount read-write on multiple nodes if you use one of the
cluster-aware filesystems (GFS and OCFS are regularly mentioned, but if you
find any other cluster-aware file system then it sounds like it will work
too).

You're right, the example I was thinking of does not mount the filesystem on
the secondary nodes until the primary goes down; once the FS is not mounted
one of the secondaries takes over and mounts it read/write.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] BarCampCanberra1

2008-04-07 Thread Simon Pascal Klein

G'day!

Canberra is throwing its first BarCamp and apart from the usual  
Canberra web crowd, we're extending of course our invitation to  
interstate (and possibly even internationals) to come and visit  
Canberra for a fun-filled day of web geekery, awesome prizes and a  
delicous group dinner.



The Rundown
~~~
* Who? Anyone who is interested in technology, the Internet and  
related topics. We have room for 60ish people, so bring your colleagues.
* What? A good opportunity to share ideas and projects and to work  
with like-minded individuals. For more information on what a BarCamp  
is, see http://barcamp.org/.

* When? From 10:00-17:00 on Saturday 19th April 2008
* Where? BarCampCanberra1 will be held at the CSIT Building, North  
Road, ANU.
* Website? The blog is the place – http://. We'll be posting updated  
information about the event there. The info page on barcamp.org is at http://barcamp.org/BarCampCanberra 
.
* Cost? Nothing! The event is free, water is free, lunch is free and  
dinner should be free too!



Registration

We'd love to have you register for the event – again this costs  
nothing, but it would greatly help us with numbers and gives you a  
chance to grab a tee at the right size and see what everyone is  
interested in talking about! Please register at http://barcamp.org/BarCampCanberra1 
.


Note there's also a new spot for you to indicate whether you'll be  
coming for dinner on the 19th, so add that if you haven't already.


Please also sign up if you're going to be there for even one session  
on the day.



Publicity
~
We need your help getting the word out so that this is a successful  
event. Tell your friends and colleagues. Particularly if you're a uni  
student or faculty/staff, work in the tech/web industry, know someone  
in the IT media or just know someone who might be interested, tell  
them! Blog it. Put a sign up at work. Email people. Pay for a full- 
page ad in The Canberra Times (just kidding).


Point them to http://barcamp.org/BarCampCanberra and get them excited.


2020 Summit
~~~
Yes, the 2020 Summit is on the same weekend. We were first and will  
undoubtedly have the smarter crowd.


The 2020 Summit will mean hotel availability in Canberra will be very  
tight and cheap rooms will be MIA. If you're planning to come from  
interstate, can I suggest you book your accommodation right now?! I  
can wait while you do that... You're back now? Good.


If you are on a limited budget or can't get somewhere to stay, contact  
me and I can probably find a spare room in someone's house for you. We  
have several available. If you can offer a room, let me know.


Sponsorship
~~~
No BarCamp runs successfully without the generosity of its sponsors.  
We have some fabulous support and while we'll thank then on the day,  
we'd like to mention them here:


acidlabs, SMS Management and Technology, Web Directions and AussieHQ  
have all come through for us. And there might be another announcement  
today if you look at the wiki page - http://barcamp.org/BarCampCanberra.


If your organisation might be able to help in some way, contact one of  
the BarCamp Unorganisers and let them know



T-shirts

T-shirts will be available at BarCamp Canberra. However numbers will  
be limited. We ended up ordering a total of 40 shirts. I hope we  
aren't too popular! ;)


If you were in the first 20 registrations, you will get a custom  
order. For everyone else, you're going to have to make do with a grey  
marle shirt with a full-color logo. Sorry. Time was needed to make the  
order ship before the event.



Thanks; we're really looking forward to seeing you all there!


---
Simon Pascal Klein
Concept designer

(w) http://klepas.org
(e) [EMAIL PROTECTED]

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Network Real-Time Hot Filesystem Replication?

2008-04-07 Thread Chris Collins

Adrian Chadd wrote:

I looked into it about a year ago and I couldn't find any simple way of
doing this using free software. There's CODA/AFS as possible solutions but
they still push the notion of master/slave rather than equal peers, which
Chris mentions he needs (ie, constant synchronisation between each member
rather than periodic pushback..)

Chris, try looking at CODA/AFS support?


OpenAFS was already considered.  R/O replication is a pain, as is the 
whole volume host death problem. (ie: write volume goes away if the host 
holding the volume dies).


I haven't looked at Coda recently.  They still seem to be active (I 
thought they'd all abandoned ship for Intermezzo - seems I was wrong). 
I'll check it out sometime soon.


C.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] kernel code for client ephemeral port allocation?

2008-04-07 Thread Sonia Hamilton
When a tcp (or udp) connection is setup, the client is allocated a
source port - a so-called ephemeral port (this can be seen in the Local
Address column of netstat).

Out of interest, I wouldn't mind looking at the code that
pseudo-randomly allocates this port number. Can anyone point me in the
direction of the directory (or even file) I should look at? I'm not 
very familiar with the layout of the kernel code.

-- 
Thanks,

Sonia Hamilton
http://soniahamilton.wordpress.com
http://www.linkedin.com/in/soniahamilton

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] kernel code for client ephemeral port allocation?

2008-04-07 Thread Erik de Castro Lopo
Sonia Hamilton wrote:

 When a tcp (or udp) connection is setup, the client is allocated a
 source port - a so-called ephemeral port (this can be seen in the Local
 Address column of netstat).
 
 Out of interest, I wouldn't mind looking at the code that
 pseudo-randomly allocates this port number. Can anyone point me in the
 direction of the directory (or even file) I should look at? I'm not 
 very familiar with the layout of the kernel code.

LXR (Linux Cross Reference) is a really good resource:

http://lxr.linux.no/linux

Searching for ephemeral results in (among others):

http://lxr.linux.no/linux/drivers/char/random.c#L1567

which I think may be what you are looking for.

The hard way to do this of course would be just grab an unzip a source
code tarball, cd into it and then:

   grep -r ephemeral .

and see where that leads you.

Have fun :-).

Erik
-- 
-
Erik de Castro Lopo
-
The question of whether a computer can think is no more interesting
than the question of whether a submarine can swim. -- edsger dijkstra
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Network Real-Time Hot Filesystem Replication?

2008-04-07 Thread Robert Collins
On Sat, 2008-04-05 at 09:52 +1100, Crossfire wrote:
 I've just spent some time quickly researching this to no real satisfaction.
 
 What I'm looking for is a way to do real-time hot-replication of a whole 
 filesystem or filesystem tree over 2 nodes (and strictly 2 nodes) 
 without STOMITH[1].
 
 The scenario is I have two identical systems with local (software) 
 RAID1.  They will be tethered onto their internet feed via ethernet, and 
 can optionally be tethered to each other via Gig.
 
 I want to be able to set it up so /home (and maybe other filesystems) 
 are replicated from one to the other, in both directions, in real time 
 so they can run in an all-hot redundant cluster.
 
 The environment should be mostly read-oriented, so I can live with 
 write-latent solutions as long as they handle the race/collision 
 gracefully (preferably by actually detecting and reporting it if they 
 can't avoid it).
 
 The options I've investigated so far:
 
 * Lustre (MDS requirements[2] make this not an option)
 * GlobalFS (STOMITH requirements make this not an option.  Oriented
towards shared media too, which I am not using)
 * tsync (Naive concurrent operation model, but otherwise viable)
 * MogileFS (not quite what I was looking for, but none the less useful).
 * OpenAFS (read-only replication only, loss of the node hosting the
write volume still renders the volume unwritable).
 
 Is anybody aware of any other options that I've missed?

http://sourceforge.net/projects/ceph/

-Rob
-- 
GPG key available at: http://www.robertcollins.net/keys.txt.


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] kernel code for client ephemeral port allocation?

2008-04-07 Thread Sonia Hamilton
Thanks! S.

On Tue, 2008-04-08 at 08:13 +1000, Erik de Castro Lopo wrote:
 Sonia Hamilton wrote:
 
  When a tcp (or udp) connection is setup, the client is allocated a
  source port - a so-called ephemeral port (this can be seen in the Local
  Address column of netstat).
  
  Out of interest, I wouldn't mind looking at the code that
  pseudo-randomly allocates this port number. Can anyone point me in the
  direction of the directory (or even file) I should look at? I'm not 
  very familiar with the layout of the kernel code.
 
 LXR (Linux Cross Reference) is a really good resource:
 
 http://lxr.linux.no/linux
 
 Searching for ephemeral results in (among others):
 
 http://lxr.linux.no/linux/drivers/char/random.c#L1567
 
 which I think may be what you are looking for.
 
 The hard way to do this of course would be just grab an unzip a source
 code tarball, cd into it and then:
 
grep -r ephemeral .
 
 and see where that leads you.
 
 Have fun :-).
 
 Erik
 -- 
 -
 Erik de Castro Lopo
 -
 The question of whether a computer can think is no more interesting
 than the question of whether a submarine can swim. -- edsger dijkstra
-- 
Thanks,

Sonia Hamilton
http://soniahamilton.wordpress.com
http://www.linkedin.com/in/soniahamilton

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] managing .bashrc in subversion?

2008-04-07 Thread Sonia Hamilton
A process rather than technical question about subversion.

My personal subversion repo is setup, works ok, etc. But I notice that
subversion only lets you checkout a directory, not a file.

I want to manage (for example) my .bashrc file in subversion - how to do
it? I could check in all of /home/sonia, but I'd have to setup heaps of
exclusions - nasty. I could put .bashrc in /home/sonia/bin (for example)
and link to it cd; ln -s bin/.bashrc .bashrc) - a hack.

Any other suggestions?

-- 
Thanks,

Sonia Hamilton
http://soniahamilton.wordpress.com
http://www.linkedin.com/in/soniahamilton

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Content-Disposition: attachment; filename=

2008-04-07 Thread Peter Rundle

Sluggers,

this may be a little off topic, but in my defense, the server is Linux running 
Apache and PHP.

I'm generating a PDF on the fly using the FPDF libaries and sending it back to the client. If the client has a PDF 
viewer as a separate program then the filename that is passed by the Content-Disposition: header is available to the 
end user for use with save file as from the PDF viewer (in my case Evince). However this also works in Windows if the 
user hasn't installed Acrobat, both IE and FF offer to save the file using the name provided by the server.


If however, the end-user has the adobe acroread plugin in either FF or IE, then the filename is lost and the acroread 
offers to save the file as the url (createPdf.php in this case).


Does anyone know if this can be got around?

Thanx

P.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] managing .bashrc in subversion?

2008-04-07 Thread Matthew Hannigan
On Tue, Apr 08, 2008 at 03:04:59PM +1000, Sonia Hamilton wrote:
 A process rather than technical question about subversion.
 
 My personal subversion repo is setup, works ok, etc. But I notice that
 subversion only lets you checkout a directory, not a file.
 
 I want to manage (for example) my .bashrc file in subversion - how to do
 it? I could check in all of /home/sonia, but I'd have to setup heaps of
 exclusions - nasty. I could put .bashrc in /home/sonia/bin (for example)
 and link to it cd; ln -s bin/.bashrc .bashrc) - a hack.
 
 Any other suggestions?

Some people put there entire home dir into version control.
Seems excessive to me.  Your hack is a popular hack and sounds
pretty reasonable to me.  I'd use, say, a dir called checkout or
tree or svn rather than bin though.  


Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] managing .bashrc in subversion?

2008-04-07 Thread Gavin Carr
On Tue, Apr 08, 2008 at 03:04:59PM +1000, Sonia Hamilton wrote:
 A process rather than technical question about subversion.
 
 My personal subversion repo is setup, works ok, etc. But I notice that
 subversion only lets you checkout a directory, not a file.
 
 I want to manage (for example) my .bashrc file in subversion - how to do
 it? I could check in all of /home/sonia, but I'd have to setup heaps of
 exclusions - nasty. I could put .bashrc in /home/sonia/bin (for example)
 and link to it cd; ln -s bin/.bashrc .bashrc) - a hack.
 
 Any other suggestions?


I use a directory called ~/.dotfiles which contains a few *.bashrc and 
*.profile files, a vimrc, an Xdefaults, etc.

I either include them from the top-level instance e.g. in .bashrc:

  test -d $HOME/.dotfiles  . $HOME/.dotfiles/*.bashrc

or just symlink them in.

Cheers,
Gavin

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html