a6f6a92f56
one typo in rc.statelite is fixed
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7445 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-14 09:25:43 +00:00
cb923e17c8
update the sample data for rhel5.x,
...
also fix one defect when the litetree table is empty
also replace "hostname -s" with "hostname" on redhat5.5 of ppc64 platform
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7373 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-07 12:16:52 +00:00
0feee7a7b8
update the sleep time from 20+random%30 to random%50;
...
and if it can not get the litefile table or litetree table from xCATd on the management node, it will fail into shell, and also echo one error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7216 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-25 03:08:52 +00:00
52fdb2a246
hostname -s
will not work on boot for SUSE nodes. Added conditional statement to use hostname
if it is a SUSE node.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7150 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-19 15:27:30 +00:00
67126f0ad2
fixed on defect on persistent*) option
...
when one file/directory is copied to the persistent directory, need to check whether the parent directory exist in the persistent directory or not.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-19 14:42:31 +00:00
5bc53f2fe4
Fixed error in rc.statelite: /sysroot/etc/init.d/statelite: line 326: [!: command not found
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7133 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-19 01:29:28 +00:00
021457531b
from now on, the entries in "litetree" table are no longer restricted to use different mnt point name; for example,
...
The "litetree" table has the following entries:
"1","ALL","192.168.11.107:/test/$node",,
"2","ALL","192.168.11.108:/test/$node",,
before the code is checked in, if you run "litetree <nodename>", you should get one message like this:
<nodename>: 192.168.11.107:/test/<nodename>
# 192.168.11.107 and 192.168.11.108 both mount /test. This not supported.
After the code is checked in, there will be no any error/warning message about the entries in litetree table.
Accordingly, the naming of mount points on the compute nodes are updated to "/.statelite/mnt/<nfs server ip>/<nfs directory>/" from "/.statelite/mnt/<nfs directory>/".
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 02:57:52 +00:00
92b99d0a9d
fix one bug for "FindFile()" function in rc.statelite
...
now, "ls -A ${path}|wc -l" is used to judge whether one directory is empty or not
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-15 16:06:23 +00:00
a58b3eee52
bug 3042361 is fixed;
...
And also, added the code to retry if the "litefile" or "litetree" command gets nothing from xCATd on MN/SN;
use "tcp" as the default nfs option instead of "udp"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 02:42:39 +00:00
4f80ea942c
"cp -a" can't copy the files with "." as the prefix,
...
and "cp -r -a" can do it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-19 11:05:38 +00:00
461c236542
for defect 2989912,
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-19 10:10:47 +00:00
ec11964907
for defect 3031489,
...
expr is not installed on redhat6 by default, so I removed expr form statelite script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-19 08:31:42 +00:00
8637c96318
update the code to handle the entries with "persistent" option,
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6449 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-12 10:03:48 +00:00
1e2a27663c
add one new rc.statelite file for rc.statelite.ppc.redhat,
...
on redhat5.x PPC64, we need to use "chroot" to run "openssl" command, or else, it will fail without any output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-11 08:16:30 +00:00
1c59d01b64
changed "#!/bin/sh" to "#!/bin/bash"
...
because redhat5.x use "anaconda.busybox sh" which doesn't support POSIX shell standards very well,
for example, it doesn't support array-type variables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-10 09:45:15 +00:00
e7d4696c69
Fixed bug 3011426 (var MYNAME undefined)
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-04 20:36:55 +00:00
5c4fece838
-Try Use shortname explicitly for STATEMNT things
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-03 17:27:52 +00:00
8a532cabce
update rc.statelite to support both one directory and its sub-items in the litefile table
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-26 07:56:41 +00:00
508af695e9
removed noderange to be backwards compatible
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-06 17:47:07 +00:00
bb9f222eaf
use ${3} to instead the $hn variable in the xCATcmd function
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-04-22 11:47:03 +00:00
eb756f9804
the litefile and litetree commands need the <noderange> argument,
...
xCATcmd() is updated by adding "<noderange></noderange>"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-04-03 08:36:41 +00:00
9658788864
add code to enchance the litimg command, if the entry is changed/removed from the litefile table, or some file are replaced in the root image, the code can both handle them now
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-11 07:03:56 +00:00
666713d204
bug fix for statelite.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5396 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-05 22:29:56 +00:00
aeae30cc5b
-two new optins: bind and bind,perssistent is added for the statelite mode support
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-02-25 14:52:57 +00:00
fa1f259c9b
fixed bug for mounting directories. Now will mount the full path
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5064 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-27 19:05:26 +00:00
c9ad6e7855
fixed a bug to get rid of trailing / so link would work
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-27 00:10:34 +00:00
3f3b504df8
add one checkpoint for this situation when the directory already exists during booting up
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-25 10:41:32 +00:00
ee5cb54bcb
removed verbose output
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-23 19:29:10 +00:00
226c0a64f2
updated to fix mounting directory and paths. In this way if there is an NFS server that has two paths like: mgt:/statelite/new-york and mgt:/statelite/globals to sync from then it will only mount mgt:/statelite and then traverse the directories. This should make boot up faster and look cleaner as there are not as many mount points.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-23 19:28:46 +00:00
3b5a384b12
file used to initialize statelite images
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-12-15 20:34:04 +00:00
24b5d26cbc
creation scripts for statelite nodes
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-12-04 00:55:48 +00:00