From: Marc G. <gr...@at...> - 2009-04-21 08:00:31
|
On Monday 20 April 2009 22:46:07 Gordan Bobic wrote: > What's this about: > /opt/atix/comoonics-bootimage/boot-scripts/etc/clusterfs-lib.sh: line > 1180: typeset: `fuse.glusterfs_chroot_needed': not a valid identifier > > I haven't seen that one before. Me neither ;-) . Background: I introduced some new functions. One is: ${rootfs}_chroot_needed: default 0 => yes. Means we need a chroot. I.e. for nfsv3 and localfs this returns 1 cause they don't need a chroot. So we are not going to build it. Do you have a rootfs type in /etc/cluster/cluster.conf of fuse.glusterfs? Cause clusterfs-lib.sh just tries to call ${rootfs}_chroot_need if it exists. > > Other than that and the ambiguous redirect mentioned previously, the > latest version in preview seems to "just work" (tm). :) I've not had > that happen in a while with my weird bleeding edge clusters. :) What did I say! > > Oh, and the fact that shutdown seems to hang half way through on > glusterfs, but that's always been the case with glusterfs - from what I > can tell killall seems to kill something important (I excluded glusterfs > daemons). But I can live with that at the moment because it's quite hard > to debug. ;) Another new thing. It should be pretty easier or even much better to track this one cause the shutting down and rebooting should have been improved much more. Another new function helping with this is: ${rootfs}_get_userspace_procs: If this function is implemented it returns a list (separated with \n) of processes that need to stay running until the very end. With rhel5 gfs it is: function gfs_get_userspace_procs { local clutype=$1 local rootfs=$2 echo -e "aisexec \n\ ccsd \n\ fenced \n\ gfs_controld \n\ dlm_controld \n\ groupd \n\ qdiskd \n\ clvmd" } This list goes to /etc/xkillall_procs. /etc/xkillall_procs is read when calling halt and is a list of processes that will not get killed from killall5/killall9. For this we added a new option to killall5/9 the [-x {processname}]*. I'm going to file some bugs for fedora and rhel5 today and make more documentation for this on open-sharedroot.org so that the (I call it xfiles) are to be taken into account from the initscripts. Additionally to xkillall_procs there will be a /etc/xrootfs and /etc/xtab: /etc/xrootfs: is the rootfs type that will not be umounted from either netfs or network. /etc/xtab: are mountpoints that should not get umounted from netfs/network/halt. These are i.e. /cdsl.local and if need be /var/comoonics/chroot.. Take the new rpms I've uploaded right away. And thanks for your input. Marc. -- Gruss / Regards, Marc Grimme http://www.atix.de/ http://www.open-sharedroot.org/ |