From: Marc G. <gr...@at...> - 2008-11-21 07:23:31
|
On Thursday 20 November 2008 22:55:42 Gordan Bobic wrote: > Marc Grimme wrote: > > Hi Gordan, > > > > On Thursday 20 November 2008 21:10:43 Gordan Bobic wrote: > >> Hi, > >> > >> I'm working on adding GlusterFS support for OSR. I know I mentioned this > >> months ago, but I've waited until glusterfs is actually stable enough to > >> use in production (well, stable enough for me, anyway). > > > > ;-) > > > >> The client-only case will be simple enough, but for a > >> client-with-local-storage case, it's a bit more complicated. GlusterFS > >> uses a local file system as backing storage. That means that it needs to > >> mount a local ext3 file system before mounting the glusterfs volume via > >> fuse on top and chroots into it for the 2nd stage boot. > >> > >> So, I can use the <rootvolume> entry for the glusterfs part, but before > >> mounting that as the rootfs, I first have to mount the underlying ext3 > >> file system as stage 1.5 rootfs. > >> > >> I'm currently thinking of implementing it by having <chrootenv> contain > >> the glusterfs backing store. This would be fine as long as the > >> <chrootenv> volume can be considered clobber-safe (i.e. extracting the > >> initrd to it won't ever wipe the path (e.g. /gluster/ ) not contained > >> within the initrd file structure. > >> > >> 1) Does this sound like a reasonable way to do it? > > > > Hmm. I don't like the idea of using the chroot environment in way it is > > not expected to be used. > > I see it more the other way around. Not as mis-using the chroot > environment for data storage, but as misusing the data store for the > chroot environment. ;) You got that point. But there is now alternative is there? Still the idea of the chroot was to build a chroot (either on a localfs or in Memory) for services that need to be run as requirement for keeping a clusterfs running without residing on the clusterfilesystem. AND to have some kind of last resort way to access a frozen cluster (fenceacksv, I hate that name). > > >> 2) Is it safe to assume that chrootenv won't get silently clobbered? I > >> know it doesn't seem to happen, but I'm still a little nervous about > >> it... > > > > I agree although I don't think it will be clobbered. > > The main reason why I suggested it is because it means one fewer > partition is required (fewer partitions = more flexible, less forward > planning required, less wasted space). I even went as far as thinking > about using the same partition for kernel images. It would mean there is > only one data volume (plus a swap partition). As you like it. > Marc. -- Gruss / Regards, Marc Grimme http://www.atix.de/ http://www.open-sharedroot.org/ |