From: Marc G. <gr...@at...> - 2009-07-23 13:27:32
|
Gordan, hardware-lib.sh -> upstream clusterfs-lib.sh ;-) + + ############################################################################# + # GlusterFS settle time bug bodge! + sleep 5 + ls -la ${mountpoint} > /dev/null + ls -la ${mountpoint}/${prefix} > /dev/null + ############################################################################# + I simply cannot do this. I could add a sleep with a timeout defaults 0 but which can be overwritten as bootparameter. But do you really need those ls? Marc. On Wednesday 08 July 2009 23:17:24 Gordan Bobic wrote: > Ooops, forgot to actually attach the added files. *headdesk* > Here they are. > > Gordan Bobic wrote: > > Hi, > > > > Attached are: > > > > My latest clusterfs-lib.sh that includes a temporary bodge for a problem > > with glusterfs that makes operations on the FS fail for a few seconds > > after mounting because fuse takes a little while to settle. So the bodge > > is to include "sleep 5; ls -la <mount-point>" to make sure that the real > > root is ready by the time we mount cdsl.local. It's a patched version > > of the latest package that was preview (I haven't seen any updates to > > preview in at least a few weeks). > > > > Also attached is hardware-lib.sh that has a different approach to mdadm > > stuff (this is, AFAIK, only really useful for gluster at the moment). > > Instead of: > > > > if [ -f /etc/mdadm.conf ] > > > > it checks for > > > > if [ -x /sbin/mdadm ] > > > > because I've been having problems with mdadm.conf contents - it looks > > like despite them being cdsl-ed out to cdsl.local, the node that builds > > the initrd hard-puts it's own mdadm.conf into the initrd. > > Anyway, instead of looking for a pre-existing mdadm.conf, the patch > > makes a new one: > > > > mdadm --examine --scan > /etc/mdadm.conf > > > > This file should now be removed from the package: > > /etc/comoonics/bootimage/files.initrd.d/mdadm.list > > (or at least be empty), since it only contained /etc/mdadm.conf > > > > Thanks. > > > > Gordan -- Gruss / Regards, Marc Grimme http://www.atix.de/ http://www.open-sharedroot.org/ |