RE: glusterfs as root filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I took a slightly different approach and it works well so far... First you
need an initrd with the gluster executables and libraries, which I make and
update with this script:

#!/bin/bash
#
PATH=/bin:/sbin:/usr/bin
#
TROOT=/root/initrd_root
#
# Update executables
for i in `find /sbin -iname "*gluster*"`
  do cp -vf $i $TROOT/bin/
done
# Update libraries
for i in `find /lib -iname "*gluster*"`
  do cp -vf $i $TROOT/lib/
done
# Rsync lib dir
rsync -av /lib/glusterfs/* $TROOT/lib/glusterfs/
#
exit 0

Then you put everything else you need in the initrd and tar it up / compress
it, boot it, and have it modprobe fuse and glusterfs -f /somefile_in_initrd
/some_local_dir. What I do first though, is have init build a few partitions
in ram and format them ext2, then mount glusterfs and copy some common stuff
into the ramdisks (which are really the root, not gluster) and create
symlinks to the subdirectories in the glusterfs filesystem. And this seems
to run Centos no problem... Gluster guys, any comments on a better way to do
this? It works great, but I imagine it could optimized for speed...

Thanks,
Chris 

-----Original Message-----
From: gluster-devel-bounces+chawkins=veracitynetworks.com@xxxxxxxxxx
[mailto:gluster-devel-bounces+chawkins=veracitynetworks.com@xxxxxxxxxx] On
Behalf Of Matthias Albert
Sent: Wednesday, November 14, 2007 4:06 AM
To: gluster-devel@xxxxxxxxxx
Subject: glusterfs as root filesystem

Hi,

has anyone tried using glusterfs as  root fs?

We are using openqrm as deployment/management system for our servers here.
With openqrm we can deploy both native machines and e.g. xen images. As root
Filesystem we are currently using NFS which isn't really fast.

Because we're using glusterfs for our backups and also for our Samba/NFS
Server it is close to use it also as root filesystem for our xen images.

I think the only thing we need is fuse in a initrd and the glusterfs binary
with the needed shared object files.

Any helpful suggestions?

Regards,

  Matthias


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxx
http://lists.nongnu.org/mailman/listinfo/gluster-devel





[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux